Device.createShaderModule - multiple declarations

Function Device.createShaderModule

Creates a shader module from SPIR-V source code.

ShaderModule createShaderModule (
  const(byte[]) spv
) @trusted;

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

Function Device.createShaderModule

Creates a shader module from WGSL source code.

ShaderModule createShaderModule (
  string wgsl
) @trusted const;

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