diff --git a/files/en-us/web/api/gpuadapter/requestdevice/index.md b/files/en-us/web/api/gpuadapter/requestdevice/index.md index 827d397688bcdc2..1a79479abf786d6 100644 --- a/files/en-us/web/api/gpuadapter/requestdevice/index.md +++ b/files/en-us/web/api/gpuadapter/requestdevice/index.md @@ -104,7 +104,7 @@ async function init() { const device = await adapter.requestDevice({ defaultQueue: { - label: "myqueue", + label: "my_queue", }, requiredFeatures, requiredLimits, diff --git a/files/en-us/web/api/gpubindgroup/label/index.md b/files/en-us/web/api/gpubindgroup/label/index.md index 5c07e3315cd3eca..337e371c73ccbf6 100644 --- a/files/en-us/web/api/gpubindgroup/label/index.md +++ b/files/en-us/web/api/gpubindgroup/label/index.md @@ -38,9 +38,9 @@ const bindGroup = device.createBindGroup({ ], }); -bindGroup.label = "my-bind-group"; +bindGroup.label = "my_bind_group"; -console.log(bindGroup.label); // "my-bind-group"; +console.log(bindGroup.label); // "my_bind_group" ``` Setting a label via the originating {{domxref("GPUDevice.createBindGroup()")}} call, and then getting it via `GPUBindGroup.label`: @@ -58,10 +58,10 @@ const bindGroup = device.createBindGroup({ }, }, ], - label: "my-bind-group", + label: "my_bind_group", }); -console.log(bindGroup.label); // "my-bind-group"; +console.log(bindGroup.label); // "my_bind_group" ``` ## Specifications diff --git a/files/en-us/web/api/gpubindgrouplayout/label/index.md b/files/en-us/web/api/gpubindgrouplayout/label/index.md index 76654411a07f3a8..5b750554aa0c085 100644 --- a/files/en-us/web/api/gpubindgrouplayout/label/index.md +++ b/files/en-us/web/api/gpubindgrouplayout/label/index.md @@ -38,9 +38,9 @@ const bindGroupLayout = device.createBindGroupLayout({ ], }); -bindGroupLayout.label = "my-bind-group-layout"; +bindGroupLayout.label = "my_bind_group_layout"; -console.log(bindGroupLayout.label); // "my-bind-group-layout"; +console.log(bindGroupLayout.label); // "my_bind_group_layout" ``` Setting a label via the originating {{domxref("GPUDevice.createBindGroupLayout()")}} call, and then getting it via `GPUBindGroupLayout.label`: @@ -58,10 +58,10 @@ const bindGroupLayout = device.createBindGroupLayout({ }, }, ], - label: "my-bind-group-layout", + label: "my_bind_group_layout", }); -console.log(bindGroupLayout.label); // "my-bind-group-layout"; +console.log(bindGroupLayout.label); // "my_bind_group_layout" ``` ## Specifications diff --git a/files/en-us/web/api/gpubuffer/label/index.md b/files/en-us/web/api/gpubuffer/label/index.md index 027d006d8e03532..94fac19203083ef 100644 --- a/files/en-us/web/api/gpubuffer/label/index.md +++ b/files/en-us/web/api/gpubuffer/label/index.md @@ -29,9 +29,9 @@ const output = device.createBuffer({ usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_SRC, }); -output.label = "my-buffer"; +output.label = "my_buffer"; -console.log(output.label); // "my-buffer" +console.log(output.label); // "my_buffer" ``` Setting a label via the originating {{domxref("GPUDevice.createBuffer()")}} call, and then getting it via `GPUBuffer.label`: @@ -40,10 +40,10 @@ Setting a label via the originating {{domxref("GPUDevice.createBuffer()")}} call const output = device.createBuffer({ size: BUFFER_SIZE, usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_SRC, - label: "my-buffer", + label: "my_buffer", }); -console.log(output.label); // "my-buffer" +console.log(output.label); // "my_buffer" ``` ## Specifications diff --git a/files/en-us/web/api/gpucommandbuffer/label/index.md b/files/en-us/web/api/gpucommandbuffer/label/index.md index de93311f955f828..222aac08eb76f92 100644 --- a/files/en-us/web/api/gpucommandbuffer/label/index.md +++ b/files/en-us/web/api/gpucommandbuffer/label/index.md @@ -25,18 +25,18 @@ Setting and getting a label via `GPUCommandBuffer.label`: ```js const commandBuffer = commandEncoder.finish(); -commandBuffer.label = "my-command-buffer"; -console.log(commandBuffer.label); // "my-command-buffer"; +commandBuffer.label = "my_command_buffer"; +console.log(commandBuffer.label); // "my_command_buffer" ``` Setting a label via the originating {{domxref("GPUCommandEncoder.finish()")}} call, and then getting it via `GPUCommandBuffer.label`: ```js const commandBuffer = commandEncoder.finish({ - label: "my-command-buffer", + label: "my_command_buffer", }); -console.log(commandBuffer.label); // "my-command-buffer"; +console.log(commandBuffer.label); // "my_command_buffer" ``` ## Specifications diff --git a/files/en-us/web/api/gpucommandencoder/insertdebugmarker/index.md b/files/en-us/web/api/gpucommandencoder/insertdebugmarker/index.md index b79559b299e2d4e..836011ad318d254 100644 --- a/files/en-us/web/api/gpucommandencoder/insertdebugmarker/index.md +++ b/files/en-us/web/api/gpucommandencoder/insertdebugmarker/index.md @@ -35,7 +35,7 @@ None ({{jsxref("Undefined")}}). ```js // ... -commandEncoder.insertDebugMarker("my-marker"); +commandEncoder.insertDebugMarker("my_marker"); // ... ``` diff --git a/files/en-us/web/api/gpucommandencoder/label/index.md b/files/en-us/web/api/gpucommandencoder/label/index.md index 624363be6bdef55..139e4c6eaec0c90 100644 --- a/files/en-us/web/api/gpucommandencoder/label/index.md +++ b/files/en-us/web/api/gpucommandencoder/label/index.md @@ -25,18 +25,18 @@ Setting and getting a label via `GPUCommandEncoder.label`: ```js const commandEncoder = device.createCommandEncoder(); -commandEncoder.label = "my-command-encoder"; -console.log(commandEncoder.label); // "my-command-encoder"; +commandEncoder.label = "my_command_encoder"; +console.log(commandEncoder.label); // "my_command_encoder" ``` Setting a label via the originating {{domxref("GPUDevice.createCommandEncoder()")}} call, and then getting it via `GPUCommandEncoder.label`: ```js const commandEncoder = device.createCommandEncoder({ - label: "my-command-encoder", + label: "my_command_encoder", }); -console.log(commandEncoder.label); // "my-command-encoder"; +console.log(commandEncoder.label); // "my_command_encoder" ``` ## Specifications diff --git a/files/en-us/web/api/gpucommandencoder/popdebuggroup/index.md b/files/en-us/web/api/gpucommandencoder/popdebuggroup/index.md index 7a2d7dc4201291c..e7234c778922041 100644 --- a/files/en-us/web/api/gpucommandencoder/popdebuggroup/index.md +++ b/files/en-us/web/api/gpucommandencoder/popdebuggroup/index.md @@ -40,7 +40,7 @@ The following criteria must be met when calling **`popDebugGroup()`**, otherwise ```js // ... -commandEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +commandEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); diff --git a/files/en-us/web/api/gpucommandencoder/pushdebuggroup/index.md b/files/en-us/web/api/gpucommandencoder/pushdebuggroup/index.md index a27b36b4a36b1cc..505803b6dcf1bf4 100644 --- a/files/en-us/web/api/gpucommandencoder/pushdebuggroup/index.md +++ b/files/en-us/web/api/gpucommandencoder/pushdebuggroup/index.md @@ -35,7 +35,7 @@ None ({{jsxref("Undefined")}}). ```js // ... -commandEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +commandEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); diff --git a/files/en-us/web/api/gpucomputepassencoder/insertdebugmarker/index.md b/files/en-us/web/api/gpucomputepassencoder/insertdebugmarker/index.md index 0f42ded718b5e7e..ae5af7b70e65f9d 100644 --- a/files/en-us/web/api/gpucomputepassencoder/insertdebugmarker/index.md +++ b/files/en-us/web/api/gpucomputepassencoder/insertdebugmarker/index.md @@ -35,7 +35,7 @@ None ({{jsxref("Undefined")}}). ```js // ... -passEncoder.insertDebugMarker("my-marker"); +passEncoder.insertDebugMarker("my_marker"); // ... ``` diff --git a/files/en-us/web/api/gpucomputepassencoder/label/index.md b/files/en-us/web/api/gpucomputepassencoder/label/index.md index a71acbebeb509ec..2b6805b3ee38427 100644 --- a/files/en-us/web/api/gpucomputepassencoder/label/index.md +++ b/files/en-us/web/api/gpucomputepassencoder/label/index.md @@ -27,8 +27,8 @@ Setting and getting a label via `GPUComputePassEncoder.label`: const commandEncoder = device.createCommandEncoder(); const passEncoder = commandEncoder.beginComputePass(); -passEncoder.label = "my-compute-pass-encoder"; -console.log(passEncoder.label); // "my-compute-pass-encoder" +passEncoder.label = "my_compute_pass_encoder"; +console.log(passEncoder.label); // "my_compute_pass_encoder" ``` Setting a label via the originating {{domxref("GPUCommandEncoder.beginComputePass()")}} call, and then getting it via `GPUComputePassEncoder.label`: @@ -36,10 +36,10 @@ Setting a label via the originating {{domxref("GPUCommandEncoder.beginComputePas ```js const commandEncoder = device.createCommandEncoder(); const passEncoder = commandEncoder.beginComputePass({ - label: "my-compute-pass-encoder", + label: "my_compute_pass_encoder", }); -console.log(passEncoder.label); // "my-compute-pass-encoder" +console.log(passEncoder.label); // "my_compute_pass_encoder" ``` ## Specifications diff --git a/files/en-us/web/api/gpucomputepassencoder/popdebuggroup/index.md b/files/en-us/web/api/gpucomputepassencoder/popdebuggroup/index.md index 3ccf19e3b425c29..3a5a9513e40da09 100644 --- a/files/en-us/web/api/gpucomputepassencoder/popdebuggroup/index.md +++ b/files/en-us/web/api/gpucomputepassencoder/popdebuggroup/index.md @@ -42,7 +42,7 @@ The following criteria must be met when calling **`popDebugGroup()`**, otherwise const passEncoder = commandEncoder.beginComputePass(); -passEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +passEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group passEncoder.setPipeline(computePipeline); passEncoder.setBindGroup(0, bindGroup); diff --git a/files/en-us/web/api/gpucomputepassencoder/pushdebuggroup/index.md b/files/en-us/web/api/gpucomputepassencoder/pushdebuggroup/index.md index 597557c5ee2d3be..557315770690e8c 100644 --- a/files/en-us/web/api/gpucomputepassencoder/pushdebuggroup/index.md +++ b/files/en-us/web/api/gpucomputepassencoder/pushdebuggroup/index.md @@ -37,7 +37,7 @@ None ({{jsxref("Undefined")}}). const passEncoder = commandEncoder.beginComputePass(); -passEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +passEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group passEncoder.setPipeline(computePipeline); passEncoder.setBindGroup(0, bindGroup); diff --git a/files/en-us/web/api/gpucomputepipeline/label/index.md b/files/en-us/web/api/gpucomputepipeline/label/index.md index 66888792975e31d..023641c1020be72 100644 --- a/files/en-us/web/api/gpucomputepipeline/label/index.md +++ b/files/en-us/web/api/gpucomputepipeline/label/index.md @@ -36,9 +36,9 @@ const computePipeline = device.createComputePipeline({ }, }); -computePipeline.label = "my-compute-pipeline"; +computePipeline.label = "my_compute_pipeline"; -console.log(computePipeline.label); // "my-compute-pipeline" +console.log(computePipeline.label); // "my_compute_pipeline" ``` Setting a label via a {{domxref("GPUDevice.createComputePipeline()")}} call, and then getting it via `GPUComputePipeline.label`: @@ -54,10 +54,10 @@ const computePipeline = device.createComputePipeline({ module: shaderModule, entryPoint: "main", }, - label: "my-compute-pipeline", + label: "my_compute_pipeline", }); -console.log(computePipeline.label); // "my-compute-pipeline" +console.log(computePipeline.label); // "my_compute_pipeline" ``` ## Specifications diff --git a/files/en-us/web/api/gpudevice/label/index.md b/files/en-us/web/api/gpudevice/label/index.md index 8848ce03c499565..521e14002a883f3 100644 --- a/files/en-us/web/api/gpudevice/label/index.md +++ b/files/en-us/web/api/gpudevice/label/index.md @@ -34,7 +34,7 @@ async function init() { const device = await adapter.requestDevice(); // Set a label - device.label = "my-label"; + device.label = "my_label"; // Get a label console.log(device.label); diff --git a/files/en-us/web/api/gpuexternaltexture/label/index.md b/files/en-us/web/api/gpuexternaltexture/label/index.md index 49379197ded19ed..43b24daa801e929 100644 --- a/files/en-us/web/api/gpuexternaltexture/label/index.md +++ b/files/en-us/web/api/gpuexternaltexture/label/index.md @@ -30,9 +30,9 @@ const externalTexture = device.importExternalTexture({ source: video, }); -externalTexture.label = "myExtTexture"; +externalTexture.label = "my_ext_texture"; -console.log(externalTexture.label); // "myExtTexture" +console.log(externalTexture.label); // "my_ext_texture" ``` Setting a label via the originating {{domxref("GPUDevice.importExternalTexture()")}} call, and then getting it via `GPUExternalTexture.label`: @@ -42,10 +42,10 @@ Setting a label via the originating {{domxref("GPUDevice.importExternalTexture() const externalTexture = device.importExternalTexture({ source: video, - label: "myExtTexture", + label: "my_ext_texture", }); -console.log(externalTexture.label); // "myExtTexture" +console.log(externalTexture.label); // "my_ext_texture" ``` ## Specifications diff --git a/files/en-us/web/api/gpupipelinelayout/label/index.md b/files/en-us/web/api/gpupipelinelayout/label/index.md index a202b265980515c..2d00a17024acbb4 100644 --- a/files/en-us/web/api/gpupipelinelayout/label/index.md +++ b/files/en-us/web/api/gpupipelinelayout/label/index.md @@ -30,9 +30,9 @@ const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [bindGroupLayout], }); -pipelineLayout.label = "my-pipeline-layout"; +pipelineLayout.label = "my_pipeline_layout"; -console.log(pipelineLayout.label); // "my-pipeline-layout"; +console.log(pipelineLayout.label); // "my_pipeline_layout" ``` Setting a label via the originating {{domxref("GPUDevice.createPipelineLayout()")}} call, and then getting it via `GPUPipelineLayout.label`: @@ -42,10 +42,10 @@ Setting a label via the originating {{domxref("GPUDevice.createPipelineLayout()" const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [bindGroupLayout], - label: "my-pipeline-layout", + label: "my_pipeline_layout", }); -console.log(pipelineLayout.label); // "my-pipeline-layout"; +console.log(pipelineLayout.label); // "my_pipeline_layout" ``` ## Specifications diff --git a/files/en-us/web/api/gpuqueryset/label/index.md b/files/en-us/web/api/gpuqueryset/label/index.md index a35211bab6f089d..f56ad6be6054202 100644 --- a/files/en-us/web/api/gpuqueryset/label/index.md +++ b/files/en-us/web/api/gpuqueryset/label/index.md @@ -29,9 +29,9 @@ const querySet = device.createQuerySet({ count: 32, }); -querySet.label = "my-query-set"; +querySet.label = "my_query_set"; -console.log(querySet.label); // "my-query-set" +console.log(querySet.label); // "my_query_set" ``` Setting a label via the originating {{domxref("GPUDevice.createQuerySet()")}} call, and then getting it via `GPUQuerySet.label`: @@ -40,10 +40,10 @@ Setting a label via the originating {{domxref("GPUDevice.createQuerySet()")}} ca const querySet = device.createQuerySet({ type: "occlusion", count: 32, - label: "my-query-set", + label: "my_query_set", }); -console.log(querySet.label); // "my-query-set" +console.log(querySet.label); // "my_query_set" ``` ## Specifications diff --git a/files/en-us/web/api/gpuqueue/label/index.md b/files/en-us/web/api/gpuqueue/label/index.md index 2bb050233f5fe7c..af44a2ab27da0e0 100644 --- a/files/en-us/web/api/gpuqueue/label/index.md +++ b/files/en-us/web/api/gpuqueue/label/index.md @@ -24,15 +24,15 @@ A string. If no label value has previously been set, getting the label returns a Setting and getting a label via `GPUQueue.label`: ```js -device.queue.label = "myqueue"; -console.log(device.queue.label); // "myqueue" +device.queue.label = "my_queue"; +console.log(device.queue.label); // "my_queue" ``` You can also set the queue's label at the time you request the device, like this: ```js const device = adapter.requestDevice({ - defaultQueue: { label: "myqueue" }, + defaultQueue: { label: "my_queue" }, }); ``` diff --git a/files/en-us/web/api/gpurenderbundle/label/index.md b/files/en-us/web/api/gpurenderbundle/label/index.md index 570b46e87fad62c..652872a54b042e3 100644 --- a/files/en-us/web/api/gpurenderbundle/label/index.md +++ b/files/en-us/web/api/gpurenderbundle/label/index.md @@ -26,18 +26,18 @@ Setting and getting a label via `GPURenderBundle.label`: ```js const renderBundle = renderBundleEncoder.finish(); -renderBundle.label = "my-render-bundle"; -console.log(renderBundle.label); // "my-render-bundle" +renderBundle.label = "my_render_bundle"; +console.log(renderBundle.label); // "my_render_bundle" ``` Setting a label via the originating {{domxref("GPURenderBundleEncoder.finish()")}} call, and then getting it via `GPURenderBundle.label`: ```js const renderBundle = renderBundleEncoder.finish({ - label: "my-render-bundle", + label: "my_render_bundle", }); -console.log(renderBundle.label); // "my-render-bundle" +console.log(renderBundle.label); // "my_render_bundle" ``` ## Specifications diff --git a/files/en-us/web/api/gpurenderbundleencoder/insertdebugmarker/index.md b/files/en-us/web/api/gpurenderbundleencoder/insertdebugmarker/index.md index 4dc142cdf6a3049..586c8efa514c677 100644 --- a/files/en-us/web/api/gpurenderbundleencoder/insertdebugmarker/index.md +++ b/files/en-us/web/api/gpurenderbundleencoder/insertdebugmarker/index.md @@ -38,7 +38,7 @@ None ({{jsxref("Undefined")}}). ```js // ... -bundleEncoder.insertDebugMarker("my-marker"); +bundleEncoder.insertDebugMarker("my_marker"); // ... ``` diff --git a/files/en-us/web/api/gpurenderbundleencoder/label/index.md b/files/en-us/web/api/gpurenderbundleencoder/label/index.md index c03c87a04aead0a..33edd4be1af7c45 100644 --- a/files/en-us/web/api/gpurenderbundleencoder/label/index.md +++ b/files/en-us/web/api/gpurenderbundleencoder/label/index.md @@ -31,8 +31,8 @@ const renderBundleEncoder = device.createRenderBundleEncoder({ colorFormats: [presentationFormat], }); -renderBundleEncoder.label = "my-render-bundle-encoder"; -console.log(renderBundleEncoder.label); // "my-render-bundle-encoder" +renderBundleEncoder.label = "my_render_bundle_encoder"; +console.log(renderBundleEncoder.label); // "my_render_bundle_encoder" ``` Setting a label via the originating {{domxref("GPUDevice.createRenderBundleEncoder()")}} call, and then getting it via `GPURenderBundleEncoder.label`: @@ -40,10 +40,10 @@ Setting a label via the originating {{domxref("GPUDevice.createRenderBundleEncod ```js const renderBundleEncoder = device.createRenderBundleEncoder({ colorFormats: [presentationFormat], - label: "my-render-bundle-encoder", + label: "my_render_bundle_encoder", }); -console.log(renderBundleEncoder.label); // "my-render-bundle-encoder" +console.log(renderBundleEncoder.label); // "my_render_bundle_encoder" ``` ## Specifications diff --git a/files/en-us/web/api/gpurenderbundleencoder/popdebuggroup/index.md b/files/en-us/web/api/gpurenderbundleencoder/popdebuggroup/index.md index a54acbf35dc972c..0eaffc24fa62588 100644 --- a/files/en-us/web/api/gpurenderbundleencoder/popdebuggroup/index.md +++ b/files/en-us/web/api/gpurenderbundleencoder/popdebuggroup/index.md @@ -45,7 +45,7 @@ The following criteria must be met when calling **`popDebugGroup()`**, otherwise const bundleEncoder = device.createRenderBundleEncoder(renderBundleDescriptor); -bundleEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +bundleEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group bundleEncoder.setPipeline(renderPipeline); bundleEncoder.setVertexBuffer(0, vertexBuffer); diff --git a/files/en-us/web/api/gpurenderbundleencoder/pushdebuggroup/index.md b/files/en-us/web/api/gpurenderbundleencoder/pushdebuggroup/index.md index 140ad2f679250fe..cb1aa3c73a6f12a 100644 --- a/files/en-us/web/api/gpurenderbundleencoder/pushdebuggroup/index.md +++ b/files/en-us/web/api/gpurenderbundleencoder/pushdebuggroup/index.md @@ -40,7 +40,7 @@ None ({{jsxref("Undefined")}}). const bundleEncoder = device.createRenderBundleEncoder(renderBundleDescriptor); -bundleEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +bundleEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group bundleEncoder.setPipeline(renderPipeline); bundleEncoder.setVertexBuffer(0, vertexBuffer); diff --git a/files/en-us/web/api/gpurenderpassencoder/insertdebugmarker/index.md b/files/en-us/web/api/gpurenderpassencoder/insertdebugmarker/index.md index 8f98d76735a6b37..a1ba127e3294c98 100644 --- a/files/en-us/web/api/gpurenderpassencoder/insertdebugmarker/index.md +++ b/files/en-us/web/api/gpurenderpassencoder/insertdebugmarker/index.md @@ -35,7 +35,7 @@ None ({{jsxref("Undefined")}}). ```js // ... -passEncoder.insertDebugMarker("my-marker"); +passEncoder.insertDebugMarker("my_marker"); // ... ``` diff --git a/files/en-us/web/api/gpurenderpassencoder/label/index.md b/files/en-us/web/api/gpurenderpassencoder/label/index.md index 43f4ecc0fdabfb4..4951e88adcd800c 100644 --- a/files/en-us/web/api/gpurenderpassencoder/label/index.md +++ b/files/en-us/web/api/gpurenderpassencoder/label/index.md @@ -38,9 +38,9 @@ const renderPassDescriptor = { }; const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); -passEncoder.label = "my-render-pass-encoder"; +passEncoder.label = "my_render_pass_encoder"; -console.log(passEncoder.label); // "my-render-pass-encoder" +console.log(passEncoder.label); // "my_render_pass_encoder" ``` Setting a label via the originating {{domxref("GPUCommandEncoder.beginRenderPass()")}} call, and then getting it via `GPURenderPassEncoder.label`: @@ -57,12 +57,12 @@ const renderPassDescriptor = { view: context.getCurrentTexture().createView(), }, ], - label: "my-render-pass-encoder", + label: "my_render_pass_encoder", }; const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); -console.log(passEncoder.label); // "my-render-pass-encoder" +console.log(passEncoder.label); // "my_render_pass_encoder" ``` ## Specifications diff --git a/files/en-us/web/api/gpurenderpassencoder/popdebuggroup/index.md b/files/en-us/web/api/gpurenderpassencoder/popdebuggroup/index.md index 069b6b50c88f499..1b23f42148a581b 100644 --- a/files/en-us/web/api/gpurenderpassencoder/popdebuggroup/index.md +++ b/files/en-us/web/api/gpurenderpassencoder/popdebuggroup/index.md @@ -42,7 +42,7 @@ The following criteria must be met when calling **`popDebugGroup()`**, otherwise const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); -passEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +passEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group passEncoder.setPipeline(renderPipeline); passEncoder.setVertexBuffer(0, vertexBuffer); diff --git a/files/en-us/web/api/gpurenderpassencoder/pushdebuggroup/index.md b/files/en-us/web/api/gpurenderpassencoder/pushdebuggroup/index.md index 06a5309ed8e2a76..adebd62755f7a59 100644 --- a/files/en-us/web/api/gpurenderpassencoder/pushdebuggroup/index.md +++ b/files/en-us/web/api/gpurenderpassencoder/pushdebuggroup/index.md @@ -37,7 +37,7 @@ None ({{jsxref("Undefined")}}). const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); -passEncoder.pushDebugGroup("my-group-marker"); // Start labeled debug group +passEncoder.pushDebugGroup("my_group_marker"); // Start labeled debug group passEncoder.setPipeline(renderPipeline); passEncoder.setVertexBuffer(0, vertexBuffer); diff --git a/files/en-us/web/api/gpurenderpipeline/label/index.md b/files/en-us/web/api/gpurenderpipeline/label/index.md index 18b267e1c086afb..201cc27aabfde6d 100644 --- a/files/en-us/web/api/gpurenderpipeline/label/index.md +++ b/files/en-us/web/api/gpurenderpipeline/label/index.md @@ -49,9 +49,9 @@ const pipelineDescriptor = { const renderPipeline = device.createRenderPipeline(pipelineDescriptor); -renderPipeline.label = "my-render-pipeline"; +renderPipeline.label = "my_render_pipeline"; -console.log(renderPipeline.label); // "my-render-pipeline" +console.log(renderPipeline.label); // "my_render_pipeline" ``` Setting a label via a {{domxref("GPUDevice.createRenderPipeline()")}} call, and then getting it via `GPURenderPipeline.label`: @@ -78,12 +78,12 @@ const pipelineDescriptor = { topology: "triangle-list", }, layout: "auto", - label: "my-render-pipeline", + label: "my_render_pipeline", }; const renderPipeline = device.createRenderPipeline(pipelineDescriptor); -console.log(renderPipeline.label); // "my-render-pipeline" +console.log(renderPipeline.label); // "my_render_pipeline" ``` ## Specifications diff --git a/files/en-us/web/api/gpusampler/label/index.md b/files/en-us/web/api/gpusampler/label/index.md index be78173a4e0d734..a39ad0ea08dc675 100644 --- a/files/en-us/web/api/gpusampler/label/index.md +++ b/files/en-us/web/api/gpusampler/label/index.md @@ -30,9 +30,9 @@ const sampler = device.createSampler({ compare: "less", }); -sampler.label = "my-sampler"; +sampler.label = "my_sampler"; -console.log(sampler.label); // "my-sampler" +console.log(sampler.label); // "my_sampler" ``` Setting a label via the originating {{domxref("GPUDevice.createSampler()")}} call, and then getting it via `GPUSampler.label`: @@ -42,10 +42,10 @@ Setting a label via the originating {{domxref("GPUDevice.createSampler()")}} cal const sampler = device.createSampler({ compare: "less", - label: "my-sampler", + label: "my_sampler", }); -console.log(sampler.label); // "my-sampler" +console.log(sampler.label); // "my_sampler" ``` ## Specifications diff --git a/files/en-us/web/api/gpushadermodule/label/index.md b/files/en-us/web/api/gpushadermodule/label/index.md index adeaec76487aa41..a31a6c8dae66320 100644 --- a/files/en-us/web/api/gpushadermodule/label/index.md +++ b/files/en-us/web/api/gpushadermodule/label/index.md @@ -30,9 +30,9 @@ const shaderModule = device.createShaderModule({ code: shaders, }); -shaderModule.label = "my-shader"; +shaderModule.label = "my_shader"; -console.log(shaderModule.label); // "my-shader" +console.log(shaderModule.label); // "my_shader" ``` Setting a label via the originating {{domxref("GPUDevice.createShaderModule()")}} call, and then getting it via `GPUShaderModule.label`: @@ -42,10 +42,10 @@ Setting a label via the originating {{domxref("GPUDevice.createShaderModule()")} const shaderModule = device.createShaderModule({ code: shaders, - label: "my-shader", + label: "my_shader", }); -console.log(shaderModule.label); // "my-shader" +console.log(shaderModule.label); // "my_shader" ``` ## Specifications diff --git a/files/en-us/web/api/gputexture/label/index.md b/files/en-us/web/api/gputexture/label/index.md index 8e2c2268d1bc2cc..eb6c3ca72082c11 100644 --- a/files/en-us/web/api/gputexture/label/index.md +++ b/files/en-us/web/api/gputexture/label/index.md @@ -32,9 +32,9 @@ const depthTexture = device.createTexture({ usage: GPUTextureUsage.RENDER_ATTACHMENT, }); -depthTexture.label = "my-texture"; +depthTexture.label = "my_texture"; -console.log(depthTexture.label); // "my-texture" +console.log(depthTexture.label); // "my_texture" ``` Setting a label via the originating {{domxref("GPUDevice.createTexture()")}} call, and then getting it via `GPUTexture.label`: @@ -46,10 +46,10 @@ const depthTexture = device.createTexture({ size: [canvas.width, canvas.height], format: "depth24plus", usage: GPUTextureUsage.RENDER_ATTACHMENT, - label: "my-texture", + label: "my_texture", }); -console.log(depthTexture.label); // "my-texture" +console.log(depthTexture.label); // "my_texture" ``` ## Specifications diff --git a/files/en-us/web/api/gputextureview/label/index.md b/files/en-us/web/api/gputextureview/label/index.md index 99882414f5c2891..925ec088bf2871a 100644 --- a/files/en-us/web/api/gputextureview/label/index.md +++ b/files/en-us/web/api/gputextureview/label/index.md @@ -34,9 +34,9 @@ const depthTexture = device.createTexture({ const view = depthTexture.createView(); -view.label = "my-view"; +view.label = "my_view"; -console.log(view.label); // "my-view" +console.log(view.label); // "my_view" ``` Setting a label via the originating {{domxref("GPUTexture.createView()")}} call, and then getting it via `GPUTextureView.label`: @@ -51,10 +51,10 @@ const depthTexture = device.createTexture({ }); const view = depthTexture.createView({ - label: "my-view", + label: "my_view", }); -console.log(view.label); // "my-view" +console.log(view.label); // "my_view" ``` ## Specifications