This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SWIG_THIS Matrix& Identity(); // SWIG_THIS doesn't actually exist. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%include "typemaps.i" | |
%define %TypeOutParam(TYPE) | |
%apply TYPE& OUTPUT { TYPE& }; | |
%enddef | |
%TypeOutParam(bool) | |
%TypeOutParam(int) | |
%TypeOutParam(float) | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%include "typemaps.i" | |
%define %TypeRefParam(TYPE) | |
%apply TYPE& INOUT { TYPE& }; | |
%enddef | |
%TypeRefParam(bool) | |
%TypeRefParam(int) | |
%TypeRefParam(float) | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%typemap(ctype) void * "void *" | |
%typemap(imtype) void * "IntPtr" | |
%typemap(cstype) void * "IntPtr" | |
%typemap(csin) void * "$csinput" | |
%typemap(in) void * %{ $1 = $input; %} | |
%typemap(out) void * %{ $result = $1; %} | |
%typemap(csout) void * { return $imcall; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%typemap(ctype) char** "char**" | |
%typemap(imtype) char** "string[]" | |
%typemap(cstype) char** "string[]" | |
%typemap(csin) char** "$csinput" | |
%typemap(csout, excode=SWIGEXCODE) char**, const char**& { | |
int ret = $imcall;$excode | |
return ret; | |
} | |
%typemap(csvarin, excode=SWIGEXCODE2) char** %{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%rename(Add) Vector3::operator +; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%typemap(cscode) YOUR_CLASS | |
%{ | |
public bool IsLifecycleManaged | |
{ | |
get { return swigCMemOwn; } | |
set { swigCMemOwn = value; } | |
} | |
%} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%template(ListFloat) List<float>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%newobject MyFactory::Create; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RWBuffer dispatchBuff : register(u0); | |
[numthreads(1, 1, 1)] | |
void UpdateIndirectDispatchBuffer() | |
{ | |
dispatchBuff[0] = (uint)ceil(dispatchBuff[0] / NumThreadGroupSize); | |
} |