Class ShaderLoader.ParsedShaderData
Namespace: ValveResourceFormat.Renderer.Shaders
Assembly: Renderer.dll
Preprocessed shader source with defines, uniforms, and compiled stage code.
csharp
public class ShaderLoader.ParsedShaderDataInheritance
object ← ShaderLoader.ParsedShaderData
Properties
Defines
Gets the map of define names to their default byte values extracted from the shader source.
csharp
public Dictionary<string, byte> Defines { get; }Property Value
RenderModes
Gets the set of render mode names declared in the shader source.
csharp
public HashSet<string> RenderModes { get; }Property Value
SourceFiles
Gets the ordered list of source file names included during preprocessing, used for error reporting.
csharp
public List<string> SourceFiles { get; }Property Value
Sources
Gets the preprocessed GLSL source text for each shader stage.
csharp
public Dictionary<ShaderProgramType, string> Sources { get; }Property Value
Dictionary<ShaderProgramType, string>
SrgbUniforms
Gets the set of uniform names annotated with // SrgbRead(true).
csharp
public HashSet<string> SrgbUniforms { get; }Property Value
Uniforms
Gets the set of sampler and vector uniform names declared in the shader source.
csharp
public HashSet<string> Uniforms { get; }
