// …
const bindGroupLayout = device.createBindGroupLayout({
entries: [
{
binding: 0,
visibility: GPUShaderStage.COMPUTE,
buffer: {
type: "storage",
},
},
],
});
bindGroupLayout.label = "my_bind_group_layout";
console.log(bindGroupLayout.label); // "my_bind_group_layout"GPUBindGroupLayout: label property / notebook
GPUBindGroupLayout: label property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
// …
const bindGroupLayout = device.createBindGroupLayout({
entries: [
{
binding: 0,
visibility: GPUShaderStage.COMPUTE,
buffer: {
type: "storage",
},
},
],
label: "my_bind_group_layout",
});
console.log(bindGroupLayout.label); // "my_bind_group_layout"