pub struct BindGroupLayout {
pub(crate) inner: DispatchBindGroupLayout,
}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 BindGroupLayouts 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.
Fields§
§inner: DispatchBindGroupLayoutImplementations§
Source§impl BindGroupLayout
impl BindGroupLayout
Sourcepub fn as_custom<T: BindGroupLayoutInterface>(&self) -> Option<&T>
Available on custom only.
pub fn as_custom<T: BindGroupLayoutInterface>(&self) -> Option<&T>
custom only.Returns custom implementation of BindGroupLayout (if custom backend and is internally T)
Source§impl BindGroupLayout
impl BindGroupLayout
Sourcepub fn from_core(core_bind_group_layout: Arc<BindGroupLayout>) -> Self
Available on wgpu_core only.
pub fn from_core(core_bind_group_layout: Arc<BindGroupLayout>) -> Self
wgpu_core only.Create a new bind group layout of wgpu from a wgpu-core bind group layout.
§Arguments
core_bind_group_layout- wgpu-core bind group layout.
Sourcepub fn as_core(&self) -> Option<Arc<BindGroupLayout>>
Available on wgpu_core only.
pub fn as_core(&self) -> Option<Arc<BindGroupLayout>>
wgpu_core only.Returns the underlying wgpu-core bind group layout if this BindGroupLayout is on the wgpu-core backend, otherwise None.
Trait Implementations§
Source§impl Clone for BindGroupLayout
impl Clone for BindGroupLayout
Source§fn clone(&self) -> BindGroupLayout
fn clone(&self) -> BindGroupLayout
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BindGroupLayout
impl Debug for BindGroupLayout
Source§impl Hash for BindGroupLayout
impl Hash for BindGroupLayout
Source§impl Ord for BindGroupLayout
impl Ord for BindGroupLayout
Source§impl PartialEq for BindGroupLayout
impl PartialEq for BindGroupLayout
Source§impl PartialOrd for BindGroupLayout
impl PartialOrd for BindGroupLayout
impl Eq for BindGroupLayout
Auto Trait Implementations§
impl Freeze for BindGroupLayout
impl !RefUnwindSafe for BindGroupLayout
impl Send for BindGroupLayout
impl Sync for BindGroupLayout
impl Unpin for BindGroupLayout
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more