DirectXConstantBufferElementInfo

Description

sealed class Tinman.Engine.API.DirectXConstantBufferElementInfo

Represents shader metadata of an element in a constant buffer.

Public / Constructors

Direct​XConstant​Buffer​Element​Info


public constructor DirectXConstantBufferElementInfo → (6)

type in : string

[not-empty]
See Type.

rowMajor in : bool

See RowMajor.

name in : string

[not-empty]
See Name.

count in : int32

[>=0]
See Count.

offset in : int32

[>=0]
See Offset.

size in : int32

[>0]
See Size.

Creates a new instance of DirectXConstantBufferElementInfo.

Public / Methods

Is


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 constant buffer element of the given type?

Public / Attributes

Count


public readonly attribute Count → (int32)

The number of array elements or 0 iff the buffer element is not an array.

Name


public readonly attribute Name → (string)

The buffer element name.

Offset


public readonly attribute Offset → (int32)

The byte offset of the buffer element in its constant buffer.

Row​Major


public readonly attribute RowMajor → (bool)

Row-major matrix layout?

Size


public readonly attribute Size → (int32)

The byte size of the buffer element in its constant buffer.

Type


public readonly attribute Type → (string)

The data type of the buffer element.