GPUDevice: createPipelineLayout() method
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Web Workers.
The createPipelineLayout() method of the
GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
Syntax
js
createPipelineLayout(descriptor)
Parameters
descriptor-
An object containing the following properties:
bindGroupLayouts-
An array of values representing the bind group layouts for a pipeline. Each value can be:
- A
GPUBindGroupLayoutobject, created via a call toGPUDevice.createBindGroupLayout(). Each object corresponds to a@groupattribute in the shader code contained in theGPUShaderModuleused in a related pipeline. null, which represents an empty bind group layout.nullvalues are ignored when creating a pipeline layout.
- A