GpuPass class abstract interface

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 vertexCount vertices, instances times.
drawIndexed(int indexCount, {int instances = 1}) → void
Draws indexCount indices, instances times.
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 pipeline from 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 texture to the sampler uniform name of the fragment stage, or of the vertex stage when vertexStage (a joint palette, say).
setTopology(GpuTopology topology) → void
What vertices form.
setUniforms(String typeName, GpuBufferView view) → void
Binds view to the uniform block typeName in 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