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 : VfxShaderFileInheritance
object ← ShaderDataBlock ← VfxShaderFile ← VfxShaderFileDXBC
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
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
Methods
GetDecompiledFile()
Decompiles the shader to source code.
public override string GetDecompiledFile()Returns
Remarks
DXBC decompilation is not supported. Showing hash for now is useful for finding shader from renderdoc.

