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 ​
Name ​
csharp
public string Name { get; init; }Property Value ​
Offset ​
csharp
public int Offset { get; init; }Property Value ​
RowCount ​
csharp
public int RowCount { get; init; }Property Value ​
VectorSize ​
csharp
public int VectorSize { get; init; }
