コード例 #1
0
ファイル: CPass.cs プロジェクト: huangdonghai/titan3d
 public void SetIndirectDraw(CGpuBuffer pBuffer, UInt32 offset)
 {
     if (pBuffer == null)
     {
         return;
     }
     SDK_IPass_SetIndirectDraw(CoreObject, pBuffer.CoreObject, offset);
 }
コード例 #2
0
 public CUnorderedAccessView CreateUnorderedAccessView(CGpuBuffer pBuffer, CUnorderedAccessViewDesc desc)
 {
     unsafe
     {
         var obj = SDK_IRenderContext_CreateUnorderedAccessView(CoreObject, pBuffer.CoreObject, &desc);
         if (obj.Pointer == IntPtr.Zero)
         {
             return(null);
         }
         return(new CUnorderedAccessView(obj));
     }
 }
コード例 #3
0
 public CVertexBuffer CreateVertexBufferFromBuffer(CVertexBufferDesc desc, CGpuBuffer pBuffer)
 {
     unsafe
     {
         var obj = SDK_IRenderContext_CreateVertexBufferFromBuffer(CoreObject, &desc, pBuffer.CoreObject);
         if (obj.Pointer == IntPtr.Zero)
         {
             return(null);
         }
         return(new CVertexBuffer(obj));
     }
 }
コード例 #4
0
 public CShaderResourceView CreateShaderResourceViewFromBuffer(CGpuBuffer pBuffer, ISRVDesc desc)
 {
     unsafe
     {
         var obj = SDK_IRenderContext_CreateShaderResourceViewFromBuffer(CoreObject, pBuffer.CoreObject, &desc);
         if (obj.Pointer == IntPtr.Zero)
         {
             return(null);
         }
         return(new CShaderResourceView(obj));
     }
 }