Struct GlobalsDeclaration ​
Namespace: ValveResourceFormat.Renderer.Shaders
Assembly: Renderer.dll
A packable uniform declaration extracted from shader source.
csharp
public readonly record struct GlobalsDeclaration : IEquatable<GlobalsDeclaration>Implements ​
IEquatable<GlobalsDeclaration>
Constructors ​
GlobalsDeclaration(string, GlobalsType, string?, bool) ​
A packable uniform declaration extracted from shader source.
csharp
public GlobalsDeclaration(string Name, GlobalsType Type, string? Initializer, bool SrgbRead)Parameters ​
Name string
The uniform name.
Type GlobalsType
The declared GLSL type.
Initializer string?
The default value expression, or null when the declaration has none.
SrgbRead bool
Whether the declaration is annotated with // SrgbRead(true).
Properties ​
Initializer ​
The default value expression, or null when the declaration has none.
csharp
public string? Initializer { get; init; }Property Value ​
Name ​
The uniform name.
csharp
public string Name { get; init; }Property Value ​
SrgbRead ​
Whether the declaration is annotated with // SrgbRead(true).
csharp
public bool SrgbRead { get; init; }Property Value ​
Type ​
The declared GLSL type.
csharp
public GlobalsType Type { get; init; }
