WebGPU.rocks Logo

GPUComputePipeline

  • GPUDevice.createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline

    GPUComputePipelineDescriptor

    • label: USVString= ''
    • layout: GPUPipelineLayout | GPUAutoLayoutModerequired
    • compute: GPUProgrammableStagerequired

    GPUPipelineLayout

    • label: USVString

    GPUAutoLayoutMode

    'auto'

    GPUProgrammableStage

    • module: GPUShaderModulerequired
    • entryPoint: USVString
    • constants: record<USVString, GPUPipelineConstantValue>

    GPUPipelineConstantValue

    typedef GPUPipelineConstantValue = double
  • GPUDevice.createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>

    GPUComputePipelineDescriptor

    • label: USVString= ''
    • layout: GPUPipelineLayout | GPUAutoLayoutModerequired
    • compute: GPUProgrammableStagerequired

    GPUPipelineLayout

    • label: USVString

    GPUAutoLayoutMode

    'auto'

    GPUProgrammableStage

    • module: GPUShaderModulerequired
    • entryPoint: USVString
    • constants: record<USVString, GPUPipelineConstantValue>

    GPUPipelineConstantValue

    typedef GPUPipelineConstantValue = double