DirectXShaderInfo

Description

class Tinman.AddOns.API.DirectXShaderInfo

Extended by

DirectX11ShaderInfo sealed
DirectX12ShaderInfo sealed

Full source code is included in the Tinman 3D SDK download.

Represents the shader metadata that the HLSL compiler writes into the Assembler Output / *.asm files.

Public / Methods

ExtractComment


[Pure]
public static method ExtractComment → (2)

assemblerOutput in : string

[not-null]
The HLSL assembly output.

prefix in : string

[not-empty]
The extracted text, always ending with an empty line of text.

returns → string

The extracted comment block text.

Extracts the leading comment block from the given HLSL assembly output.

All leading text lines that start with the given prefix in are extracted from assemblerOutput in. Then, the prefix is removed from each text line; consecutive runs of empty text lines are collapsed into a single line of text.

GetResourceBinding


public method GetResourceBinding → (1)

name in : string

[not-null]
The resource name.

returns → DirectXResourceBindingInfo

The resource binding info object or null if not found.

Returns the resource binding info for the given name.

Public / Attributes

ConstantBuffers


public attribute ConstantBuffers → (get)

value : IVectorConst<DirectXConstantBufferInfo>

[not-null]
List of constant buffer info objects.

The constant buffer infos.

ResourceBindings


public attribute ResourceBindings → (get)

value : IVectorConst<DirectXResourceBindingInfo>

[not-null]
List of resource binding info objects.

The resource binding infos.

Structures


public attribute Structures → (get)

value : IVectorConst<DirectXStructureInfo>

[not-null]
List of structure info objects.

The structure infos.

Protected / Constructors

DirectXShaderInfo


protected constructor DirectXShaderInfo → ()

Creates a new instance of DirectXShaderInfo.

Protected / Attributes

constantBuffers


protected readonly attribute constantBuffers → (IVector<DirectXConstantBufferInfo>)

The constant buffer infos.

resourceBindings


protected readonly attribute resourceBindings → (IVector<DirectXResourceBindingInfo>)

The resource binding infos.

structures


protected readonly attribute structures → (IVector<DirectXStructureInfo>)

The structure buffer infos.