[][src]Trait amethyst_rendy::pass::Base3DPassDef

pub trait Base3DPassDef: 'static + Debug + Send + Sync {
    type TextureSet: for<'a> StaticTextureSet<'a>;

    const NAME: &'static str;

    fn vertex_shader() -> &'static SpirvShader;
fn vertex_skinned_shader() -> &'static SpirvShader;
fn fragment_shader() -> &'static SpirvShader;
fn base_format() -> Vec<VertexFormat>;
fn skinned_format() -> Vec<VertexFormat>; }

Define drawing opaque 3d meshes with specified shaders and texture set

Associated Types

type TextureSet: for<'a> StaticTextureSet<'a>

The [mtl::StaticTextureSet] type implementation for this pass

Loading content...

Associated Constants

const NAME: &'static str

The human readable name of this pass

Loading content...

Required methods

fn vertex_shader() -> &'static SpirvShader

Returns the vertex SpirvShader which will be used for this pass

fn vertex_skinned_shader() -> &'static SpirvShader

Returns the vertex SpirvShader which will be used for this pass on skinned meshes

fn fragment_shader() -> &'static SpirvShader

Returns the fragment SpirvShader which will be used for this pass

fn base_format() -> Vec<VertexFormat>

Returns the VertexFormat of this pass

fn skinned_format() -> Vec<VertexFormat>

Returns the VertexFormat of this pass for skinned meshes

Loading content...

Implementors

impl Base3DPassDef for FlatPassDef[src]

impl Base3DPassDef for PbrPassDef[src]

impl Base3DPassDef for ShadedPassDef[src]

Loading content...