Struct SPIRFunction

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Struct Documentation

struct SPIRFunction : public SPIRV_CROSS_NAMESPACE::IVariant

Public Types

enum [anonymous]

Values:

enumerator type

Public Functions

inline SPIRFunction(TypeID return_type_, TypeID function_type_)
inline void add_local_variable(VariableID id)
inline void add_parameter(TypeID parameter_type, ID id, bool alias_global_variable = false)

Public Members

TypeID return_type
TypeID function_type
SmallVector<Parameter> arguments
SmallVector<Parameter> shadow_arguments
SmallVector<VariableID> local_variables
BlockID entry_block = 0
SmallVector<BlockID> blocks
SmallVector<CombinedImageSamplerParameter> combined_parameters
EntryLine entry_line
Vector<std::function<void()>> fixup_hooks_out
Vector<std::function<void()>> fixup_hooks_in
SmallVector<ID> constant_arrays_needed_on_stack
bool active = false
bool flush_undeclared = true
bool do_combined_parameters = true
struct CombinedImageSamplerParameter

Public Members

VariableID id
VariableID image_id
VariableID sampler_id
bool global_image
bool global_sampler
bool depth
struct EntryLine

Public Members

uint32_t file_id = 0
uint32_t line_literal = 0
struct Parameter

Public Members

TypeID type
ID id
uint32_t read_count
uint32_t write_count
bool alias_global_variable