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.SourceType, 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 shaderFileId, VfxStaticComboData parent)Parameters
datareader BinaryReader
shaderFileId int
parent VfxStaticComboData
VfxShaderFileDXBC(BinaryReader, int, int, Guid, VfxStaticComboData)
Initializes a new instance with explicit size and hash.
public VfxShaderFileDXBC(BinaryReader datareader, int shaderFileId, int size, Guid hash, VfxStaticComboData parent)Parameters
datareader BinaryReader
shaderFileId int
size int
hash Guid
parent VfxStaticComboData
Properties
SourceType
Gets the shader source format name.
public override string SourceType { 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.

