Trait spirv_cross2::compile::CompilableTarget

source ·
pub trait CompilableTarget: Target {
    type Options: CompilerOptions;

    // Provided method
    fn options() -> Self::Options { ... }
}
Expand description

Marker trait for a compiler target that can have compiler outputs.

Required Associated Types§

source

type Options: CompilerOptions

The options that this target accepts.

Provided Methods§

source

fn options() -> Self::Options

Create a new instance of compiler options for this target.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl CompilableTarget for Cpp

Available on crate feature cpp only.
source§

impl CompilableTarget for Glsl

Available on crate feature glsl only.
source§

impl CompilableTarget for Hlsl

Available on crate feature hlsl only.
source§

impl CompilableTarget for Json

Available on crate feature json only.
source§

impl CompilableTarget for Msl

Available on crate feature msl only.