ShaderModuleDescriptor¶
data class ShaderModuleDescriptor(
val code: String,
val compilationHints: List<GPUShaderModuleCompilationHint> = emptyList(),
val label: String = ""
) : GPUShaderModuleDescriptor
Constructors¶
ShaderModuleDescriptor¶
Properties¶
code¶
The WGSL source code for the shader module.
See [GPUShaderModuleDescriptor.code in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpushadermoduledescriptor-code).
compilationHints¶
open override val compilationHints: List<GPUShaderModuleCompilationHint>
A list of GPUShaderModuleCompilationHints. Any hint provided by an application should contain information about one entry point of a pipeline that will eventually be created from the entry point.