Enum naga::back::spv::SourceLanguage
#[repr(u32)]pub enum SourceLanguage {
Unknown = 0,
ESSL = 1,
GLSL = 2,
OpenCL_C = 3,
OpenCL_CPP = 4,
HLSL = 5,
CPP_for_OpenCL = 6,
SYCL = 7,
HERO_C = 8,
NZSL = 9,
WGSL = 10,
Slang = 11,
}
Expand description
SPIR-V operand kind: SourceLanguage
Variants§
Unknown = 0
ESSL = 1
GLSL = 2
OpenCL_C = 3
OpenCL_CPP = 4
HLSL = 5
CPP_for_OpenCL = 6
SYCL = 7
HERO_C = 8
NZSL = 9
WGSL = 10
Slang = 11
Implementations§
§impl SourceLanguage
impl SourceLanguage
pub fn from_u32(n: u32) -> Option<SourceLanguage>
Trait Implementations§
§impl Clone for SourceLanguage
impl Clone for SourceLanguage
§fn clone(&self) -> SourceLanguage
fn clone(&self) -> SourceLanguage
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 more§impl Debug for SourceLanguage
impl Debug for SourceLanguage
§impl FromStr for SourceLanguage
impl FromStr for SourceLanguage
§impl Hash for SourceLanguage
impl Hash for SourceLanguage
§impl Ord for SourceLanguage
impl Ord for SourceLanguage
§impl PartialEq for SourceLanguage
impl PartialEq for SourceLanguage
§fn eq(&self, other: &SourceLanguage) -> bool
fn eq(&self, other: &SourceLanguage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for SourceLanguage
impl PartialOrd for SourceLanguage
§fn partial_cmp(&self, other: &SourceLanguage) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceLanguage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SourceLanguage
impl Eq for SourceLanguage
impl StructuralEq for SourceLanguage
impl StructuralPartialEq for SourceLanguage
Auto Trait Implementations§
impl RefUnwindSafe for SourceLanguage
impl Send for SourceLanguage
impl Sync for SourceLanguage
impl Unpin for SourceLanguage
impl UnwindSafe for SourceLanguage
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key
and return true
if they are equal.