Home
last modified time | relevance | path

Searched refs:SPIRConstant (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/third_party/externals/spirv-cross/
Dspirv_parser.cpp562 auto *c = maybe_get<SPIRConstant>(cid); in parse()
794 set<SPIRConstant>(id, ops[0], ops[2] | (uint64_t(ops[3]) << 32), op == OpSpecConstant); in parse()
796 set<SPIRConstant>(id, ops[0], ops[2], op == OpSpecConstant); in parse()
804 set<SPIRConstant>(id, ops[0], uint32_t(0), op == OpSpecConstantFalse); in parse()
812 set<SPIRConstant>(id, ops[0], uint32_t(1), op == OpSpecConstantTrue); in parse()
837 set<SPIRConstant>(id, type, ops + 2, length - 2, op == OpSpecConstantComposite); in parse()
845 SPIRConstant remapped_constant_ops[4]; in parse()
846 const SPIRConstant *c[4]; in parse()
873 c[i] = &get<SPIRConstant>(ops[2 + i]); in parse()
875 set<SPIRConstant>(id, type, c, elements, op == OpSpecConstantComposite); in parse()
Dspirv_common.hpp1076 struct SPIRConstant : IVariant struct
1270 explicit SPIRConstant(uint32_t constant_type_) in SPIRConstant() argument
1275 SPIRConstant() = default;
1277SPIRConstant(TypeID constant_type_, const uint32_t *elements, uint32_t num_elements, bool speciali… in SPIRConstant() argument
1288 SPIRConstant(TypeID constant_type_, uint32_t v0, bool specialized) in SPIRConstant() argument
1298 SPIRConstant(TypeID constant_type_, uint64_t v0, bool specialized) in SPIRConstant() function
1308SPIRConstant(TypeID constant_type_, const SPIRConstant *const *vector_elements, uint32_t num_eleme… in SPIRConstant() argument
1360 SPIRV_CROSS_DECLARE_CLONE(SPIRConstant)
Dspirv_cross_parsed_ir.cpp41 pool_group->pools[TypeConstant].reset(new ObjectPool<SPIRConstant>); in ParsedIR()
514 get<SPIRConstant>(id).is_used_as_array_length = true; in mark_used_as_array_length()
1019 auto &constant = variant_set<SPIRConstant>(ids[id], type); in make_constant_null()
1038 …variant_set<SPIRConstant>(ids[id], type, elements.data(), uint32_t(elements.size()), false).self =… in make_constant_null()
1052 …variant_set<SPIRConstant>(ids[id], type, elements.data(), uint32_t(elements.size()), false).self =… in make_constant_null()
1058 auto &constant = variant_set<SPIRConstant>(ids[id], type); in make_constant_null()
Dspirv_glsl.hpp388 std::string constant_expression(const SPIRConstant &c);
390 virtual std::string constant_expression_vector(const SPIRConstant &c, uint32_t vector);
612 void emit_constant(const SPIRConstant &constant);
728 std::string to_extract_constant_composite_expression(uint32_t result_type, const SPIRConstant &c,
897 std::string convert_half_to_string(const SPIRConstant &value, uint32_t col, uint32_t row);
898 std::string convert_float_to_string(const SPIRConstant &value, uint32_t col, uint32_t row);
899 std::string convert_double_to_string(const SPIRConstant &value, uint32_t col, uint32_t row);
Dspirv_cross.cpp439 return get<SPIRConstant>(id).constant_type; in expression_type_id()
1019 auto &c = id.get<SPIRConstant>(); in parse_fixup()
1776 if (const auto *c = this->maybe_get<SPIRConstant>(id)) in evaluate_spec_constant_u32()
1900 if (const auto *c = maybe_get<SPIRConstant>(id)) in evaluate_constant_u32()
1989 uint32_t index = compiler.get<SPIRConstant>(args[ptr_chain ? 4 : 3]).scalar(); in handle()
2110 auto &c = get<SPIRConstant>(execution.workgroup_size.constant); in get_work_group_size_specialization_constants()
2865 ir.for_each_typed_id<SPIRConstant>([&](uint32_t, const SPIRConstant &c) { in get_specialization_constants()
2872 SPIRConstant &Compiler::get_constant(ConstantID id) in get_constant()
2874 return get<SPIRConstant>(id); in get_constant()
2877 const SPIRConstant &Compiler::get_constant(ConstantID id) const in get_constant()
[all …]
Dspirv_glsl.cpp722 …arguments.push_back(join("local_size_x = ", get<SPIRConstant>(wg_x.id).specialization_constant_mac… in build_workgroup_size()
732 …arguments.push_back(join("local_size_y = ", get<SPIRConstant>(wg_y.id).specialization_constant_mac… in build_workgroup_size()
742 …arguments.push_back(join("local_size_z = ", get<SPIRConstant>(wg_z.id).specialization_constant_mac… in build_workgroup_size()
2638 void CompilerGLSL::emit_constant(const SPIRConstant &constant) in emit_constant()
3251 auto *constant = maybe_get<SPIRConstant>(var.static_expression); in variable_is_lut()
3349 auto &c = id.get<SPIRConstant>(); in emit_resources()
3599 else if (var.initializer && maybe_get<SPIRConstant>(var.initializer) != nullptr) in emit_resources()
3659 auto &c = get<SPIRConstant>(var.initializer); in emit_output_variable_initializer()
3661 exprs.push_back(to_expression(get<SPIRConstant>(c.subconstants[j]).subconstants[i])); in emit_output_variable_initializer()
3670 auto &c = this->get<SPIRConstant>(var.initializer); in emit_output_variable_initializer()
[all …]
Dspirv_msl.cpp2796 const SPIRConstant *c = nullptr; in add_plain_member_variable_to_interface_block()
2798 var.initializer != ID(0) && (c = maybe_get<SPIRConstant>(var.initializer))) in add_plain_member_variable_to_interface_block()
2818 this->get<SPIRConstant>(c->subconstants[mbr_idx])), ";"); in add_plain_member_variable_to_interface_block()
3127 if (auto *c = maybe_get<SPIRConstant>(var.initializer)) in add_variable_to_interface_block()
6515 ir.for_each_typed_id<SPIRConstant>([&](uint32_t, SPIRConstant &c) { in declare_constant_arrays()
6550 ir.for_each_typed_id<SPIRConstant>([&](uint32_t, SPIRConstant &c) { in declare_complex_constant_arrays()
6603 ir.for_each_typed_id<SPIRConstant>([&](uint32_t, SPIRConstant &c) { in emit_specialization_constants_and_structs()
6620 auto &c = id.get<SPIRConstant>(); in emit_specialization_constants_and_structs()
6628 … " [[maybe_unused]] = ", constant_expression(get<SPIRConstant>(workgroup_size_id)), ";"); in emit_specialization_constants_and_structs()
7128 uint32_t mbr_idx = get<SPIRConstant>(ops[relevant_member_index]).scalar(); in emit_tessellation_access_chain()
[all …]
Dspirv_hlsl.cpp848 auto *c = maybe_get<SPIRConstant>(var.initializer); in to_initializer_expression()
1005 auto *c = this->maybe_get<SPIRConstant>(var.initializer); in emit_builtin_variables()
1159 ir.for_each_typed_id<SPIRConstant>([&](uint32_t, SPIRConstant &c) { in emit_composite_constants()
1205 auto &c = id.get<SPIRConstant>(); in emit_specialization_constants_and_structs()
1210 constant_expression(get<SPIRConstant>(workgroup_size_id)), ";"); in emit_specialization_constants_and_structs()
2434 …auto x_expr = wg_x.id ? get<SPIRConstant>(wg_x.id).specialization_constant_macro_name : to_string(… in emit_hlsl_entry_point()
2435 …auto y_expr = wg_y.id ? get<SPIRConstant>(wg_y.id).specialization_constant_macro_name : to_string(… in emit_hlsl_entry_point()
2436 …auto z_expr = wg_z.id ? get<SPIRConstant>(wg_z.id).specialization_constant_macro_name : to_string(… in emit_hlsl_entry_point()
Dspirv_cross.hpp449 SPIRConstant &get_constant(ConstantID id);
450 const SPIRConstant &get_constant(ConstantID id) const;
Dspirv_cpp.cpp157 auto &c = id.get<SPIRConstant>(); in emit_resources()
Dspirv_reflect.cpp659 auto &c = get<SPIRConstant>(spec_const.id); in emit_specialization_constants()
Dspirv_cross_c.cpp181 struct spvc_constant_s : SPIRConstant