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

Deduce the shader kind from #pragma directives in the source code.

Compiler will emit error if #pragma annotation is not found.

Trait Implementations

impl Clone for ShaderKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ShaderKind
[src]

impl Debug for ShaderKind
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ShaderKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ShaderKind
[src]

Auto Trait Implementations

impl Send for ShaderKind

impl Sync for ShaderKind