FSpirv

Base structure for SPIR-V modules in the shader backends.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

/Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvCommon.h

Include

#include "SpirvCommon.h"

Syntax

struct FSpirv

Remarks

Base structure for SPIR-V modules in the shader backends.

Variables

Name Description

Public variable

TArray< uint32 ...

 

Data

Functions

Name Description

Public function Const

FSpirvConstI...

 

begin()

Returns a constant iterator to the first instruction in this SPIR-V module.

Public function

FSpirvIterat...

 

begin()

Returns an iterator to the first instruction in this SPIR-V module.

Public function Const

FSpirvConstI...

 

cbegin()

Returns a constant iterator to the first instruction in this SPIR-V module.

Public function Const

FSpirvConstI...

 

cend()

Returns a constant iterator to the end of this SPIR-V module.

Public function Const

FSpirvConstI...

 

end()

Returns a constant iterator to the end of this SPIR-V module.

Public function

FSpirvIterat...

 

end()

Returns an iterator to the end of this SPIR-V module.

Public function

int8 *

 

GetByteData()

Returns a byte pointer to the SPIR-V data.

Public function Const

const int8 &...

 

GetByteData()

Returns a byte pointer to the SPIR-V data.

Public function Const

int32

 

GetByteSize()

Returns the size of this SPIR-V module in bytes.

Public function Const

uint32

 

GetWordOffset

(
    const FSpirvConstIterator& Iter,
    uint32 OperandWordOffset
)

Returns the word offset to the instruction the specified iterator points to plus additional operand word offset.