#[non_exhaustive]pub enum ShaderFormat {
Dxbc,
Dxil,
SpirV,
Glsl,
D3d9,
}Expand description
How a shader program’s bytes are encoded. Only the encoding lives here; reading one is the job of the crate that
knows it (iridia-dxbc, iridia-dxil, iridia-d3d9, iridia-mojo), and the program’s meaning is lifted from it on
demand.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dxbc
A DXBC container holding Shader Model 4 or 5 byte code.
Dxil
A DXBC container holding Shader Model 6 (DXIL, LLVM bitcode).
SpirV
A SPIR-V module.
Glsl
GLSL source text.
D3d9
Raw Direct3D 9 shader tokens, including the version token and END (no DXBC container).
Trait Implementations§
Source§impl Clone for ShaderFormat
impl Clone for ShaderFormat
impl Copy for ShaderFormat
Source§impl Debug for ShaderFormat
impl Debug for ShaderFormat
impl Eq for ShaderFormat
Source§impl Hash for ShaderFormat
impl Hash for ShaderFormat
Source§impl Ord for ShaderFormat
impl Ord for ShaderFormat
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ShaderFormat
impl PartialEq for ShaderFormat
Source§impl PartialOrd for ShaderFormat
impl PartialOrd for ShaderFormat
Source§impl Serialize for ShaderFormat
impl Serialize for ShaderFormat
impl StructuralPartialEq for ShaderFormat
Auto Trait Implementations§
impl Freeze for ShaderFormat
impl RefUnwindSafe for ShaderFormat
impl Send for ShaderFormat
impl Sync for ShaderFormat
impl Unpin for ShaderFormat
impl UnsafeUnpin for ShaderFormat
impl UnwindSafe for ShaderFormat
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