pub struct ExampleBindGroup {
pub sampler: Sampler,
pub texture: Arc<Texture>,
pub buffer: ShaderBuffer,
/* private fields */
}Fields§
§sampler: Sampler§texture: Arc<Texture>§buffer: ShaderBufferTrait Implementations§
Source§impl Deref for ExampleBindGroup
impl Deref for ExampleBindGroup
Source§impl MewBindGroup for ExampleBindGroup
impl MewBindGroup for ExampleBindGroup
Source§type BufferSet = (Sampler, Arc<Texture>, ShaderBuffer)
type BufferSet = (Sampler, Arc<Texture>, ShaderBuffer)
A tuple of the bind group’s internal buffers.
Source§type BufferArray<T> = [T; 3]
type BufferArray<T> = [T; 3]
A generic array the length of the number of buffers (literally
[T; N]).Source§fn new(bind_group: BindGroup, buffers: Self::BufferSet) -> Self
fn new(bind_group: BindGroup, buffers: Self::BufferSet) -> Self
Construct by pairing the bind group with its buffers.
Source§fn layout_entries() -> &'static Self::BufferArray<BindGroupLayoutEntry>
fn layout_entries() -> &'static Self::BufferArray<BindGroupLayoutEntry>
Get an array of layout entries for all child buffers.
Source§fn layout_desc() -> BindGroupLayoutDescriptor<'static>
fn layout_desc() -> BindGroupLayoutDescriptor<'static>
Get a static layout descriptor.
Source§fn layout_desc_with(
entries: &Self::BufferArray<BindGroupLayoutEntry>,
) -> BindGroupLayoutDescriptor<'_>
fn layout_desc_with( entries: &Self::BufferArray<BindGroupLayoutEntry>, ) -> BindGroupLayoutDescriptor<'_>
Get a layout descriptor using dynamic layout entries (not recommended, I
forgor why I put this in).
Source§fn bind_group_entries(
buffers: &Self::BufferSet,
) -> Self::BufferArray<BindGroupEntry<'_>>
fn bind_group_entries( buffers: &Self::BufferSet, ) -> Self::BufferArray<BindGroupEntry<'_>>
Get an array of bind group entries, for use with
Self::bind_group_desc.
Necessary to keep borrow checker happy.Source§fn bind_group_desc<'a>(
layout: &'a MewBindGroupLayout<Self>,
entries: &'a Self::BufferArray<BindGroupEntry<'_>>,
) -> BindGroupDescriptor<'a>
fn bind_group_desc<'a>( layout: &'a MewBindGroupLayout<Self>, entries: &'a Self::BufferArray<BindGroupEntry<'_>>, ) -> BindGroupDescriptor<'a>
Get a bind group descriptor using its layout and an array of its entries
from
Self::bind_group_entries.Auto Trait Implementations§
impl Freeze for ExampleBindGroup
impl !RefUnwindSafe for ExampleBindGroup
impl Send for ExampleBindGroup
impl Sync for ExampleBindGroup
impl Unpin for ExampleBindGroup
impl !UnwindSafe for ExampleBindGroup
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.