Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon
Template forward iterator for SPIR-V instructions.
| Name | TSpirvForwardIterator |
| Type | class |
| Header File | /Engine/Source/Developer/ShaderCompilerCommon/Public/SpirvCommon.h |
| Include Path | #include "SpirvCommon.h" |
Syntax
template<typename T>
class TSpirvForwardIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Initializes the iterator with a null pointer. | SpirvCommon.h | ||
TSpirvForwardIterator
(
const TSpirvForwardIterator& Other |
SpirvCommon.h | ||
TSpirvForwardIterator
(
T* InPtr, |
Initializes the iterator with the specified pointer. | SpirvCommon.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Ptr | T * | SpirvCommon.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SpvOp Opcode() |
Returns the opcode of the current instruction. | SpirvCommon.h | |
uint32 Operand
(
int32 WordOffset |
Dereferences the value the current operand points to. | SpirvCommon.h | |
TDst OperandAs
(
int32 WordOffset |
Returns the operand as the specified reinterpreted type. | SpirvCommon.h | |
const ANSICHAR * OperandAsString
(
int32 WordOffset |
Returns the operand pointer as ANSI C string. | SpirvCommon.h | |
uint32 WordCount () |
Returns the word count of the current instruction. | SpirvCommon.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TSpirvForwardIterator& Other |
Returns whether this iterator does not point to the same address as the other iterator. | SpirvCommon.h | |
T * operator*() |
Returns a pointer to the beginning of the SPIR-V instruction this iterator currently points to. | SpirvCommon.h | |
TSpirvForwardIterator & operator++() |
Increments the iterator to point to the next SPIR-V instruction. | SpirvCommon.h | |
TSpirvForwardIterator operator++
(
int |
Increments the iterator to point to the next SPIR-V instruction and returns the previous iterator state. | SpirvCommon.h | |
TSpirvForwardIterator & operator=
(
const TSpirvForwardIterator& Other |
SpirvCommon.h | ||
bool operator==
(
const TSpirvForwardIterator& Other |
Returns whether this iterator points to the same address as the other iterator. | SpirvCommon.h |