Struct RenderPass

An in-progress recording of a render pass.

struct RenderPass ;

Fields

NameTypeDescription
descriptor __C.WGPURenderPassDescriptorDescribes this RenderPass.

Methods

NameDescription
colorAttachment (view, clearColor, store) Create a color attachment for a render pass.
colorAttachment (view, loadOp, clearColor, store) Create a color attachment for a render pass.
colorAttachment (view, resolveTarget, loadOp, clearColor, store) ditto
draw (vertexCount, instanceCount, firstVertex, firstInstance) Draws primitives from the active vertex buffer(s).
draw (vertices, instances) Draws primitives from the active vertex buffer(s).
drawIndexed (indices, baseVertex, instances) Draws indexed primitives using the active index buffer and the active vertex buffers.
end ()
setBindGroup (index, bindGroup, offsets) Sets the active bind group for a given bind group index.
setBlendConstant (color) Sets the blend color as used by some of the blending modes.
setIndexBuffer (buffer, offset) Sets the active index buffer.
setPipeline (pipeline) Sets the active render pipeline.
setScissorRect (x, y, w, h) Sets the scissor region.
setStencilReference (reference) Sets the stencil reference.
setVertexBuffer (slot, buffer, size) Sets an active vertex buffer at slot.
setVertexBuffers (startSlot, bufferPairs) Sets the active vertex buffers, starting from startSlot.
setViewport (x, y, w, h, minDepth, maxDepth) Sets the viewport region.

See Also

wgpu::RenderPass