[deno] Use label from wgc

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev authored and Teodor Tanasoaia committed 2026-09-09 18:17:25 +02:00
1 parent aed6771a20
commit 040404c80b
16 files changed
+33 -69

No files matched your search

+2 -2
View File
@@ -5,12 +5,12 @@ use std::sync::Arc;
use deno_core::op2;
use deno_core::GarbageCollected;
use deno_core::WebIDL;
use wgpu_core::resource::Labeled as _;
use crate::error::GPUGenericError;
pub struct GPUCommandBuffer {
pub wgpu_command_buffer: Arc<wgpu_core::command::CommandBuffer>,
pub label: String,
}
impl deno_core::webidl::WebIdlInterfaceConverter for GPUCommandBuffer {
@@ -34,7 +34,7 @@ impl GPUCommandBuffer {
#[getter]
#[string]
fn label(&self) -> String {
self.label.clone()
self.wgpu_command_buffer.label().to_string()
}
#[setter]
#[string]