예제 #1
0
        protected override void DispatchIndirectCore(DeviceBuffer indirectBuffer, uint offset)
        {
            PreDispatchCommand();
            D3D11Buffer d3d11Buffer = Util.AssertSubtype <DeviceBuffer, D3D11Buffer>(indirectBuffer);

            _context.DispatchIndirect(d3d11Buffer.Buffer, (int)offset);
        }
예제 #2
0
 public void Draw(DeviceContext ctx)
 {
     ctx.DispatchIndirect(this.DispatchBuffer, this.Offet);
 }
예제 #3
0
 public void Draw(DeviceContext ctx)
 {
     //ctx.ComputeShader.
     ctx.DispatchIndirect(this.IndirectArgs.Buffer, 0);
 }