DrawList

A draw list containing the rendering state and commands to submit to the GPU.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

allocate
DrawListAlloc* allocate(VtxData[] vtx, uint[] idx)

Allocates the given mesh in the draw list, allowing its contents to be reused in draw commands.

beginComposite
void beginComposite()

Pushes render targets to the draw list's stack.

blit
void blit()

Enqueues a composite blit for a recently ended composite.

clear
void clear()

Clears the draw list, making it ready for a new pass.

endComposite
void endComposite()

Pops the top render target from the list's stack.

next
void next()

Pushes the next draw command

popMask
void popMask()

Pops the top render target from the list's stack.

pushMask
void pushMask(MaskingMode mode)

Pushes render targets to the draw list's stack.

setBlending
void setBlending(BlendMode value)

Sets the blending mode for the current draw call.

setMasking
void setMasking(MaskingMode value)

Sets the masking mode for the current draw call.

setMesh
void setMesh(DrawListAlloc* alloc)

Sets the mesh data for the current draw command.

setSources
void setSources(Texture[IN_MAX_ATTACHMENTS] sources)

Sets sources for the current draw call.

setVariables
void setVariables(uint nid, T value)

Sets the blending mode for the current draw call.

Properties

allocations
DrawListAlloc[] allocations [@property getter]

Allocated meshes

commands
DrawCmd[] commands [@property getter]

Command Buffer

indices
uint[] indices [@property getter]

Index data

vertices
VtxData[] vertices [@property getter]

Vertex data

Variables

useBaseVertex
bool useBaseVertex;

Whether to use base vertex specification.

Meta