mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 13:15:57 +00:00
Returning const arrays forces a copy
* This doesn't cover all cases but helps with 'pythonic' cases where a list returned from a function should be expected to be mutable. Modifying direct 'members' can still modify through const.
This commit is contained in:
@@ -484,8 +484,8 @@ struct CaptureContextInvoker : ObjectForwarder<ICaptureContext>
|
||||
{
|
||||
return m_Obj.GetCaptureModifications();
|
||||
}
|
||||
virtual const FrameDescription &FrameInfo() override { return m_Obj.FrameInfo(); }
|
||||
virtual const APIProperties &APIProps() override { return m_Obj.APIProps(); }
|
||||
virtual FrameDescription FrameInfo() override { return m_Obj.FrameInfo(); }
|
||||
virtual APIProperties APIProps() override { return m_Obj.APIProps(); }
|
||||
virtual rdcarray<ShaderEncoding> TargetShaderEncodings() override
|
||||
{
|
||||
return m_Obj.TargetShaderEncodings();
|
||||
|
||||
Reference in New Issue
Block a user