dawn.ComputePipelineDescriptor
export interface ComputePipelineDescriptor {
/**
* Pipeline layout ('auto' for automatic layout inference).
*/
layout: 'auto' | unknown;
/**
* Compute shader configuration.
*/
compute: {
/**
* The compiled shader module.
*/
module: WGPUShaderModule;
/**
* Entry point function name in the shader.
* Default: 'main'
*/
entryPoint?: string;
};
}layout('auto' | unknown)- – Pipeline layout ('auto' for automatic layout inference).
compute({ /** * The compiled shader module. */ module: WGPUShaderModule; /** * Entry point function name in the shader. * Default: 'main' */ entryPoint?: string; })- – Compute shader configuration.
Descriptor for creating a compute pipeline.