Type alias PipelineOptions

PipelineOptions: {
    device?: GPUDevice;
    label?: string;
    onAfterPass?: PipelineCallback;
    onBeforePass?: PipelineCallback;
    shader: string;
}

Constructor parameters shared between RenderPipeline and ComputePipeline

Type declaration

  • Optional device?: GPUDevice
  • Optional label?: string
  • Optional onAfterPass?: PipelineCallback

    The callback to run after each pass of the pipeline

  • Optional onBeforePass?: PipelineCallback

    The callback to run before each pass of the pipeline

  • shader: string

Generated using TypeDoc