#[non_exhaustive]pub enum ShaderCompiler {
NotDx12,
Fxc,
Dxc {
library: String,
},
DxcFromSearchPath,
StaticDxc,
Auto,
}Expand description
The DX12 shader compiler a descriptor asks for, as reports name it.
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.
NotDx12
The descriptor enables no DX12 backend.
Fxc
FXC.
Dxc
DXC from the named library.
DxcFromSearchPath
DXC from the DLL search path (WGPU_DX12_COMPILER=dxc).
StaticDxc
DXC linked into the binary (WGPU_DX12_COMPILER=staticdxc).
Auto
wgpu’s own choice (WGPU_DX12_COMPILER=auto).
Trait Implementations§
Source§impl Clone for ShaderCompiler
impl Clone for ShaderCompiler
Source§impl Debug for ShaderCompiler
impl Debug for ShaderCompiler
Source§impl Display for ShaderCompiler
impl Display for ShaderCompiler
impl Eq for ShaderCompiler
Source§impl PartialEq for ShaderCompiler
impl PartialEq for ShaderCompiler
impl StructuralPartialEq for ShaderCompiler
Auto Trait Implementations§
impl Freeze for ShaderCompiler
impl RefUnwindSafe for ShaderCompiler
impl Send for ShaderCompiler
impl Sync for ShaderCompiler
impl Unpin for ShaderCompiler
impl UnsafeUnpin for ShaderCompiler
impl UnwindSafe for ShaderCompiler
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.