Enum DxcShaderModel
pub enum DxcShaderModel {
V6_0,
V6_1,
V6_2,
V6_3,
V6_4,
V6_5,
V6_6,
V6_7,
V6_8,
V6_9,
}Expand description
DXC shader model.
Variants§
Implementations§
§impl DxcShaderModel
impl DxcShaderModel
pub fn from_dxc_version(major: u32, minor: u32) -> DxcShaderModel
pub fn from_dxc_version(major: u32, minor: u32) -> DxcShaderModel
Get the shader model supported by a certain DXC version.
pub fn from_parts(major: u32, minor: u32) -> DxcShaderModel
pub fn from_parts(major: u32, minor: u32) -> DxcShaderModel
Parse a DxcShaderModel from its version components.
Trait Implementations§
§impl Clone for DxcShaderModel
impl Clone for DxcShaderModel
§fn clone(&self) -> DxcShaderModel
fn clone(&self) -> DxcShaderModel
Returns a duplicate 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 DxcShaderModel
impl Debug for DxcShaderModel
§impl PartialEq for DxcShaderModel
impl PartialEq for DxcShaderModel
impl Copy for DxcShaderModel
impl Eq for DxcShaderModel
impl StructuralPartialEq for DxcShaderModel
Auto Trait Implementations§
impl Freeze for DxcShaderModel
impl RefUnwindSafe for DxcShaderModel
impl Send for DxcShaderModel
impl Sync for DxcShaderModel
impl Unpin for DxcShaderModel
impl UnwindSafe for DxcShaderModel
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,
§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.§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
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