Struct wgpu::BindGroupLayout
source · pub struct BindGroupLayout { /* private fields */ }
Expand description
Handle to a binding group layout.
A BindGroupLayout
is a handle to the GPU-side layout of a binding group. It can be used to
create a BindGroupDescriptor
object, which in turn can be used to create a BindGroup
object with Device::create_bind_group
. A series of BindGroupLayout
s can also be used to
create a PipelineLayoutDescriptor
, which can be used to create a PipelineLayout
.
It can be created with Device::create_bind_group_layout
.
Corresponds to WebGPU GPUBindGroupLayout
.
Implementations§
source§impl BindGroupLayout
impl BindGroupLayout
sourcepub fn global_id(&self) -> Id<BindGroupLayout>
Available on crate feature expose-ids
only.
pub fn global_id(&self) -> Id<BindGroupLayout>
expose-ids
only.Returns a globally-unique identifier for this BindGroupLayout
.
Calling this method multiple times on the same object will always return the same value.
The returned value is guaranteed to be unique among all BindGroupLayout
s created from the same
Instance
.
Trait Implementations§
source§impl Debug for BindGroupLayout
impl Debug for BindGroupLayout
Auto Trait Implementations§
impl !RefUnwindSafe for BindGroupLayout
impl Send for BindGroupLayout
impl Sync for BindGroupLayout
impl Unpin for BindGroupLayout
impl !UnwindSafe for BindGroupLayout
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more