hxn

CommandList

Records commands until a Device.execute. Not thread-safe: its methods take &mut self.

Static methods

function hxnAdopt(hxnRaw:Handle):CommandList

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function setComputeRootSignature(signature:RootSignature):Void
function setGraphicsRootSignature(signature:RootSignature):Void
function setPipelineState(state:PipelineState):Void
function setComputeRootBuffer(index:Int, kind:ParameterKind, buffer:Buffer):Void

Binds buffer to root parameter index of the compute root signature, as the kind of descriptor that parameter is.

function setGraphicsRootBuffer(index:Int, kind:ParameterKind, buffer:Buffer):Void

Binds buffer to root parameter index of the graphics root signature.

function setDescriptorHeaps(resources:DescriptorHeap, samplers:DescriptorHeap):Void

Makes resources and samplers the shader-visible heaps descriptor tables index.

function setDescriptorHeap(heap:DescriptorHeap):Void

Makes heap the one shader-visible heap descriptor tables index.

function setComputeRootTable(index:Int, heap:DescriptorHeap, offset:Int):Void

Binds the table at descriptor offset of heap to root parameter index of the compute root signature.

function setGraphicsRootTable(index:Int, heap:DescriptorHeap, offset:Int):Void

Binds the table at descriptor offset of heap to root parameter index of the graphics root signature.

function bufferBarrier(buffer:Buffer, syncBefore:Int, accessBefore:Int, syncAfter:Int, accessAfter:Int):Void

An enhanced barrier on all of buffer: work in sync_before doing access_before finishes, and its writes are visible, before work in sync_after doing access_after.

function textureBarrier(texture:Texture, syncBefore:Int, accessBefore:Int, from:Layout, syncAfter:Int, accessAfter:Int, to:Layout):Void

An enhanced barrier on all of texture that also moves it from layout from to to.

function copyBufferToTexture(texture:Texture, buffer:Buffer):Void

Copies all of buffer, rows texture.copyPitch() bytes apart, into texture, which must be in the copy destination state.

function dispatch(x:Int, y:Int, z:Int):Void
function transitionBuffer(buffer:Buffer, before:Int, after:Int):Void

Moves buffer from state before to after (State bits).

function transitionTexture(texture:Texture, before:Int, after:Int):Void

Moves texture from state before to after (State bits).

function uavBarrier(buffer:Buffer):Void

Waits for unordered-access writes to buffer before later unordered access to it.

function setRenderTarget(target:Texture, red:Float, green:Float, blue:Float, alpha:Float):Void

Renders into target, which must be in the render target state, clearing it to red, green, blue, alpha, and sets the viewport and scissor to all of it.

function setTopology(topology:Topology):Void
function setVertexBuffer(slot:Int, buffer:Buffer, stride:Int):Void

Binds all of buffer to input slot slot, stride bytes per vertex.

function draw(count:Int, instances:Int, first:Int):Void

Draws count vertices from first, instances times.

function copyBuffer(destination:Buffer, source:Buffer):Void

Copies all of source into destination, which must be at least as large.

function copyTextureToBuffer(texture:Texture, buffer:Buffer):Void

Copies all of texture, in the copy source state, into buffer, rows texture.copyPitch() bytes apart.

function close():Void

Releases the native value now. The collector does it otherwise. Using this object afterwards throws.