// …
const bindGroup = device.createBindGroup({
layout: bindGroupLayout,
entries: [
{
binding: 0,
resource: {
buffer: output,
},
},
],
});
bindGroup.label = "my_bind_group";
console.log(bindGroup.label); // "my_bind_group"GPUBindGroup: label property / notebook
GPUBindGroup: label property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
// …
const bindGroup = device.createBindGroup({
layout: bindGroupLayout,
entries: [
{
binding: 0,
resource: {
buffer: output,
},
},
],
label: "my_bind_group",
});
console.log(bindGroup.label); // "my_bind_group"