Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer interface { device.Resource[core1_0.CommandBuffer] Reset() Begin() End() CmdCopyBuffer(src, dst buffer.T, regions ...core1_0.BufferCopy) CmdBindGraphicsPipeline(pipe pipeline.T) CmdBindGraphicsDescriptor(sets descriptor.Set) CmdBindVertexBuffer(vtx buffer.T, offset int) CmdBindIndexBuffers(idx buffer.T, offset int, kind core1_0.IndexType) CmdDraw(vertexCount, instanceCount, firstVertex, firstInstance int) CmdDrawIndexed(indexCount, instanceCount, firstIndex, vertexOffset, firstInstance int) CmdBeginRenderPass(pass renderpass.T, framebuffer framebuffer.T) CmdNextSubpass() CmdEndRenderPass() CmdSetViewport(x, y, w, h int) core1_0.Viewport CmdSetScissor(x, y, w, h int) core1_0.Rect2D CmdPushConstant(stages core1_0.ShaderStageFlags, offset int, value any) CmdImageBarrier(srcMask, dstMask core1_0.PipelineStageFlags, image image.T, oldLayout, newLayout core1_0.ImageLayout, aspects core1_0.ImageAspectFlags) CmdCopyBufferToImage(source buffer.T, dst image.T, layout core1_0.ImageLayout) CmdCopyImageToBuffer(src image.T, srcLayout core1_0.ImageLayout, aspect core1_0.ImageAspectFlags, dst buffer.T) CmdConvertImage(src image.T, srcLayout core1_0.ImageLayout, dst image.T, dstLayout core1_0.ImageLayout, aspects core1_0.ImageAspectFlags) CmdCopyImage(src image.T, srcLayout core1_0.ImageLayout, dst image.T, dstLayout core1_0.ImageLayout, aspects core1_0.ImageAspectFlags) }
type Pool ¶
type Pool interface { device.Resource[core1_0.CommandPool] Allocate(level core1_0.CommandBufferLevel) Buffer AllocateBuffers(level core1_0.CommandBufferLevel, count int) []Buffer }
type Recorder ¶
func NewRecorder ¶
func NewRecorder() Recorder
type SubmitInfo ¶
type ThreadWorker ¶
type ThreadWorker struct {
// contains filtered or unexported fields
}
func NewThreadWorker ¶
func NewThreadWorker(name string, buffer int, locked bool) *ThreadWorker
func (*ThreadWorker) Abort ¶
func (tw *ThreadWorker) Abort()
Aborts the worker, cancelling any pending work.
func (*ThreadWorker) Flush ¶
func (tw *ThreadWorker) Flush()
Flush blocks the caller until all pending work is completed
func (*ThreadWorker) Invoke ¶
func (tw *ThreadWorker) Invoke(callback func())
Invoke schedules a callback to be called from the worker thread
func (*ThreadWorker) InvokeSync ¶
func (tw *ThreadWorker) InvokeSync(callback func())
InvokeSync schedules a callback to be called on the worker thread, and blocks until the callback is finished.
func (*ThreadWorker) Stop ¶
func (tw *ThreadWorker) Stop()
Stop the worker and release any resources. Blocks until all work in completed.
Click to show internal directories.
Click to hide internal directories.