Struct ShaderModule

A handle to a compiled shader module on the GPU.

struct ShaderModule ;

A ShaderModule can be created by passing valid SPIR-V source code to Device.createShaderModule.

Fields

NameTypeDescription
id __C.WGPUShaderModuleImpl*Handle identifier.

Methods

NameDescription
destroy () Release the handle to this shader.

Remarks

Shader modules are used to define programmable stages of a pipeline.

See Also

wgpu::ShaderModule