Enum gfx::device::shade::ShaderModel [] [src]

pub enum ShaderModel {
    Unsupported,
    Version30,
    Version40,
    Version41,
    Version50,
}

Shader model supported by the device, corresponds to the HLSL shader models.

Variants

Unsupported
Version30
Version40
Version41
Version50

Methods

impl ShaderModel

fn to_number(&self) -> u8

Return the shader model as a numeric value.

Model30 turns to 30, etc.

Trait Implementations

Derived Implementations

impl Debug for ShaderModel

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialOrd for ShaderModel

fn partial_cmp(&self, __arg_0: &ShaderModel) -> Option<Ordering>

fn lt(&self, __arg_0: &ShaderModel) -> bool

fn le(&self, __arg_0: &ShaderModel) -> bool

fn gt(&self, __arg_0: &ShaderModel) -> bool

fn ge(&self, __arg_0: &ShaderModel) -> bool

impl PartialEq for ShaderModel

fn eq(&self, __arg_0: &ShaderModel) -> bool

fn ne(&self, __arg_0: &ShaderModel) -> bool

impl Clone for ShaderModel

fn clone(&self) -> ShaderModel

fn clone_from(&mut self, source: &Self)

impl Copy for ShaderModel