CommandList
Records commands until a Device.execute. Not thread-safe: its methods take &mut self.
Static methods
function hxnAdopt(hxnRaw:Handle):CommandListAn object for a value the library returned.
Properties
var hxnRaw:HandleMethods
function setComputeRootSignature(signature:RootSignature):Voidfunction setGraphicsRootSignature(signature:RootSignature):Voidfunction setPipelineState(state:PipelineState):Voidfunction setComputeRootBuffer(index:Int, kind:ParameterKind, buffer:Buffer):VoidBinds 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):VoidBinds buffer to root parameter index of the graphics root signature.
function setDescriptorHeaps(resources:DescriptorHeap, samplers:DescriptorHeap):VoidMakes resources and samplers the shader-visible heaps descriptor tables index.
function setDescriptorHeap(heap:DescriptorHeap):VoidMakes heap the one shader-visible heap descriptor tables index.
function setComputeRootTable(index:Int, heap:DescriptorHeap, offset:Int):VoidBinds the table at descriptor offset of heap to root parameter index of the compute root signature.
function setGraphicsRootTable(index:Int, heap:DescriptorHeap, offset:Int):VoidBinds 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):VoidAn 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):VoidAn enhanced barrier on all of texture that also moves it from layout from to to.
function copyBufferToTexture(texture:Texture, buffer:Buffer):VoidCopies 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):Voidfunction transitionBuffer(buffer:Buffer, before:Int, after:Int):VoidMoves buffer from state before to after (State bits).
function transitionTexture(texture:Texture, before:Int, after:Int):VoidMoves texture from state before to after (State bits).
function uavBarrier(buffer:Buffer):VoidWaits for unordered-access writes to buffer before later unordered access to it.
function setRenderTarget(target:Texture, red:Float, green:Float, blue:Float, alpha:Float):VoidRenders 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):Voidfunction setVertexBuffer(slot:Int, buffer:Buffer, stride:Int):VoidBinds all of buffer to input slot slot, stride bytes per vertex.
function draw(count:Int, instances:Int, first:Int):VoidDraws count vertices from first, instances times.
function copyBuffer(destination:Buffer, source:Buffer):VoidCopies all of source into destination, which must be at least as large.
function copyTextureToBuffer(texture:Texture, buffer:Buffer):VoidCopies all of texture, in the copy source state, into buffer, rows texture.copyPitch() bytes apart.
function close():VoidReleases the native value now. The collector does it otherwise. Using this object afterwards throws.