RenderPass

value class RenderPass(source)

A render pass that is being recorded. Call end before recording anything else.

Functions

Link copied to clipboard

Makes pipeline current for the draws that follow.

Link copied to clipboard
fun RenderPass.bindFragmentSampler(slot: Int, texture: GpuTexture, sampler: Sampler)

Binds texture with sampler as fragment sampler slot.

Link copied to clipboard

Binds buffer as vertex storage buffer slot.

Link copied to clipboard
fun RenderPass.draw(vertexCount: Int, firstVertex: Int = 0)

Draws vertexCount vertices starting at firstVertex with the bound pipeline. Pass the Int parameters by name.

Link copied to clipboard
fun end()

Finishes the pass.

Link copied to clipboard
open override fun toString(): String