예제 #1
0
 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));
     }
 }
예제 #2
0
 public static void DestroyResourceState(CResourceState state)
 {
     SDK_Delete_IResourceState(state.mCoreObject);
     state.mCoreObject.SetPointer(IntPtr.Zero);
 }
예제 #3
0
        public static CResourceState CreateResourceState()
        {
            CResourceState result = new CResourceState(SDK_New_IResourceState());

            return(result);
        }