Пример #1
0
 public void BeginRenderPass(CRenderPassDesc RenderPassDesc, CFrameBuffer FrameBuffer)
 {
     unsafe
     {
         SDK_ICommandList_BeginRenderPass(CoreObject, &RenderPassDesc, FrameBuffer.CoreObject);
     }
 }
Пример #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);
         }
     }
 }
Пример #3
0
 public void Blit2DefaultFrameBuffer(CFrameBuffer FrameBuffer, int dstWidth, int dstHeight)
 {
     SDK_ICommandList_Blit2DefaultFrameBuffer(CoreObject, FrameBuffer.CoreObject, dstWidth, dstHeight);
 }