#[non_exhaustive]pub enum HlslShaderModel {
Show 14 variants
ShaderModel3_0,
ShaderModel4_0,
ShaderModel4_1,
ShaderModel5_0,
ShaderModel5_1,
ShaderModel6_0,
ShaderModel6_1,
ShaderModel6_2,
ShaderModel6_3,
ShaderModel6_4,
ShaderModel6_5,
ShaderModel6_6,
ShaderModel6_7,
ShaderModel6_8,
}
Expand description
The HLSL shader model version to target. HLSL Shader model.
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.
ShaderModel3_0
Shader Model 3.0 (Direct3D 9.0c).
This is the lowest supported shader model.
ShaderModel4_0
Shader Model 4.0 (Direct3D 10.0).
Level 9.x feature levels are not explicitly supported.
ShaderModel4_1
Shader Model 4.1 (Direct3D 10.1).
ShaderModel5_0
Shader Model 5.0 (Direct3D 11/11.1)
ShaderModel5_1
Shader Model 5.1 (Direct3D 12).
ShaderModel6_0
Shader Model 6.0 (Direct3D 12)
ShaderModel6_1
Shader Model 6.1 (Direct3D 12)
ShaderModel6_2
Shader Model 6.2 (Direct3D 12)
ShaderModel6_3
Shader Model 6.3 (Direct3D 12)
ShaderModel6_4
Shader Model 6.4 (Direct3D 12)
ShaderModel6_5
Shader Model 6.5 (Direct3D 12)
ShaderModel6_6
Shader Model 6.6 (Direct3D 12)
ShaderModel6_7
Shader Model 6.7 (Direct3D 12)
ShaderModel6_8
Shader Model 6.8 (Direct3D 12)
Trait Implementations§
Source§impl Clone for HlslShaderModel
impl Clone for HlslShaderModel
Source§fn clone(&self) -> HlslShaderModel
fn clone(&self) -> HlslShaderModel
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 HlslShaderModel
impl Debug for HlslShaderModel
Source§impl Default for HlslShaderModel
impl Default for HlslShaderModel
Source§fn default() -> HlslShaderModel
fn default() -> HlslShaderModel
Returns the “default value” for a type. Read more
Source§impl PartialEq for HlslShaderModel
impl PartialEq for HlslShaderModel
impl Copy for HlslShaderModel
impl Eq for HlslShaderModel
impl StructuralPartialEq for HlslShaderModel
Auto Trait Implementations§
impl Freeze for HlslShaderModel
impl RefUnwindSafe for HlslShaderModel
impl Send for HlslShaderModel
impl Sync for HlslShaderModel
impl Unpin for HlslShaderModel
impl UnwindSafe for HlslShaderModel
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: 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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more