mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
More natural python handling for GetDefaultCaptureOptions, return struct
This commit is contained in:
@@ -79,6 +79,12 @@
|
||||
// completely ignore rdcdatetime, we custom convert to/from a native python datetime
|
||||
%ignore rdcdatetime;
|
||||
|
||||
// special handling for RENDERDOC_GetDefaultCaptureOptions to transform output parameter to a return value
|
||||
%typemap(in, numinputs=0) CaptureOptions *defaultOpts { $1 = new CaptureOptions; }
|
||||
%typemap(argout) CaptureOptions *defaultOpts {
|
||||
$result = SWIG_NewPointerObj($1, $descriptor(struct CaptureOptions*), SWIG_POINTER_OWN);
|
||||
}
|
||||
|
||||
// ignore some operators SWIG doesn't have to worry about
|
||||
%ignore SDType::operator=;
|
||||
%ignore StructuredObjectList::swap;
|
||||
|
||||
Reference in New Issue
Block a user