wgpu::api::shader_module

Type Alias ShaderModuleDescriptorPassthrough

Source
pub type ShaderModuleDescriptorPassthrough<'a> = CreateShaderModuleDescriptorPassthrough<'a, Label<'a>>;
Expand description

Descriptor for a shader module that will bypass wgpu’s shader tooling, for use with Device::create_shader_module_passthrough.

This type is unique to the Rust API of wgpu. In the WebGPU specification, only WGSL source code strings are accepted.

Aliased Type§

enum ShaderModuleDescriptorPassthrough<'a> {
    SpirV(ShaderModuleDescriptorSpirV<'a, Option<&'a str>>),
    Msl(ShaderModuleDescriptorMsl<'a, Option<&'a str>>),
}

Variants§

§

SpirV(ShaderModuleDescriptorSpirV<'a, Option<&'a str>>)

Passthrough for SPIR-V binaries.

§

Msl(ShaderModuleDescriptorMsl<'a, Option<&'a str>>)

Passthrough for MSL source code.