Class ShaderVariant

Namespace
Elegy.RenderBackend.Templating
Assembly
Elegy.RenderBackend.dll
public class ShaderVariant
Inheritance
ShaderVariant
Inherited Members

Constructors

ShaderVariant(MaterialTemplate, ShaderVariantEntry, ResourceLayout[], Shader, Shader, Pipeline, VariantVertexAttribute[], int[], int[], int[])

public ShaderVariant(MaterialTemplate parent, ShaderVariantEntry data, ResourceLayout[] layouts, Shader vertexShader, Shader pixelShader, Pipeline pipeline, VariantVertexAttribute[] attributes, int[] mappings, int[] perInstanceMappings, int[] globalMappings)

Parameters

parent MaterialTemplate
data ShaderVariantEntry
layouts ResourceLayout[]
vertexShader Shader
pixelShader Shader
pipeline Pipeline
attributes VariantVertexAttribute[]
mappings int[]
perInstanceMappings int[]
globalMappings int[]

Properties

Data

public ShaderVariantEntry Data { get; }

Property Value

ShaderVariantEntry

Layouts

public ResourceLayout[] Layouts { get; }

Property Value

ResourceLayout[]

Pipeline

public Pipeline Pipeline { get; }

Property Value

Pipeline

PixelShader

public Shader PixelShader { get; }

Property Value

Shader

ResourceMappingsGlobal

public int[] ResourceMappingsGlobal { get; }

Property Value

int[]

ResourceMappingsPerInstance

public int[] ResourceMappingsPerInstance { get; }

Property Value

int[]

ResourceMappingsPerMaterial

public int[] ResourceMappingsPerMaterial { get; }

Property Value

int[]

Template

public MaterialTemplate Template { get; }

Property Value

MaterialTemplate

VertexAttributes

public VariantVertexAttribute[] VertexAttributes { get; }

Property Value

VariantVertexAttribute[]

VertexShader

public Shader VertexShader { get; }

Property Value

Shader