class WGPU::Device

Defined in:

wgpu.cr

Constructors

Class Method Summary

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(device_id : LibWGPU::Device) #

[View source]

Class Method Detail

def self.request(adapter : Adapter, label : String | Nil = nil, trace_path : String | Nil = nil) : Future::Compute(Device) #

Asynchronously request a graphics Device.

See Also: Future::Compute


[View source]

Instance Method Detail

def create_buffer(descriptor : LibWGPU::BufferDescriptor) : Buffer #

[View source]
def create_command_encoder(descriptor : LibWGPU::CommandEncoderDescriptor) : CommandEncoder #

[View source]
def create_pipeline_layout(layout : Array(BindGroupLayout) = [] of BindGroupLayout, *args, label : String | Nil = nil) : PipelineLayout #

[View source]
def create_render_pipeline(descriptor : LibWGPU::RenderPipelineDescriptor) : RenderPipeline #

[View source]
def create_shader_module(descriptor : LibWGPU::ShaderModuleDescriptor) : ShaderModule #

[View source]
def create_swap_chain(surface : Surface, descriptor : SwapChainDescriptor) : SwapChain #

[View source]
def create_texture(descriptor : LibWGPU::TextureDescriptor) : Texture #

[View source]
def poll(*args, force_wait = false) : Void #

[View source]
def queue : Queue #

[View source]