Module rspirv::grammar::reflect [] [src]

Refect functions for SPIR-V instructions.

Functions

is_annotation

Returns true if the given opcode is for an annotation instruction.

is_constant

Returns true if the given opcode is for a constant-defining instruction.

is_debug

Returns true if the given opcode is for a debug instruction.

is_location_debug

Returns true if the given opcode is for a location debug instruction.

is_nonlocation_debug

Returns true if the given opcode is for a non-location debug instruction.

is_terminator

Returns true if the given opcode is for a terminator instruction.

is_type

Returns true if the given opcode is for a type-declaring instruction.

is_variable

Returns true if the given opcode is for a variable-defining instruction.