Struct ConstantBufferDescription.ConstantBufferVariable ​
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Represents a variable within a constant buffer. The offset is in 4-byte scalars, vector size is the component count, row count is greater than one for matrices, and element count for arrays.
csharp
public readonly record struct ConstantBufferDescription.ConstantBufferVariable : IEquatable<ConstantBufferDescription.ConstantBufferVariable>Implements ​
IEquatable<ConstantBufferDescription.ConstantBufferVariable>
Constructors ​
ConstantBufferVariable(string, int, int, int, int) ​
Represents a variable within a constant buffer. The offset is in 4-byte scalars, vector size is the component count, row count is greater than one for matrices, and element count for arrays.
csharp
public ConstantBufferVariable(string Name, int Offset, int VectorSize, int RowCount, int ElementCount)Parameters ​
Name string
Offset int
VectorSize int
RowCount int
ElementCount int
Properties ​
ElementCount ​
csharp
public int ElementCount { get; init; }Property Value ​
int
Name ​
csharp
public string Name { get; init; }Property Value ​
string
Offset ​
csharp
public int Offset { get; init; }Property Value ​
int
RowCount ​
csharp
public int RowCount { get; init; }Property Value ​
int
VectorSize ​
csharp
public int VectorSize { get; init; }Property Value ​
int

