Table of Contents

Class InputLayoutDescription

Namespace
HelixToolkit.SharpDX.Shaders
Assembly
HelixToolkit.SharpDX.dll
[DataContract]
public sealed class InputLayoutDescription
Inheritance
InputLayoutDescription
Inherited Members

Constructors

InputLayoutDescription()

Initializes a new instance of the InputLayoutDescription class.

public InputLayoutDescription()

InputLayoutDescription(byte[], InputElement[])

Initializes a new instance of the InputLayoutDescription class.

public InputLayoutDescription(byte[] byteCode, InputElement[] elements)

Parameters

byteCode byte[]

The byte code.

elements InputElement[]

The elements.

InputLayoutDescription(string, InputElement[], IShaderByteCodeReader?)

Initializes a new instance of the InputLayoutDescription class. Pass custom IShaderByteCodeReader to read external shader bytecodes.

public InputLayoutDescription(string byteCodeName, InputElement[] elements, IShaderByteCodeReader? byteCodeReader = null)

Parameters

byteCodeName string

The byte code name.

elements InputElement[]

The elements.

byteCodeReader IShaderByteCodeReader

Fields

EmptyInputLayout

The empty input layout

public static readonly InputLayoutDescription EmptyInputLayout

Field Value

InputLayoutDescription

Properties

Description

public KeyValuePair<byte[]?, InputElement[]> Description { get; }

Property Value

KeyValuePair<byte[], InputElement[]>

InputElements

Gets or sets the input elements.

[DataMember]
public InputElement[] InputElements { get; set; }

Property Value

InputElement[]

The input elements.

ShaderByteCode

Gets or sets the shader byte code.

[DataMember]
public byte[]? ShaderByteCode { get; set; }

Property Value

byte[]

The shader byte code.

ShaderByteCodeName

[IgnoreDataMember]
public string ShaderByteCodeName { get; }

Property Value

string