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