Exemplo n.º 1
0
 public void SetPixelShader(IntPtr pixelShader) => D3D11DeviceContextBindings.PSSetShader_(Handle, pixelShader, IntPtr.Zero, 0u);
Exemplo n.º 2
0
 public void SetVertexShader(IntPtr vertexShader) => D3D11DeviceContextBindings.VSSetShader_(Handle, vertexShader, IntPtr.Zero, 0u);
Exemplo n.º 3
0
 public void ClearDepthStencilView(IntPtr depthStencilView, D3D11ClearFlag clearFlags, float depth, sbyte stencil) => D3D11DeviceContextBindings.ClearDepthStencilView_(Handle, depthStencilView, clearFlags, depth, stencil);
Exemplo n.º 4
0
 public unsafe void OMSetRenderTargets(IntPtr *renderTargets, uint numberOfRenderTargets, IntPtr depthStencil)
 {
     D3D11DeviceContextBindings.OMSetRenderTargets_(Handle, numberOfRenderTargets, renderTargets, depthStencil);
 }
Exemplo n.º 5
0
 public void Draw(uint vertexCount, uint startLocation)
 {
     D3D11DeviceContextBindings.Draw_(Handle, vertexCount, startLocation);
 }
Exemplo n.º 6
0
 public void SetVertexBuffer(uint startSlot, IntPtr vertexBuffer, uint strides, uint offset) => D3D11DeviceContextBindings.IASetVertexBuffers_(Handle, startSlot, 1, vertexBuffer, strides, offset);