Class VfxShaderFileVulkan
- Namespace
- ValveResourceFormat.CompiledShader
- Assembly
- ValveResourceFormat.dll
Vulkan SPIR-V shader bytecode.
public class VfxShaderFileVulkan : VfxShaderFile
Inheritance
Inherited Members
Constructors
VfxShaderFileVulkan(BinaryReader, int, Guid, VfxStaticComboData)
Initializes a new instance from pre-hashed data.
public VfxShaderFileVulkan(BinaryReader datareader, int sourceId, Guid hash, VfxStaticComboData parent)
Parameters
datareader
BinaryReadersourceId
inthash
Guidparent
VfxStaticComboData
VfxShaderFileVulkan(BinaryReader, int, VfxStaticComboData, bool)
Initializes a new instance from a binary reader.
public VfxShaderFileVulkan(BinaryReader datareader, int sourceId, VfxStaticComboData parent, bool isMobile)
Parameters
datareader
BinaryReadersourceId
intparent
VfxStaticComboDataisMobile
bool
Properties
BlockName
Gets the shader platform name.
public override string BlockName { get; }
Property Value
BytecodeSize
Gets the size of the bytecode.
public int BytecodeSize { get; }
Property Value
Unknown1
public int Unknown1 { get; }
Property Value
Unknown10
public ulong Unknown10 { get; }
Property Value
Unknown11
public ulong Unknown11 { get; }
Property Value
Unknown12
public short Unknown12 { get; }
Property Value
Unknown13
public short Unknown13 { get; }
Property Value
Unknown14
public ulong Unknown14 { get; }
Property Value
Unknown15
public ulong Unknown15 { get; }
Property Value
Unknown16
public short Unknown16 { get; }
Property Value
Unknown17
public int[]? Unknown17 { get; }
Property Value
- int[]?
Unknown18
public short Unknown18 { get; }
Property Value
Unknown19
public ushort[]? Unknown19 { get; }
Property Value
- ushort[]?
Unknown2
public byte[]? Unknown2 { get; }
Property Value
- byte[]?
Unknown20
public int Unknown20 { get; }
Property Value
Unknown21
public int Unknown21 { get; }
Property Value
Unknown22
public int Unknown22 { get; }
Property Value
Unknown23
public short Unknown23 { get; }
Property Value
Unknown24
public byte[]? Unknown24 { get; }
Property Value
- byte[]?
Unknown25
public short Unknown25 { get; }
Property Value
Unknown26
public short Unknown26 { get; }
Property Value
Unknown27
public short Unknown27 { get; }
Property Value
Unknown28
public short Unknown28 { get; }
Property Value
Unknown29
public int[]? Unknown29 { get; }
Property Value
- int[]?
Unknown3
public short Unknown3 { get; }
Property Value
Unknown30
public uint Unknown30 { get; }
Property Value
Unknown31
public int[]? Unknown31 { get; }
Property Value
- int[]?
Unknown32
public short Unknown32 { get; }
Property Value
Unknown33
public byte Unknown33 { get; }
Property Value
Unknown34
public byte[]? Unknown34 { get; }
Property Value
- byte[]?
Unknown4
public short Unknown4 { get; }
Property Value
Unknown5
public short Unknown5 { get; }
Property Value
Unknown6
public ulong Unknown6 { get; }
Property Value
Unknown7
public short Unknown7 { get; }
Property Value
Unknown8
public ulong Unknown8 { get; }
Property Value
Unknown9
public ulong Unknown9 { get; }
Property Value
Version
Gets the shader file version.
public int Version { get; }
Property Value
Methods
GetDecompiledFile()
Decompiles the shader to source code.
public override string GetDecompiledFile()
Returns
Remarks
Decompiles SPIR-V bytecode to HLSL or GLSL using SPIRV-Cross reflection, attempting multiple backends until successful.