const useRenderPipelineAsync: (
device: GPUDevice,
renderContext: UseGPURenderContext,
shader: [ShaderModuleDescriptor, ShaderModuleDescriptor | null],
props?:
| GPURenderPipelineDescriptor
| { $nop: any }
| { $delete: any }
| { $set: GPURenderPipelineDescriptor }
| { $merge: Merge<GPURenderPipelineDescriptor> }
| { $apply: (
t: GPURenderPipelineDescriptor,
) => GPURenderPipelineDescriptor }
| { $patch: (
t: GPURenderPipelineDescriptor,
) => Update<GPURenderPipelineDescriptor> }
| { vertex?: Update<GPUVertexState>; primitive?: Update<GPUPrimitiveState | undefined>; depthStencil?: Update<GPUDepthStencilState | undefined>; multisample?: Update<GPUMultisampleState | undefined>; fragment?: Update<GPUFragmentState | undefined>; layout?: Update<"auto" | GPUPipelineLayout>; label?: Update<string | undefined>; },
layout?: GPUPipelineLayout,
) => any[]
packages / workbench / src / hooks / useRenderPipeline.ts