pub(crate) struct BindGroups {
pub(crate) dispatch: Box<dyn DynBindGroup>,
draw: Box<dyn DynBindGroup>,
}Fields§
§dispatch: Box<dyn DynBindGroup>§draw: Box<dyn DynBindGroup>Implementations§
Source§impl BindGroups
impl BindGroups
Sourcepub(crate) fn new(
indirect_validation: &IndirectValidation,
device: &Device,
buffer_size: u64,
buffer: &dyn DynBuffer,
) -> Result<Option<Self>, DeviceError>
pub(crate) fn new( indirect_validation: &IndirectValidation, device: &Device, buffer_size: u64, buffer: &dyn DynBuffer, ) -> Result<Option<Self>, DeviceError>
Creates the bind groups for indirect validation shaders to read from buffer.
buffer_size is the user-requested size of the buffer.
Ok(None) will only be returned if buffer_size is 0.
pub(crate) fn dispose(self, device: &dyn DynDevice)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BindGroups
impl !RefUnwindSafe for BindGroups
impl Send for BindGroups
impl Sync for BindGroups
impl Unpin for BindGroups
impl UnsafeUnpin for BindGroups
impl !UnwindSafe for BindGroups
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
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>
Converts
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>
Converts
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