Table of Contents

Class Constants

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
public static class Constants
Inheritance
Constants
Inherited Members

Fields

CanBindTextureStages

Stages that can bind textures

public const ShaderStage CanBindTextureStages = Vertex | Domain | Pixel | Compute

Field Value

ShaderStage

ComputeIdx

public const int ComputeIdx = 5

Field Value

int

DomainIdx

public const int DomainIdx = 2

Field Value

int

EmptyCore

public static readonly List<RenderCore> EmptyCore

Field Value

List<RenderCore>

EmptyCore2D

public static readonly IList<RenderCore2D> EmptyCore2D

Field Value

IList<RenderCore2D>

EmptyRenderable

public static readonly FastList<SceneNode> EmptyRenderable

Field Value

FastList<SceneNode>

EmptyRenderablePair

public static readonly FastList<KeyValuePair<int, SceneNode>> EmptyRenderablePair

Field Value

FastList<KeyValuePair<int, SceneNode>>

GeometryIdx

public const int GeometryIdx = 3

Field Value

int

HullIdx

public const int HullIdx = 1

Field Value

int

MaxLights

public const int MaxLights = 8

Field Value

int

NumShaderStages

Number of shader stages

public const int NumShaderStages = 6

Field Value

int

PixelIdx

public const int PixelIdx = 4

Field Value

int

Separators

public static readonly char[] Separators

Field Value

char[]

VertexIdx

public const int VertexIdx = 0

Field Value

int

Methods

GetNullShader(ShaderStage)

Gets the null shader.

public static ShaderBase? GetNullShader(ShaderStage stage)

Parameters

stage ShaderStage

The stage.

Returns

ShaderBase

ToIndex(ShaderStage)

Convert shader stage into 0~5 stage numbers

public static int ToIndex(this ShaderStage type)

Parameters

type ShaderStage

Returns

int

ToShaderStage(int)

To the shader stage.

public static ShaderStage ToShaderStage(this int index)

Parameters

index int

The index.

Returns

ShaderStage