- pool
CommandPool pool [@property getter]
Undocumented in source.
- level
CommandBufferLevel level [@property getter]
Undocumented in source.
- reset
void reset()
Undocumented in source.
- begin
void begin(CommandBufferUsage usage)
Begin recording and switches the buffer state from "invalid" to "recording"
SecondaryCommandBuffer can alternatively call beginWithinRenderPass
- end
void end()
Undocumented in source.
- pipelineBarrier
void pipelineBarrier(Trans!PipelineStage stageTrans, BufferMemoryBarrier[] bufMbs, ImageMemoryBarrier[] imgMbs)
Undocumented in source.
- clearColorImage
void clearColorImage(ImageBase image, ImageLayout layout, ClearColorValues clearValues, ImageSubresourceRange[] ranges)
Undocumented in source.
- clearDepthStencilImage
void clearDepthStencilImage(ImageBase image, ImageLayout layout, ClearDepthStencilValues clearValues, ImageSubresourceRange[] ranges)
Undocumented in source.
- fillBuffer
void fillBuffer(Buffer dst, size_t offset, size_t size, uint value)
Fills buffer from offset to offset+size with value
- updateBuffer
void updateBuffer(Buffer dst, size_t offset, uint[] data)
Update buffer with the data passed as argument
- copyBuffer
void copyBuffer(Trans!Buffer buffers, CopyRegion[] regions)
Undocumented in source.
- copyBufferToImage
void copyBufferToImage(Buffer srcBuffer, ImageBase dstImage, ImageLayout dstLayout, BufferImageCopy[] regions)
Undocumented in source.
- setViewport
void setViewport(uint firstViewport, Viewport[] viewports)
Undocumented in source.
- setScissor
void setScissor(uint firstScissor, Rect[] scissors)
Undocumented in source.
- setDepthBounds
void setDepthBounds(float minDepth, float maxDepth)
Undocumented in source.
- setLineWidth
void setLineWidth(float lineWidth)
Undocumented in source.
- setDepthBias
void setDepthBias(float constFactor, float clamp, float slopeFactor)
Undocumented in source.
- setStencilCompareMask
void setStencilCompareMask(StencilFace faceMask, uint compareMask)
Undocumented in source.
- setStencilWriteMask
void setStencilWriteMask(StencilFace faceMask, uint writeMask)
Undocumented in source.
- setStencilReference
void setStencilReference(StencilFace faceMask, uint reference)
Undocumented in source.
- setBlendConstants
void setBlendConstants(float[4] blendConstants)
Undocumented in source.
- bindPipeline
void bindPipeline(Pipeline pipeline)
Undocumented in source.
- bindVertexBuffers
void bindVertexBuffers(uint firstBinding, VertexBinding[] bindings)
Undocumented in source.
- bindIndexBuffer
void bindIndexBuffer(Buffer indexBuf, size_t offset, IndexType type)
Undocumented in source.
- bindDescriptorSets
void bindDescriptorSets(PipelineBindPoint bindPoint, PipelineLayout layout, uint firstSet, DescriptorSet[] sets, size_t[] dynamicOffsets)
Undocumented in source.
- pushConstants
void pushConstants(PipelineLayout layout, ShaderStage stages, size_t offset, size_t size, const(void)* data)
Undocumented in source.
- draw
void draw(uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance)
Undocumented in source.
- drawIndexed
void drawIndexed(uint indexCount, uint instanceCount, uint firstVertex, int vertexOffset, uint firstInstance)
Undocumented in source.
Interface to a secondary command buffer
Main interest of secondary command buffer is that they are not tied to a render pass and as such can be filled in parallel on different threads.