Struct naga::back::spv::LocalImageType
source · 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 OpTypeImage
s 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: ImageFormat
Implementations§
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 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 LocalImageType
impl Debug for LocalImageType
source§impl Hash for LocalImageType
impl Hash for LocalImageType
source§impl PartialEq for LocalImageType
impl PartialEq for LocalImageType
source§fn eq(&self, other: &LocalImageType) -> bool
fn eq(&self, other: &LocalImageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.