Class VfxShaderFileGL
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
OpenGL GLSL shader file.
public class VfxShaderFileGL : VfxShaderFileInheritance
object ← ShaderDataBlock ← VfxShaderFile ← VfxShaderFileGL
Inherited Members
VfxShaderFile.ParentCombo, VfxShaderFile.SourceType, VfxShaderFile.ShaderFileId, VfxShaderFile.Size, VfxShaderFile.Bytecode, VfxShaderFile.HashMD5, VfxShaderFile.GetDecompiledFile(), VfxShaderFile.IsEmpty(), ShaderDataBlock.Start, ShaderDataBlock.ReadStringWithMaxLength(BinaryReader, int)
Constructors
VfxShaderFileGL(BinaryReader, int, VfxStaticComboData)
Initializes a new instance from a binary reader.
public VfxShaderFileGL(BinaryReader datareader, int shaderFileId, VfxStaticComboData parent)Parameters
datareader BinaryReader
shaderFileId int
parent VfxStaticComboData
Properties
BytecodeSize
Gets the size of the GLSL source text including its null terminator; holds one byte less.
public int BytecodeSize { get; }Property Value
SourceType
Gets the shader source format name.
public override string SourceType { get; }Property Value
Version
Gets the shader file version. It is 2 for PCGL and 3 for MOBILE_GLES.
public int Version { get; }Property Value
Methods
GetDecompiledFile()
Decompiles the shader to source code.
public override string GetDecompiledFile()Returns
Remarks
Returns the GLSL shader source code as a UTF-8 string.

