DirectXShaderInfo

Description

class Tinman.Engine.API.DirectXShaderInfo

Extended by

DirectX11ShaderInfo sealed
DirectX12ShaderInfo sealed

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

Public / Methods

Extract​Comment


[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.

Get​Resource​Binding


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.

Wrap​Comment


[Pure]
public static method WrapComment → (1)

content in : string

[not-null]
The content to wrap.

returns → string

The wrapped content.

Wraps the given content int single-line comments.

Public / Attributes

Constant​Buffers


public attribute ConstantBuffers → (get)

value : IVectorConst<DirectXConstantBufferInfo>

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

The constant buffer infos.

Resource​Bindings


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

Direct​XShader​Info


protected constructor DirectXShaderInfo → ()

Creates a new instance of DirectXShaderInfo.

Protected / Attributes

constant​Buffers


protected readonly attribute constantBuffers → (IVector<DirectXConstantBufferInfo>)

The constant buffer infos.

resource​Bindings


protected readonly attribute resourceBindings → (IVector<DirectXResourceBindingInfo>)

The resource binding infos.

structures


protected readonly attribute structures → (IVector<DirectXStructureInfo>)

The structure buffer infos.