RenderPass

An in-progress recording of a render pass.

Members

Functions

draw
void draw(uint[] vertices, uint[] instances)

Draws primitives from the active vertex buffer(s).

drawIndexed
void drawIndexed(uint[] indices, int baseVertex, uint[] instances)

Draws indexed primitives using the active index buffer and the active vertex buffers.

setBindGroup
void setBindGroup(uint index, BindGroup bindGroup, BufferAddress[] offsets)

Sets the active bind group for a given bind group index.

setBlendColor
void setBlendColor(Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
setIndexBuffer
void setIndexBuffer(Buffer buffer, BufferAddress offset)

Sets the active index buffer.

setPipeline
void setPipeline(RenderPipeline pipeline)

Sets the active render pipeline.

setScissorRect
void setScissorRect(uint x, uint y, uint w, uint h)

Sets the scissor region.

setStencilReference
void setStencilReference(uint reference)

Sets the stencil reference.

setVertexBuffers
void setVertexBuffers(uint startSlot, Tuple!(Buffer, BufferAddress)[] bufferPairs)

Sets the active vertex buffers, starting from startSlot.

setViewport
void setViewport(float x, float y, float w, float h, float minDepth, float maxDepth)

Sets the viewport region.

Variables

descriptor
RenderPassDescriptor descriptor;

Describes this RenderPass.

instance
WGPURenderPass* instance;
Undocumented in source.

See Also

Meta