mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 21:26:12 +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:
@@ -2166,14 +2166,14 @@ the UI which aren't reflected in the capture file on disk.
|
||||
:return: The frame information.
|
||||
:rtype: renderdoc.FrameDescription
|
||||
)");
|
||||
virtual const FrameDescription &FrameInfo() = 0;
|
||||
virtual FrameDescription FrameInfo() = 0;
|
||||
|
||||
DOCUMENT(R"(Retrieve the :class:`~renderdoc.APIProperties` for the currently loaded capture.
|
||||
|
||||
:return: The API properties.
|
||||
:rtype: renderdoc.APIProperties
|
||||
)");
|
||||
virtual const APIProperties &APIProps() = 0;
|
||||
virtual APIProperties APIProps() = 0;
|
||||
|
||||
DOCUMENT(R"(Retrieve the list of :class:`~renderdoc.ShaderEncoding` that are available for
|
||||
building target shaders for the currently loaded capture. See
|
||||
|
||||
Reference in New Issue
Block a user