RenderEffectComponents

Description

abstract class Tinman.Engine.Rendering.Effects.RenderEffectComponents

Derived from

IRenderEffectComponents

Extended by

DirectXEffect_Components abstract

Abstract base class for IRenderEffectComponents.

This class provide common functionality, for example parsing of shader specification strings.

Protected / Constructors

Render​Effect​Components


protected constructor RenderEffectComponents → (1)

effect in : RenderEffect

[not-null]
The render effect.

Creates a new instance of RenderEffectComponents.

Protected / Methods

Shader​Buffer


protected abstract method ShaderBuffer → (1)

name in : string

See name of IRenderEffectComponents.Resource.

Declares a shader buffer resource.

RenderException

If a graphics subsystem error has occurred.

Shader​Constants


protected abstract method ShaderConstants → (1)

name in : string

See name of IRenderEffectComponents.Buffer.

The render effect is using a constant buffer of the given name.

RenderException

If a graphics subsystem error has occurred.

Shader​Pass


protected abstract method ShaderPass → (2)

pass in : int32

The render pass.

state in : RenderStatePreset

The render state preset.

Creates a render effect with the given render state preset.

RenderException

If a graphics subsystem error has occurred.

Shader​Resource


protected abstract method ShaderResource → (3)

name in : string

See name of IRenderEffectComponents.Resource resp. IRenderEffectComponents.Texture.

state in : SamplerStatePreset

The sampler state preset for automatic setup or SamplerStatePreset.None for manual setup.

sampler in : string

See sampler of IRenderEffectComponents.Texture. Will be null for manual state setup.

Declares a shader resource with automatic or manual state setup.

RenderException

If a graphics subsystem error has occurred.

Shader​Type


protected abstract method ShaderType → (1)

shader in : int32

The common shader type:
0 : Vertex Shader
1 : Tessellation Patch Shader
2 : Tessellation Vertex Shader
3 : Geometry Shader
4 : Pixel Shader
5 : Compute Shader

returns → int32

The specific shader type or -1 if not supported.

Translates the given common shader type to one of the specific shader types.

Shader​Vertex


protected abstract method ShaderVertex → (5)

name in : string

See name of IRenderEffectComponents.Vertex.

data in : int32

See data of IRenderEffectComponents.Vertex.

usage in : VertexElementUsage

See usage of IRenderEffectComponents.Vertex.

first in : int32

See first of IRenderEffectComponents.Vertex.

count in : int32

See count of IRenderEffectComponents.Vertex.

Declares an input vertex attribute.

RenderException

If a graphics subsystem error has occurred.

Protected / Attributes

Shader​Suffix


protected abstract attribute ShaderSuffix → (get)

value : string

[not-empty]
The file suffix.

The name suffix of shader files.