pub enum ExternalTextureNameKey {
Plane(usize),
Params,
}
Expand description
A component of a lowered external texture.
Whereas the WGSL backend implements ImageClass::External
images directly, most other Naga backends lower them to a
collection of ordinary textures that represent individual planes
(as received from a video decoder, perhaps), together with a
struct of parameters saying how they should be cropped, sampled,
and color-converted.
This lowering means that individual globals and function parameters in Naga IR must be split out by the backends into collections of globals and parameters of simpler types.
A value of this enum serves as a name key for one specific component in the lowered representation of an external texture. That is, these keys are for variables/parameters that do not exist in the Naga IR, only in its lowered form.
Variants§
Implementations§
Source§impl ExternalTextureNameKey
impl ExternalTextureNameKey
const ALL: &[(&str, ExternalTextureNameKey)]
Trait Implementations§
Source§impl Clone for ExternalTextureNameKey
impl Clone for ExternalTextureNameKey
Source§fn clone(&self) -> ExternalTextureNameKey
fn clone(&self) -> ExternalTextureNameKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExternalTextureNameKey
impl Debug for ExternalTextureNameKey
Source§impl Hash for ExternalTextureNameKey
impl Hash for ExternalTextureNameKey
Source§impl PartialEq for ExternalTextureNameKey
impl PartialEq for ExternalTextureNameKey
impl Copy for ExternalTextureNameKey
impl Eq for ExternalTextureNameKey
impl StructuralPartialEq for ExternalTextureNameKey
Auto Trait Implementations§
impl Freeze for ExternalTextureNameKey
impl RefUnwindSafe for ExternalTextureNameKey
impl Send for ExternalTextureNameKey
impl Sync for ExternalTextureNameKey
impl Unpin for ExternalTextureNameKey
impl UnwindSafe for ExternalTextureNameKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.