Table of Contents

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 BinaryReader
sourceId int
hash Guid
parent 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 BinaryReader
sourceId int
parent VfxStaticComboData
isMobile bool

Properties

BlockName

Gets the shader platform name.

public override string BlockName { get; }

Property Value

string

BytecodeSize

Gets the size of the bytecode.

public int BytecodeSize { get; }

Property Value

int

Unknown1

public int Unknown1 { get; }

Property Value

int

Unknown10

public ulong Unknown10 { get; }

Property Value

ulong

Unknown11

public ulong Unknown11 { get; }

Property Value

ulong

Unknown12

public short Unknown12 { get; }

Property Value

short

Unknown13

public short Unknown13 { get; }

Property Value

short

Unknown14

public ulong Unknown14 { get; }

Property Value

ulong

Unknown15

public ulong Unknown15 { get; }

Property Value

ulong

Unknown16

public short Unknown16 { get; }

Property Value

short

Unknown17

public int[]? Unknown17 { get; }

Property Value

int[]?

Unknown18

public short Unknown18 { get; }

Property Value

short

Unknown19

public ushort[]? Unknown19 { get; }

Property Value

ushort[]?

Unknown2

public byte[]? Unknown2 { get; }

Property Value

byte[]?

Unknown20

public int Unknown20 { get; }

Property Value

int

Unknown21

public int Unknown21 { get; }

Property Value

int

Unknown22

public int Unknown22 { get; }

Property Value

int

Unknown23

public short Unknown23 { get; }

Property Value

short

Unknown24

public byte[]? Unknown24 { get; }

Property Value

byte[]?

Unknown25

public short Unknown25 { get; }

Property Value

short

Unknown26

public short Unknown26 { get; }

Property Value

short

Unknown27

public short Unknown27 { get; }

Property Value

short

Unknown28

public short Unknown28 { get; }

Property Value

short

Unknown29

public int[]? Unknown29 { get; }

Property Value

int[]?

Unknown3

public short Unknown3 { get; }

Property Value

short

Unknown30

public uint Unknown30 { get; }

Property Value

uint

Unknown31

public int[]? Unknown31 { get; }

Property Value

int[]?

Unknown32

public short Unknown32 { get; }

Property Value

short

Unknown33

public byte Unknown33 { get; }

Property Value

byte

Unknown34

public byte[]? Unknown34 { get; }

Property Value

byte[]?

Unknown4

public short Unknown4 { get; }

Property Value

short

Unknown5

public short Unknown5 { get; }

Property Value

short

Unknown6

public ulong Unknown6 { get; }

Property Value

ulong

Unknown7

public short Unknown7 { get; }

Property Value

short

Unknown8

public ulong Unknown8 { get; }

Property Value

ulong

Unknown9

public ulong Unknown9 { get; }

Property Value

ulong

Version

Gets the shader file version.

public int Version { get; }

Property Value

int

Methods

GetDecompiledFile()

Decompiles the shader to source code.

public override string GetDecompiledFile()

Returns

string

Remarks

Decompiles SPIR-V bytecode to HLSL or GLSL using SPIRV-Cross reflection, attempting multiple backends until successful.