Class VfxShaderFileDXIL
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
DirectX Intermediate Language (DXIL) shader file.
public class VfxShaderFileDXIL : VfxShaderFileInheritance
object ← ShaderDataBlock ← VfxShaderFile ← VfxShaderFileDXIL
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
VfxShaderFileDXIL(BinaryReader, int, VfxStaticComboData)
Initializes a new instance from a binary reader.
public VfxShaderFileDXIL(BinaryReader datareader, int shaderFileId, VfxStaticComboData parent)Parameters
datareader BinaryReader
shaderFileId int
parent VfxStaticComboData
Properties
HeaderBytes
Gets the size of the constant table comment block in bytes.
public int HeaderBytes { get; }Property Value
int
ShaderTypeToken
Gets the shader type token: 0xFFFF for pixel shaders, 0xFFFE for vertex shaders.
public int ShaderTypeToken { get; }Property Value
int
SourceType
Gets the shader source format name.
public override string SourceType { get; }Property Value
string
Version
Gets the shader version, packed as major << 8 | minor.
public int Version { get; }Property Value
int
Methods
GetDecompiledFile()
Decompiles the shader to source code.
public override string GetDecompiledFile()Returns
string
Remarks
DXIL decompilation is not supported, so only the shader hash is shown.

