Struct GlobalsMember ​
Namespace: ValveResourceFormat.Renderer.Shaders
Assembly: Renderer.dll
A single uniform packed into the globals constant buffer.
csharp
public readonly record struct GlobalsMember : IEquatable<GlobalsMember>Implements ​
Constructors ​
GlobalsMember(string, GlobalsType, int) ​
A single uniform packed into the globals constant buffer.
csharp
public GlobalsMember(string Name, GlobalsType Type, int Offset)Parameters ​
Name string
The uniform name as declared in the shader source.
Type GlobalsType
The declared GLSL type.
Offset int
The byte offset of this member within the constant buffer.
Properties ​
ComponentCount ​
Gets the number of scalar components, 16 for .
csharp
public int ComponentCount { get; }Property Value ​
IsFloat ​
Gets a value indicating whether the components are floats rather than integers.
csharp
public bool IsFloat { get; }Property Value ​
Name ​
The uniform name as declared in the shader source.
csharp
public string Name { get; init; }Property Value ​
Offset ​
The byte offset of this member within the constant buffer.
csharp
public int Offset { get; init; }Property Value ​
Size ​
Gets the size of this member in bytes.
csharp
public int Size { get; }Property Value ​
Type ​
The declared GLSL type.
csharp
public GlobalsType Type { get; init; }
