Skip to content

material.custom#createBindGroupLayout

Summary

material.custom#createBindGroupLayout creates the immutable group-1 WebGPU layout declared at construction for the supplied device.

Syntax

CustomMaterial.createBindGroupLayout(device: GPUDevice): GPUBindGroupLayout
const result = material.createBindGroupLayout(device);

Parameters

Name Type Required Description
device GPUDevice Yes Device that creates the declared bind-group layout.

Returns

GPUBindGroupLayout - GPU bind-group layout describing required shader bindings for this object.

See Also