Table of Contents

Class VfxShaderFileDXIL

Namespace
ValveResourceFormat.CompiledShader
Assembly
ValveResourceFormat.dll

DirectX Intermediate Language (DXIL) shader file.

public class VfxShaderFileDXIL : VfxShaderFile

Inheritance

Inherited Members

Constructors

VfxShaderFileDXIL(BinaryReader, int, VfxStaticComboData)

Initializes a new instance from a binary reader.

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

Parameters

datareader BinaryReader
sourceId int
parent VfxStaticComboData

Properties

Arg0

Gets the first argument (always 3).

public int Arg0 { get; }

Property Value

int

Arg1

Gets the second argument (always 0xFFFF or 0xFFFE).

public int Arg1 { get; }

Property Value

int

BlockName

Gets the shader platform name.

public override string BlockName { get; }

Property Value

string

HeaderBytes

Gets the header size in bytes.

public int HeaderBytes { get; }

Property Value

int

Methods

GetDecompiledFile()

Decompiles the shader to source code.

public override string GetDecompiledFile()

Returns

string

Remarks

DXIL decompilation is not supported. This method always throws an InvalidOperationException.