|
RetroArch
|
#include "spirv_glsl.hpp"#include "GLSL.std.450.h"#include "spirv_common.hpp"#include <algorithm>#include <assert.h>#include <cmath>#include <utility>Macros | |
| #define | GLSL_BOP(opname, x) |
| #define | GLSL_UOP(opname, x) |
| #define | GLSL_GROUP_OP(op, glsl_op) |
| #define | GLSL_BOP(op) emit_binary_op(ops[0], ops[1], ops[2], ops[3], #op) |
| #define | GLSL_BOP_CAST(op, type) emit_binary_op_cast(ops[0], ops[1], ops[2], ops[3], #op, type, glsl_opcode_is_sign_invariant(opcode)) |
| #define | GLSL_UOP(op) emit_unary_op(ops[0], ops[1], ops[2], #op) |
| #define | GLSL_QFOP(op) emit_quaternary_func_op(ops[0], ops[1], ops[2], ops[3], ops[4], ops[5], #op) |
| #define | GLSL_TFOP(op) emit_trinary_func_op(ops[0], ops[1], ops[2], ops[3], ops[4], #op) |
| #define | GLSL_BFOP(op) emit_binary_func_op(ops[0], ops[1], ops[2], ops[3], #op) |
| #define | GLSL_BFOP_CAST(op, type) emit_binary_func_op_cast(ops[0], ops[1], ops[2], ops[3], #op, type, glsl_opcode_is_sign_invariant(opcode)) |
| #define | GLSL_BFOP(op) emit_binary_func_op(ops[0], ops[1], ops[2], ops[3], #op) |
| #define | GLSL_UFOP(op) emit_unary_func_op(ops[0], ops[1], ops[2], #op) |
Functions | |
| static bool | is_unsigned_opcode (Op op) |
| static bool | is_unsigned_glsl_opcode (GLSLstd450 op) |
| static bool | packing_is_vec4_padded (BufferPackingStandard packing) |
| static bool | packing_is_hlsl (BufferPackingStandard packing) |
| static bool | packing_has_flexible_offset (BufferPackingStandard packing) |
| static BufferPackingStandard | packing_to_substruct_packing (BufferPackingStandard packing) |
| static bool | glsl_opcode_is_sign_invariant (Op opcode) |
| static const char * | to_pls_layout (PlsFormat format) |
| static SPIRType::BaseType | pls_format_to_basetype (PlsFormat format) |
| static uint32_t | pls_format_to_components (PlsFormat format) |
| static const char * | vector_swizzle (int vecsize, int index) |
| #define GLSL_BFOP_CAST | ( | op, | |
| type | |||
| ) | emit_binary_func_op_cast(ops[0], ops[1], ops[2], ops[3], #op, type, glsl_opcode_is_sign_invariant(opcode)) |
| #define GLSL_BOP | ( | opname, | |
| x | |||
| ) |
| #define GLSL_BOP_CAST | ( | op, | |
| type | |||
| ) | emit_binary_op_cast(ops[0], ops[1], ops[2], ops[3], #op, type, glsl_opcode_is_sign_invariant(opcode)) |
| #define GLSL_GROUP_OP | ( | op, | |
| glsl_op | |||
| ) |
| #define GLSL_QFOP | ( | op | ) | emit_quaternary_func_op(ops[0], ops[1], ops[2], ops[3], ops[4], ops[5], #op) |
| #define GLSL_UOP | ( | opname, | |
| x | |||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.15