Aller au contenu

ShaderModuleCompilationHint

data class ShaderModuleCompilationHint(val entryPoint: String, val layout: GPUPipelineLayout? = null) : GPUShaderModuleCompilationHint
A hint associating a shader entry point with the pipeline layout expected to use it.

Constructors

ShaderModuleCompilationHint

constructor(entryPoint: String, layout: GPUPipelineLayout? = null)

Properties

entryPoint

open override val entryPoint: String
Name of the shader entry point associated with this compilation hint.

layout

open override val layout: GPUPipelineLayout?
A GPUPipelineLayout that the GPUShaderModule may be used with in a future createComputePipeline() or createRenderPipeline() call. If set to "auto" the layout will be the default pipeline layout for the entry point associated with this hint will be used.