Enum shaderc::ShaderKind
source · [−]#[repr(C)]
pub enum ShaderKind {
Show 30 variants
Vertex,
Fragment,
Compute,
Geometry,
TessControl,
TessEvaluation,
InferFromSource,
DefaultVertex,
DefaultFragment,
DefaultCompute,
DefaultGeometry,
DefaultTessControl,
DefaultTessEvaluation,
SpirvAssembly,
RayGeneration,
AnyHit,
ClosestHit,
Miss,
Intersection,
Callable,
DefaultRayGeneration,
DefaultAnyHit,
DefaultClosestHit,
DefaultMiss,
DefaultIntersection,
DefaultCallable,
Task,
Mesh,
DefaultTask,
DefaultMesh,
}
Expand description
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
RayGeneration
AnyHit
ClosestHit
Miss
Intersection
Callable
DefaultRayGeneration
DefaultAnyHit
DefaultClosestHit
DefaultMiss
DefaultIntersection
DefaultCallable
Task
Mesh
DefaultTask
DefaultMesh
Trait Implementations
sourceimpl Clone for ShaderKind
impl Clone for ShaderKind
sourcefn clone(&self) -> ShaderKind
fn clone(&self) -> ShaderKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShaderKind
impl Debug for ShaderKind
sourceimpl PartialEq<ShaderKind> for ShaderKind
impl PartialEq<ShaderKind> for ShaderKind
impl Copy for ShaderKind
impl Eq for ShaderKind
impl StructuralEq for ShaderKind
impl StructuralPartialEq for ShaderKind
Auto Trait Implementations
impl RefUnwindSafe for ShaderKind
impl Send for ShaderKind
impl Sync for ShaderKind
impl Unpin for ShaderKind
impl UnwindSafe for ShaderKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more