Class VfxShaderFileGL
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
OpenGL GLSL shader file.
csharp
public class VfxShaderFileGL : VfxShaderFileInheritance
object ← ShaderDataBlock ← VfxShaderFile ← VfxShaderFileGL
Inherited Members
VfxShaderFile.ParentCombo, VfxShaderFile.BlockName, 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.
csharp
public VfxShaderFileGL(BinaryReader datareader, int sourceId, VfxStaticComboData parent)Parameters
datareader BinaryReader
sourceId int
parent VfxStaticComboData
Properties
Arg0
Gets the argument value.
csharp
public int Arg0 { get; }Property Value
BlockName
Gets the shader platform name.
csharp
public override string BlockName { get; }Property Value
BytecodeSize
Gets the shader source code size.
csharp
public int BytecodeSize { get; }Property Value
Methods
GetDecompiledFile()
Decompiles the shader to source code.
csharp
public override string GetDecompiledFile()Returns
Remarks
Returns the GLSL shader source code as a UTF-8 string.

