Table of Contents

Class VfxShaderFileDXBC

Namespace
ValveResourceFormat.CompiledShader
Assembly
ValveResourceFormat.dll

DirectX Bytecode (DXBC) shader file. The DXBC sources only have one header, the offset (which happens to be equal to their source size).

public class VfxShaderFileDXBC : VfxShaderFile

Inheritance

Inherited Members

Constructors

VfxShaderFileDXBC(BinaryReader, int, VfxStaticComboData)

Initializes a new instance from a binary reader.

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

Parameters

datareader BinaryReader
sourceId int
parent VfxStaticComboData

VfxShaderFileDXBC(BinaryReader, int, int, Guid, VfxStaticComboData)

Initializes a new instance with explicit size and hash.

public VfxShaderFileDXBC(BinaryReader datareader, int sourceId, int size, Guid hash, VfxStaticComboData parent)

Parameters

datareader BinaryReader
sourceId int
size int
hash Guid
parent VfxStaticComboData

Properties

BlockName

Gets the shader platform name.

public override string BlockName { get; }

Property Value

string

Methods

GetDecompiledFile()

Decompiles the shader to source code.

public override string GetDecompiledFile()

Returns

string

Remarks

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