#[repr(u8)]pub enum WgslShaderSourceType {
UseEmbed = 1,
UseComposerEmbed = 2,
UseComposerWithPath = 4,
}Expand description
An enum representing the source type that will be generated for the output.
Variants§
UseEmbed = 1
Preparse the shader modules and embed the final shader string in the output. This option skips the naga_oil dependency in the output, and but doesn’t allow shader defines.
UseComposerEmbed = 2
Use Composer with embedded strings for each shader module, This option allows shader defines and but doesn’t allow hot-reloading.
UseComposerWithPath = 4
Use Composer with absolute path to shaders, useful for hot-reloading This option allows shader defines and is useful for hot-reloading.
Implementations§
source§impl WgslShaderSourceType
impl WgslShaderSourceType
pub fn is_use_embed(&self) -> bool
pub fn is_use_composer_embed(&self) -> bool
pub fn is_use_composer_with_path(&self) -> bool
Trait Implementations§
source§impl BitAnd for WgslShaderSourceType
impl BitAnd for WgslShaderSourceType
source§impl BitFlag for WgslShaderSourceType
impl BitFlag for WgslShaderSourceType
source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moresource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moresource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moresource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moresource§impl BitOr for WgslShaderSourceType
impl BitOr for WgslShaderSourceType
source§impl BitXor for WgslShaderSourceType
impl BitXor for WgslShaderSourceType
source§impl Clone for WgslShaderSourceType
impl Clone for WgslShaderSourceType
source§fn clone(&self) -> WgslShaderSourceType
fn clone(&self) -> WgslShaderSourceType
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 WgslShaderSourceType
impl Debug for WgslShaderSourceType
source§impl Not for WgslShaderSourceType
impl Not for WgslShaderSourceType
source§impl PartialEq for WgslShaderSourceType
impl PartialEq for WgslShaderSourceType
source§fn eq(&self, other: &WgslShaderSourceType) -> bool
fn eq(&self, other: &WgslShaderSourceType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl RawBitFlags for WgslShaderSourceType
impl RawBitFlags for WgslShaderSourceType
source§const EMPTY: Self::Numeric = {transmute(0x00): <bindgen::options::WgslShaderSourceType as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <bindgen::options::WgslShaderSourceType as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x01): <bindgen::options::WgslShaderSourceType as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x01): <bindgen::options::WgslShaderSourceType as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x07): <bindgen::options::WgslShaderSourceType as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x07): <bindgen::options::WgslShaderSourceType as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<WgslShaderSourceType>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<WgslShaderSourceType>"
The name of the type for debug formatting purposes. Read more
impl Copy for WgslShaderSourceType
impl Eq for WgslShaderSourceType
impl StructuralPartialEq for WgslShaderSourceType
Auto Trait Implementations§
impl Freeze for WgslShaderSourceType
impl RefUnwindSafe for WgslShaderSourceType
impl Send for WgslShaderSourceType
impl Sync for WgslShaderSourceType
impl Unpin for WgslShaderSourceType
impl UnwindSafe for WgslShaderSourceType
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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)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.