GpuRenderPass class abstract interface

Records the bind and draw commands of a single render pass.

Obtain one via GpuFrame.beginRenderPass and submit it with submit.

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

bindIndexBuffer(GpuBufferView view, GpuIndexType indexType, int indexCount) → void
Binds view as the index buffer of indexType; indexCount indices will be drawn.
bindPipeline(GpuPipeline pipeline, CullMode cullMode) → void
Binds the render pipeline and applies cullMode.
bindTexture(GpuUniformSlot slot, GpuTexture texture) → void
Binds texture to the sampler slot.
bindUniform(GpuUniformSlot slot, ByteData data) → void
Binds transient uniform data to slot.
bindVertexBuffer(GpuBufferView view, int vertexCount) → void
Binds view as the vertex buffer, vertexCount vertices will be drawn.
clearBindings() → void
Clears all resources bound to this pass.
draw() → void
Issues a draw call for the currently bound geometry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
submit() → void
Finalizes the pass and submits its commands to the GPU.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited