Enum shaderc::ShaderKind [−][src]
#[repr(C)]pub enum ShaderKind { Vertex, Fragment, Compute, Geometry, TessControl, TessEvaluation, InferFromSource, DefaultVertex, DefaultFragment, DefaultCompute, DefaultGeometry, DefaultTessControl, DefaultTessEvaluation, SpirvAssembly, }
Shader kind.
- The
<stage>
enumerants are forced shader kinds, which force the compiler to compile the source code as the specified kind of shader, regardless of#pragma
directives in the source code. - The
Default<stage>
enumerants are default shader kinds, which allow the compiler to fall back to compile the source code as the specified kind of shader when#pragma
is not found in the source code.
Variants
Vertex
Fragment
Compute
Geometry
TessControl
TessEvaluation
InferFromSource
Deduce the shader kind from #pragma
directives in the source code.
Compiler will emit error if #pragma
annotation is not found.
DefaultVertex
DefaultFragment
DefaultCompute
DefaultGeometry
DefaultTessControl
DefaultTessEvaluation
SpirvAssembly
Trait Implementations
impl Clone for ShaderKind
[src]
impl Clone for ShaderKind
fn clone(&self) -> ShaderKind
[src]
fn clone(&self) -> ShaderKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ShaderKind
[src]
impl Copy for ShaderKind
impl Debug for ShaderKind
[src]
impl Debug for ShaderKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ShaderKind
[src]
impl PartialEq for ShaderKind
fn eq(&self, other: &ShaderKind) -> bool
[src]
fn eq(&self, other: &ShaderKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for ShaderKind
[src]
impl Eq for ShaderKind
Auto Trait Implementations
impl Send for ShaderKind
impl Send for ShaderKind
impl Sync for ShaderKind
impl Sync for ShaderKind