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
| float4 vTexels; | |
| vTexels.x = LastMip.Load( nCoords ); | |
| vTexels.y = LastMip.Load( nCoords, uint2(1,0) ); | |
| vTexels.z = LastMip.Load( nCoords, uint2(0,1) ); | |
| vTexels.w = LastMip.Load( nCoords, uint2(1,1) ); | |
| float fMaxDepth = max( max( vTexels.x, vTexels.y ), max( vTexels.z, vTexels.w ) ); |
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
| public static class FauxValueChangedEventManager | |
| { | |
| private delegate void OnValueChanged(object sender, EventArgs args); | |
| private delegate object GetItem(object indexer); | |
| private static object m_currentManager; | |
| private static MethodInfo m_onValueChanaged; | |
| private static MethodInfo m_getItem; | |
| static FauxValueChangedEventManager() |
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); | |
| } |
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
| %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
| %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
| %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(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
| %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
| %include "typemaps.i" | |
| %define %TypeRefParam(TYPE) | |
| %apply TYPE& INOUT { TYPE& }; | |
| %enddef | |
| %TypeRefParam(bool) | |
| %TypeRefParam(int) | |
| %TypeRefParam(float) | |
| ... |