public CShaderResourceView(NativePointer self) { mCoreObject = self; if (self.Pointer != IntPtr.Zero) { mResourceState = new CResourceState(SDK_VIUnknown_GetResourceState(self.Pointer)); mTexSteaming = new CGfxTextureStreaming(SDK_IShaderResourceView_GetTexStreaming(self)); } }
public static void DestroyResourceState(CResourceState state) { SDK_Delete_IResourceState(state.mCoreObject); state.mCoreObject.SetPointer(IntPtr.Zero); }
public static CResourceState CreateResourceState() { CResourceState result = new CResourceState(SDK_New_IResourceState()); return(result); }