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]
fn clone(&self) -> ShaderKind
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ShaderKind
[src]
impl Debug for ShaderKind
[src]
impl PartialEq for ShaderKind
[src]
fn eq(&self, __arg_0: &ShaderKind) -> bool
[src]
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]
This method tests for !=
.