class WGPU::RenderPass

Defined in:

wgpu.cr

Constructors

Instance Method Summary

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

def self.new(encoder : LibWGPU::RenderPassEncoder) #

[View source]

Instance Method Detail

def begin_occlusion_query(index : UInt32) #

[View source]
def begin_pipeline_statistics_query(set : LibWGPU::QuerySet, index : UInt32) #

[View source]
def bind_group #

[View source]
def blend_color=(color : LibWGPU::Color) #

[View source]
def draw(vertex_count : UInt32, instance_count : UInt32, first_vertex : UInt32, first_instance : UInt32) #

[View source]
def draw_indexed(index_count : UInt32, instance_count : UInt32, first_index : UInt32, base_vertex : Int32, first_instance : UInt32) #

[View source]
def draw_indexed_indirect(buf : Buffer, offset : UInt64) #

[View source]
def draw_indirect(buf : Buffer, offset : UInt64) #

[View source]
def end_occlusion_query #

[View source]
def end_pass #

[View source]
def end_pipeline_statistics_query #

[View source]
def execute_bundles(bundles : Array(RenderBundle)) #

[View source]
def insert_debug_marker(label : String) #

[View source]
def pipeline=(pipeline : RenderPipeline) #

[View source]
def pop_debug_group #

[View source]
def push_debug_group(label : String) #

[View source]
def scissor_rect=(rect : Rectangle) #

Sets the scissor region. Subsequent draw calls will discard any fragments that fall outside this region.


[View source]
def set_index_buffer(buf : Buffer, format : LibWGPU::IndexFormat, offset : UInt64, size : UInt64) #

[View source]
def set_vertex_buffer(slot : UInt32, buf : Buffer, offset : UInt64, size : UInt64) #

[View source]
def stencil_reference=(ref : UInt32) #

Subsequent stencil tests will test against this value.


[View source]
def viewport=(view : Viewport) #

Sets the viewport region. Subsequent draw calls will draw any fragments in this region.


[View source]