[−][src]Struct nannou::wgpu::BindGroupBuilder
Simplified creation of a bind group.
Methods
impl<'a> Builder<'a>
[src]
pub fn new() -> Self
[src]
Begin building the bind group.
pub fn binding(self, resource: BindingResource<'a>) -> Self
[src]
Specify a new binding.
The binding
position of each binding will be inferred as the index within the order that
they are added to this builder type. If you require manually specifying the binding
location, you may be better off not using the BindGroupBuilder
and instead constructing
the BindGroupLayout
and BindGroup
manually.
pub fn buffer_bytes(
self,
buffer: &'a Buffer,
range: Range<BufferAddress>
) -> Self
[src]
self,
buffer: &'a Buffer,
range: Range<BufferAddress>
) -> Self
Specify a slice of a buffer to be bound.
The given range
represents the start and end point of the buffer to be bound in bytes.
pub fn buffer<T>(self, buffer: &'a Buffer, range: Range<usize>) -> Self where
T: Copy,
[src]
T: Copy,
Specify a slice of a buffer of elements of type T
to be bound.
This method is similar to buffer_bytes
, but expects a range of elements rather than a
range of bytes.
Type T
must be either #[repr(C)]
or #[repr(transparent)]
.
pub fn sampler(self, sampler: &'a Sampler) -> Self
[src]
Specify a sampler to be bound.
pub fn texture_view(self, view: &'a TextureViewHandle) -> Self
[src]
Specify a texture view to be bound.
pub fn build(self, device: &Device, layout: &BindGroupLayout) -> BindGroup
[src]
Build the bind group with the specified resources.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Builder<'a>
impl<'a> Send for Builder<'a>
impl<'a> Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> !UnwindSafe for Builder<'a>
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,