Records draws into one set of targets.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
draw(
int vertexCount, {int instances = 1}) → void -
Draws
vertexCountvertices,instancestimes. -
drawIndexed(
int indexCount, {int instances = 1}) → void -
Draws
indexCountindices,instancestimes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBlend(
GpuBlend blend) → void - Colour blending.
-
setCull(
GpuCull cull, {bool frontClockwise = false}) → void -
Face culling; front faces wind clockwise when
frontClockwise. -
setDepth(
{bool test = true, bool write = true, GpuCompare compare = GpuCompare.less}) → void - Depth testing and writing.
-
setIndexBuffer(
GpuBufferView view, GpuIndexType type) → void - Binds the index buffer.
-
setPipeline(
GpuPipeline pipeline) → void -
Draws use
pipelinefrom now on. Switching to a different pipeline clears every binding (buffers, uniforms, textures): bind them again. -
setTexture(
String name, GpuTexture texture, {GpuSampler sampler = GpuSampler.linearClamp, bool vertexStage = false}) → void -
Binds
textureto the sampler uniformnameof the fragment stage, or of the vertex stage whenvertexStage(a joint palette, say). -
setTopology(
GpuTopology topology) → void - What vertices form.
-
setUniforms(
String typeName, GpuBufferView view) → void -
Binds
viewto the uniform blocktypeNamein every stage of the current pipeline that declares it. -
setVertexBuffer(
int slot, GpuBufferView view) → void -
Binds vertex buffer
slot. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited