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
byteCodebyte[]The byte code.
elementsInputElement[]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
byteCodeNamestringThe byte code name.
elementsInputElement[]The elements.
byteCodeReaderIShaderByteCodeReader
Fields
EmptyInputLayout
The empty input layout
public static readonly InputLayoutDescription EmptyInputLayout
Field Value
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; }