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:
baldurk
2026-08-13 17:46:43 +01:00
parent 0bab6e4059
commit c95a69c8a1
5 changed files with 28 additions and 6 deletions
+2 -2
View File
@@ -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