Exemple #1
0
 public void Init()
 {
     Format        = EPixelFormat.PXF_D24_UNORM_S8_UINT;
     mCanBeSampled = vBOOL.FromBoolean(true);
     mUseStencil   = vBOOL.FromBoolean(false);
     mTexture2D    = CTexture2D.GetEmptyNativePointer();
     CPUAccess     = 0;
 }
Exemple #2
0
 public void CreateReadableTexture2D(ref CTexture2D pTexture, CShaderResourceView src, CFrameBuffer pFrameBuffers)
 {
     unsafe
     {
         CTexture2D.NativePointer oldPtr = CTexture2D.GetEmptyNativePointer();
         if (pTexture != null)
         {
             oldPtr = pTexture.CoreObject;
         }
         SDK_ICommandList_CreateReadableTexture2D(CoreObject, &oldPtr, src.CoreObject, pFrameBuffers.CoreObject);
         if (pTexture != null)
         {
             pTexture.UnsafeSetNativePointer(oldPtr);
         }
         else
         {
             pTexture = new CTexture2D(oldPtr);
         }
     }
 }
 public void Init()
 {
     mCanBeSampled = vBOOL.FromBoolean(true);
     Format        = EPixelFormat.PXF_R8G8B8A8_UNORM;
     mTexture2D    = CTexture2D.GetEmptyNativePointer();
 }
 public void Init()
 {
     mFormat    = EPixelFormat.PXF_R8G8B8A8_UNORM;
     mTexture2D = CTexture2D.GetEmptyNativePointer();
 }