mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
[remote] BindGroupLayoutDescriptor
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
1 parent
e3166286c6
commit
59ddce98c0
1 file changed
+7
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user