[remote] BindGroupLayoutDescriptor

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev authored and Teodor Tanasoaia committed 2026-08-26 12:31:17 +02:00
1 parent e3166286c6
commit 59ddce98c0
1 file changed
+7 -2
+7 -2
View File
@@ -438,7 +438,7 @@ impl Global {
pub fn device_create_bind_group_layout(
&self,
device_id: DeviceId,
desc: &binding_model::BindGroupLayoutDescriptor,
desc: &BindGroupLayoutDescriptor,
id_in: id::BindGroupLayoutId,
) -> (
id::BindGroupLayoutId,
@@ -453,7 +453,12 @@ impl Global {
let device = devices.get(device_id);
let (bgl, error) = device.create_bind_group_layout(desc);
let desc = binding_model::BindGroupLayoutDescriptor {
label: desc.label.as_ref().map(|l| Cow::Borrowed(l.as_ref())),
entries: Cow::Borrowed(&desc.entries),
};
let (bgl, error) = device.create_bind_group_layout(&desc);
let id = bind_group_layouts.assign(id_in, bgl);