Table of Contents

Class VfxShaderFileGL

Namespace
ValveResourceFormat.CompiledShader
Assembly
ValveResourceFormat.dll

OpenGL GLSL shader file.

public class VfxShaderFileGL : VfxShaderFile

Inheritance

Inherited Members

Constructors

VfxShaderFileGL(BinaryReader, int, VfxStaticComboData)

Initializes a new instance from a binary reader.

public VfxShaderFileGL(BinaryReader datareader, int sourceId, VfxStaticComboData parent)

Parameters

datareader BinaryReader
sourceId int
parent VfxStaticComboData

Properties

Arg0

Gets the argument value.

public int Arg0 { get; }

Property Value

int

BlockName

Gets the shader platform name.

public override string BlockName { get; }

Property Value

string

BytecodeSize

Gets the shader source code size.

public int BytecodeSize { get; }

Property Value

int

Methods

GetDecompiledFile()

Decompiles the shader to source code.

public override string GetDecompiledFile()

Returns

string

Remarks

Returns the GLSL shader source code as a UTF-8 string.