DirectXResourceBindingInfo

Description

sealed class Tinman.Engine.API.DirectXResourceBindingInfo

Represents the shader metadata that the HLSL compiler writes into the Resource Bindings: section of Assembler Output / *.asm files.

Public / Constants

Bind​Buffer


public constant BindBuffer → (0:int32)

A binding code for a constant buffer (e.g. 'cb0').

Bind​Sampler


public constant BindSampler → (1:int32)

A binding code for a sampler state (e.g. 's0').

Bind​Texture


public constant BindTexture → (2:int32)

A binding code for a shader resource (e.g. 't0').

Bind​Unordered


public constant BindUnordered → (3:int32)

A binding code for an unordered access view (e.g. 'u0').

Public / Constructors

Direct​XResource​Binding​Info


public constructor DirectXResourceBindingInfo → (5)

type in : string

[not-empty]
See Type.

name in : string

[not-empty]
See Name.

count in : int32

[>0]
See Count.

bindType in : int32

[0..3]
See BindType.

bindIndex in : int32

[>=0]
See BindIndex.

Creates a new instance of DirectXResourceBindingInfo.

Public / Methods

Is


[Pure]
public method Is → (1)

type in : RenderEffectParameterType

The render effect parameter type to query for.

returns → bool

true if Type represents type in, false if not.

Is this resource of the given type?

Public / Attributes

Bind


public attribute Bind → (get)

value : string

[not-null]
The binding.

The binding, composed of type and index.

Bind​Index


public readonly attribute BindIndex → (int32)

Index of resource binding slot.

Count


public readonly attribute Count → (int32)

Number of consecutive resource bindings, starting at BindIndex.

Declared​Shader​Resource


public attribute DeclaredShaderResource → (int32)

The declared shader resource or -1 if none.

Declared​Unordered​Access​Resource


public attribute DeclaredUnorderedAccessResource → (int32)

The declared unordered access resource or -1 if none.

Is​Array


public attribute IsArray → (get)

value : bool

true if Type represents a an array type, false if not.

Is this resource an array type?

Name


public readonly attribute Name → (string)

The resource name.

Type


public readonly attribute Type → (string)

The resource type (type + format + dim).