Home
last modified time | relevance | path

Searched refs:variable_decl (Results 1 – 10 of 10) sorted by relevance

/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_variable_decl_test.cc24 auto v = p->variable_decl(); in TEST_F()
38 auto v = p->variable_decl(/*allow_inferred = */ true); in TEST_F()
50 auto v = p->variable_decl(); in TEST_F()
61 auto v = p->variable_decl(); in TEST_F()
70 auto v = p->variable_decl(); in TEST_F()
86 auto v = p->variable_decl(); in TEST_F()
Dparser_impl.h402 Maybe<VarDeclInfo> variable_decl(bool allow_inferred = false);
Dparser_impl.cc476 auto decl = variable_decl(); in global_variable_decl()
539 Maybe<ParserImpl::VarDeclInfo> ParserImpl::variable_decl(bool allow_inferred) { in variable_decl() function in tint::reader::wgsl::ParserImpl
1755 auto decl = variable_decl(/*allow_inferred = */ true); in variable_stmt()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_cpp.cpp82 statement(CompilerGLSL::variable_decl(var), ";"); in emit_shared()
305 statement(CompilerGLSL::variable_decl(var), ";"); in emit_resources()
466 string CompilerCPP::variable_decl(const SPIRType &type, const string &name, uint32_t /* id */) in variable_decl() function in CompilerCPP
Dspirv_cpp.hpp80 std::string variable_decl(const SPIRType &type, const std::string &name, uint32_t id) override;
Dspirv_hlsl.cpp544 statement("static ", variable_decl(var), ";"); in emit_interface_block_globally()
941 variable_decl(newtype, join(name, "_", i)), " : ", effective_semantic, ";"); in emit_interface_block_in_struct()
947 …statement(to_interpolation_qualifiers(get_decoration_bitset(var.self)), variable_decl(type, name),… in emit_interface_block_in_struct()
957 statement(variable_decl(type, name), " : ", binding, ";"); in emit_interface_block_in_struct()
1171 statement("static const ", variable_decl(type, name), " = ", constant_expression(c), ";"); in emit_composite_constants()
1225 …statement("static const ", variable_decl(type, name), " = ", c.specialization_constant_macro_name,… in emit_specialization_constants_and_structs()
1234 statement("static const ", variable_decl(type, name), " = ", constant_op_expression(c), ";"); in emit_specialization_constants_and_structs()
1283 statement("static ", variable_decl(type, to_name(undef.self), undef.self), initializer, ";"); in declare_undefined_values()
1543 statement(storage, " ", variable_decl(var), initializer, ";"); in emit_resources()
2087 variable_decl(membertype, to_member_name(type, index)), packing_offset, ";"); in emit_struct_member()
[all …]
Dspirv_glsl.cpp2600 variable_decl(type, to_name(var.self), var.self), ";"); in emit_interface_block()
2623 statement(layout_for_variable(var), variable_decl(var), ";"); in emit_uniform()
2635 statement("const ", variable_decl(type, name), " = ", constant_op_expression(constant), ";"); in emit_specialization_constant_op()
2674 variable_decl(type, name), " = ", constant_expression(constant), ";"); in emit_constant()
2685 statement("const ", variable_decl(type, name), " = ", macro_name, ";"); in emit_constant()
2690 statement("const ", variable_decl(type, name), " = ", constant_expression(constant), ";"); in emit_constant()
3237 statement(variable_decl(type, to_name(undef.self), undef.self), initializer, ";"); in declare_undefined_values()
3595 statement(variable_decl(var), initializer, ";"); in emit_resources()
4620 return variable_decl(var); in to_expression()
5584 …statement(flags_to_qualifiers_glsl(type, flags), variable_decl(type, to_name(result_id)), initiali… in emit_uninitialized_temporary()
[all …]
Dspirv_msl.hpp739 std::string variable_decl(const SPIRVariable &variable) override;
744 std::string variable_decl(const SPIRType &type, const std::string &name, uint32_t id = 0) override;
Dspirv_glsl.hpp392 virtual std::string variable_decl(const SPIRType &type, const std::string &name, uint32_t id = 0);
512 …virtual std::string variable_decl(const SPIRVariable &variable); // Threadgroup arrays can't have …
Dspirv_msl.cpp1317 statement(variable_decl(var), ";"); in emit_entry_point_declarations()
6497 variable_decl(type, to_name(undef.self), undef.self), in declare_undefined_values()
6527 statement(inject_top_level_storage_qualifier(variable_decl(type, name), "constant"), in declare_constant_arrays()
6558 statement("", variable_decl(type, name), " = ", constant_expression(c), ";"); in declare_complex_constant_arrays()
6678 statement("constant ", variable_decl(type, name), " = ", constant_op_expression(c), ";"); in emit_specialization_constants_and_structs()
13369 std::string CompilerMSL::variable_decl(const SPIRVariable &variable) in variable_decl() function in CompilerMSL
13377 std::string expr = CompilerGLSL::variable_decl(variable); in variable_decl()
13383 std::string CompilerMSL::variable_decl(const SPIRType &type, const std::string &name, uint32_t id) in variable_decl() function in CompilerMSL
13385 return CompilerGLSL::variable_decl(type, name, id); in variable_decl()