struct LocalImageType {
    sampled_type: Scalar,
    dim: Dim,
    flags: ImageTypeFlags,
    image_format: ImageFormat,
}Expand description
Characteristics of a SPIR-V OpTypeImage type.
SPIR-V requires non-composite types to be unique, including images. Since we
use LocalType for this deduplication, it’s essential that LocalImageType
be equal whenever the corresponding OpTypeImages would be. To reduce the
likelihood of mistakes, we use fields that correspond exactly to the
operands of an OpTypeImage instruction, using the actual SPIR-V types
where practical.
Fields§
§sampled_type: Scalar§dim: Dim§flags: ImageTypeFlags§image_format: ImageFormatImplementations§
Source§impl LocalImageType
 
impl LocalImageType
Sourcefn from_inner(dim: ImageDimension, arrayed: bool, class: ImageClass) -> Self
 
fn from_inner(dim: ImageDimension, arrayed: bool, class: ImageClass) -> Self
Construct a LocalImageType from the fields of a TypeInner::Image.
Trait Implementations§
Source§impl Clone for LocalImageType
 
impl Clone for LocalImageType
Source§fn clone(&self) -> LocalImageType
 
fn clone(&self) -> LocalImageType
Returns a duplicate 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 LocalImageType
 
impl Debug for LocalImageType
Source§impl Hash for LocalImageType
 
impl Hash for LocalImageType
Source§impl PartialEq for LocalImageType
 
impl PartialEq for LocalImageType
impl Copy for LocalImageType
impl Eq for LocalImageType
impl StructuralPartialEq for LocalImageType
Auto Trait Implementations§
impl Freeze for LocalImageType
impl RefUnwindSafe for LocalImageType
impl Send for LocalImageType
impl Sync for LocalImageType
impl Unpin for LocalImageType
impl UnwindSafe for LocalImageType
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§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.