class WGPU::Device
- WGPU::Device
- WGPU::WgpuId
- Reference
- Object
Defined in:
wgpu.crConstructors
Class Method Summary
-
.request(adapter : Adapter, label : String? = nil, trace_path : String? = nil) : Future::Compute(Device)
Asynchronously request a graphics Device.
Instance Method Summary
- #create_buffer(descriptor : LibWGPU::BufferDescriptor) : Buffer
- #create_command_encoder(descriptor : LibWGPU::CommandEncoderDescriptor) : CommandEncoder
- #create_pipeline_layout(layout : Array(BindGroupLayout) = [] of BindGroupLayout, *args, label : String? = nil) : PipelineLayout
- #create_render_pipeline(descriptor : LibWGPU::RenderPipelineDescriptor) : RenderPipeline
- #create_shader_module(descriptor : LibWGPU::ShaderModuleDescriptor) : ShaderModule
- #create_swap_chain(surface : Surface, descriptor : SwapChainDescriptor) : SwapChain
- #create_texture(descriptor : LibWGPU::TextureDescriptor) : Texture
- #poll(*args, force_wait = false) : Void
- #queue : Queue
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
Class Method Detail
def self.request(adapter : Adapter, label : String? = nil, trace_path : String? = nil) : Future::Compute(Device)
#
Asynchronously request a graphics Device.
See Also: Future::Compute
Instance Method Detail
def create_command_encoder(descriptor : LibWGPU::CommandEncoderDescriptor) : CommandEncoder
#
def create_pipeline_layout(layout : Array(BindGroupLayout) = [] of BindGroupLayout, *args, label : String? = nil) : PipelineLayout
#
def create_render_pipeline(descriptor : LibWGPU::RenderPipelineDescriptor) : RenderPipeline
#
def create_shader_module(descriptor : LibWGPU::ShaderModuleDescriptor) : ShaderModule
#