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
BinaryReadersourceId
intparent
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
BinaryReadersourceId
intsize
inthash
Guidparent
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. This method always throws an InvalidOperationException.