Struct spirq::ty::SubpassDataType
source · pub struct SubpassDataType {
pub scalar_ty: ScalarType,
pub is_multisampled: bool,
}
Fields§
§scalar_ty: ScalarType
Scalar type of subpass data access result.
is_multisampled: bool
Image arrangement which encodes multisampling state.
Trait Implementations§
source§impl Clone for SubpassDataType
impl Clone for SubpassDataType
source§fn clone(&self) -> SubpassDataType
fn clone(&self) -> SubpassDataType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SubpassDataType
impl Debug for SubpassDataType
source§impl Display for SubpassDataType
impl Display for SubpassDataType
source§impl Hash for SubpassDataType
impl Hash for SubpassDataType
source§impl PartialEq for SubpassDataType
impl PartialEq for SubpassDataType
source§fn eq(&self, other: &SubpassDataType) -> bool
fn eq(&self, other: &SubpassDataType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SpirvType for SubpassDataType
impl SpirvType for SubpassDataType
source§fn min_nbyte(&self) -> Option<usize>
fn min_nbyte(&self) -> Option<usize>
Minimum size of the type in bytes if it can be represented in-memory.
It’s the size of all static members and plus one element if it’s an array.
Same as
wgpu::BindingType::Buffer::min_binding_size
.source§fn nbyte(&self) -> Option<usize>
fn nbyte(&self) -> Option<usize>
Size of the type in bytes if it can be represented in-memory.
source§fn is_sized(&self) -> bool
fn is_sized(&self) -> bool
Returns true if the type is sized. A sized type can be represented
in-memory. Otherwise the type can only be used as a descriptor resource.
source§fn member_offset(&self, _member_index: usize) -> Option<usize>
fn member_offset(&self, _member_index: usize) -> Option<usize>
Returns the offset of the i-th member in bytes if it’s a composite type.
source§fn access_ty(&self) -> Option<AccessType>
fn access_ty(&self) -> Option<AccessType>
Returns how the type can be accessed:
ReadOnly
, WriteOnly
or
ReadWrite
.impl Eq for SubpassDataType
impl StructuralPartialEq for SubpassDataType
Auto Trait Implementations§
impl Freeze for SubpassDataType
impl RefUnwindSafe for SubpassDataType
impl Send for SubpassDataType
impl Sync for SubpassDataType
impl Unpin for SubpassDataType
impl UnwindSafe for SubpassDataType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)