class WGPU::ShaderModule

Defined in:

wgpu.cr

Constructors

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.from_spirv(device : Device, spirv : Bytes, *args, label : String | Nil = nil) : ShaderModule #

[View source]
def self.from_wgsl(device : Device, wgsl : String, *args, label : String | Nil = nil) : ShaderModule #

[View source]
def self.new(device : Device, descriptor : LibWGPU::ShaderModuleDescriptor) #

[View source]