class WGPU::RenderPass
- WGPU::RenderPass
- WGPU::WgpuId
- Reference
- Object
Defined in:
wgpu.crConstructors
Instance Method Summary
- #begin_occlusion_query(index : UInt32)
- #begin_pipeline_statistics_query(set : LibWGPU::QuerySet, index : UInt32)
- #bind_group
- #blend_color=(color : LibWGPU::Color)
- #draw(vertex_count : UInt32, instance_count : UInt32, first_vertex : UInt32, first_instance : UInt32)
- #draw_indexed(index_count : UInt32, instance_count : UInt32, first_index : UInt32, base_vertex : Int32, first_instance : UInt32)
- #draw_indexed_indirect(buf : Buffer, offset : UInt64)
- #draw_indirect(buf : Buffer, offset : UInt64)
- #end_occlusion_query
- #end_pass
- #end_pipeline_statistics_query
- #execute_bundles(bundles : Array(RenderBundle))
- #insert_debug_marker(label : String)
- #pipeline=(pipeline : RenderPipeline)
- #pop_debug_group
- #push_debug_group(label : String)
-
#scissor_rect=(rect : Rectangle)
Sets the scissor region.
- #set_index_buffer(buf : Buffer, format : LibWGPU::IndexFormat, offset : UInt64, size : UInt64)
- #set_vertex_buffer(slot : UInt32, buf : Buffer, offset : UInt64, size : UInt64)
-
#stencil_reference=(ref : UInt32)
Subsequent stencil tests will test against this value.
-
#viewport=(view : Viewport)
Sets the viewport region.
Instance methods inherited from class WGPU::WgpuId
finalize
finalize,
id : Pointer(Void)
id,
is_valid?
is_valid?,
to_unsafe : Pointer(Void)
to_unsafe
Constructor Detail
Instance Method Detail
def draw(vertex_count : UInt32, instance_count : UInt32, first_vertex : UInt32, first_instance : UInt32)
#
def draw_indexed(index_count : UInt32, instance_count : UInt32, first_index : UInt32, base_vertex : Int32, first_instance : UInt32)
#
Sets the scissor region. Subsequent draw calls will discard any fragments that fall outside this region.
Sets the viewport region. Subsequent draw calls will draw any fragments in this region.