/third_party/skia/third_party/externals/spirv-cross/ |
D | spirv_msl.hpp | 90 SPIRType::BaseType basetype = SPIRType::Unknown; 727 std::string to_struct_member(const SPIRType &type, uint32_t member_type_id, uint32_t index, 729 void emit_struct_member(const SPIRType &type, uint32_t member_type_id, uint32_t index, 731 void emit_struct_padding_target(const SPIRType &type) override; 732 std::string type_to_glsl(const SPIRType &type, uint32_t id = 0) override; 736 std::string type_to_array_glsl(const SPIRType &type) override; 744 std::string variable_decl(const SPIRType &type, const std::string &name, uint32_t id = 0) override; 746 std::string image_type_glsl(const SPIRType &type, uint32_t id = 0) override; 747 std::string sampler_type(const SPIRType &type, uint32_t id); 756 …std::string unpack_expression_type(std::string expr_str, const SPIRType &type, uint32_t physical_t… [all …]
|
D | spirv_glsl.hpp | 382 virtual std::string type_to_glsl(const SPIRType &type, uint32_t id = 0); 384 virtual void emit_struct_member(const SPIRType &type, uint32_t member_type_id, uint32_t index, 386 virtual void emit_struct_padding_target(const SPIRType &type); 387 virtual std::string image_type_glsl(const SPIRType &type, uint32_t id = 0); 392 virtual std::string variable_decl(const SPIRType &type, const std::string &name, uint32_t id = 0); 401 const SPIRType *imgtype = nullptr; 434 …virtual std::string unpack_expression_type(std::string expr_str, const SPIRType &type, uint32_t ph… 508 const SPIRType &type); // Allow Metal to use the array<T> template to make arrays a value type 509 std::string to_array_size(const SPIRType &type, uint32_t index); 510 uint32_t to_array_size_literal(const SPIRType &type, uint32_t index) const; [all …]
|
D | spirv_hlsl.cpp | 128 static string image_format_to_type(ImageFormat fmt, SPIRType::BaseType basetype) in image_format_to_type() 134 if (basetype != SPIRType::Float) in image_format_to_type() 139 if (basetype != SPIRType::Float) in image_format_to_type() 144 if (basetype != SPIRType::Float) in image_format_to_type() 148 if (basetype != SPIRType::Float) in image_format_to_type() 154 if (basetype != SPIRType::Float) in image_format_to_type() 159 if (basetype != SPIRType::Float) in image_format_to_type() 164 if (basetype != SPIRType::Float) in image_format_to_type() 170 if (basetype != SPIRType::Float) in image_format_to_type() 175 if (basetype != SPIRType::Float) in image_format_to_type() [all …]
|
D | spirv_parser.cpp | 131 auto &target = get<SPIRType>(fixup.first); in parse() 132 auto &source = get<SPIRType>(fixup.second); in parse() 474 auto &type = set<SPIRType>(id); in parse() 475 type.basetype = SPIRType::Void; in parse() 482 auto &type = set<SPIRType>(id); in parse() 483 type.basetype = SPIRType::Boolean; in parse() 492 auto &type = set<SPIRType>(id); in parse() 494 type.basetype = SPIRType::Double; in parse() 496 type.basetype = SPIRType::Float; in parse() 498 type.basetype = SPIRType::Half; in parse() [all …]
|
D | spirv_glsl.cpp | 225 static SPIRType::BaseType pls_format_to_basetype(PlsFormat format) in pls_format_to_basetype() 236 return SPIRType::Float; in pls_format_to_basetype() 240 return SPIRType::Int; in pls_format_to_basetype() 246 return SPIRType::UInt; in pls_format_to_basetype() 344 auto &type = get<SPIRType>(var.basetype); in remap_pls_variables() 386 ir.for_each_typed_id<SPIRType>([&](uint32_t, const SPIRType &type) { in find_static_extensions() 387 if (type.basetype == SPIRType::Double) in find_static_extensions() 394 else if (type.basetype == SPIRType::Int64 || type.basetype == SPIRType::UInt64) in find_static_extensions() 401 else if (type.basetype == SPIRType::Half) in find_static_extensions() 407 else if (type.basetype == SPIRType::SByte || type.basetype == SPIRType::UByte) in find_static_extensions() [all …]
|
D | spirv_msl.cpp | 83 case SPIRType::Void: in add_msl_resource_binding() 84 case SPIRType::Boolean: in add_msl_resource_binding() 85 case SPIRType::SByte: in add_msl_resource_binding() 86 case SPIRType::UByte: in add_msl_resource_binding() 87 case SPIRType::Short: in add_msl_resource_binding() 88 case SPIRType::UShort: in add_msl_resource_binding() 89 case SPIRType::Int: in add_msl_resource_binding() 90 case SPIRType::UInt: in add_msl_resource_binding() 91 case SPIRType::Int64: in add_msl_resource_binding() 92 case SPIRType::UInt64: in add_msl_resource_binding() [all …]
|
D | spirv_cross.cpp | 80 auto &type = get<SPIRType>(v.basetype); in variable_storage_is_aliased() 83 bool image = type.basetype == SPIRType::Image; in variable_storage_is_aliased() 84 bool counter = type.basetype == SPIRType::AtomicCounter; in variable_storage_is_aliased() 200 auto &type = get<SPIRType>(id); in to_name() 255 auto &type = get<SPIRType>(var->basetype); in register_global_read_dependencies() 258 if (type.basetype != SPIRType::Image && type.image.dim != DimSubpassData) in register_global_read_dependencies() 458 const SPIRType &Compiler::expression_type(uint32_t id) const in expression_type() 460 return get<SPIRType>(expression_type_id(id)); in expression_type() 468 case SPIRType::SampledImage: in expression_is_lvalue() 469 case SPIRType::Image: in expression_is_lvalue() [all …]
|
D | spirv_cross.hpp | 207 const SPIRType &get_type(TypeID id) const; 210 const SPIRType &get_type_from_variable(VariableID id) const; 265 size_t get_declared_struct_size(const SPIRType &struct_type) const; 277 …size_t get_declared_struct_size_runtime_array(const SPIRType &struct_type, size_t array_size) cons… 280 size_t get_declared_struct_member_size(const SPIRType &struct_type, uint32_t index) const; 463 uint32_t type_struct_member_offset(const SPIRType &type, uint32_t index) const; 464 uint32_t type_struct_member_array_stride(const SPIRType &type, uint32_t index) const; 465 uint32_t type_struct_member_matrix_stride(const SPIRType &type, uint32_t index) const; 628 const SPIRType &get_pointee_type(const SPIRType &type) const; 631 const SPIRType &get_pointee_type(uint32_t type_id) const; [all …]
|
D | spirv_reflect.cpp | 286 static bool naturally_emit_type(const SPIRType &type) in naturally_emit_type() 288 return type.basetype == SPIRType::Struct && !type.pointer && type.array.empty(); in naturally_emit_type() 291 bool CompilerReflection::type_is_reference(const SPIRType &type) const in type_is_reference() 295 … (!type.array.empty() && type_is_top_level_physical_pointer(get<SPIRType>(type.parent_type))); in type_is_reference() 306 ir.for_each_typed_id<SPIRType>([&](uint32_t self, SPIRType &type) { in emit_types() 313 if (!naturally_emit_type(this->get<SPIRType>(type.parent_type)) && in emit_types() 333 auto &type = get<SPIRType>(type_id); in emit_type() 380 void CompilerReflection::emit_type_member(const SPIRType &type, uint32_t index) in emit_type_member() 382 auto &membertype = get<SPIRType>(type.member_types[index]); in emit_type_member() 393 else if (membertype.basetype == SPIRType::Struct) in emit_type_member() [all …]
|
D | spirv_cpp.cpp | 34 auto &type = get<SPIRType>(var.basetype); in emit_buffer_block() 54 auto &type = get<SPIRType>(var.basetype); in emit_interface_block() 90 auto &type = get<SPIRType>(var.basetype); in emit_uniform() 100 if (type.basetype == SPIRType::Image || type.basetype == SPIRType::SampledImage || in emit_uniform() 101 type.basetype == SPIRType::AtomicCounter) in emit_uniform() 123 auto &type = get<SPIRType>(var.basetype); in emit_push_constant_block() 139 void CompilerCPP::emit_block_struct(SPIRType &type) in emit_block_struct() 146 auto &self = get<SPIRType>(type.self); in emit_block_struct() 183 auto &type = id.get<SPIRType>(); in emit_resources() 184 if (type.basetype == SPIRType::Struct && type.array.empty() && !type.pointer && in emit_resources() [all …]
|
D | spirv_reflect.hpp | 78 void emit_type_member(const SPIRType &type, uint32_t index); 79 void emit_type_member_qualifiers(const SPIRType &type, uint32_t index); 80 void emit_type_array(const SPIRType &type); 82 bool type_is_reference(const SPIRType &type) const; 84 std::string to_member_name(const SPIRType &type, uint32_t index) const;
|
D | spirv_common.hpp | 510 struct SPIRType : IVariant struct 601 SPIRV_CROSS_DECLARE_CLONE(SPIRType) 1247 inline void make_null(const SPIRType &constant_type_) in make_null() 1669 … std::function<void(const SPIRType &type, const std::string &var_name, std::string &name_of_type)>; 1688 static inline bool type_is_floating_point(const SPIRType &type) in type_is_floating_point() 1690 …return type.basetype == SPIRType::Half || type.basetype == SPIRType::Float || type.basetype == SPI… in type_is_floating_point() 1693 static inline bool type_is_integral(const SPIRType &type) in type_is_integral() 1695 …return type.basetype == SPIRType::SByte || type.basetype == SPIRType::UByte || type.basetype == SP… in type_is_integral() 1696 …type.basetype == SPIRType::UShort || type.basetype == SPIRType::Int || type.basetype == SPIRType::… in type_is_integral() 1697 type.basetype == SPIRType::Int64 || type.basetype == SPIRType::UInt64; in type_is_integral() [all …]
|
D | spirv_hlsl.hpp | 212 std::string type_to_glsl(const SPIRType &type, uint32_t id = 0) override; 213 std::string image_type_hlsl(const SPIRType &type, uint32_t id); 214 std::string image_type_hlsl_modern(const SPIRType &type, uint32_t id); 215 std::string image_type_hlsl_legacy(const SPIRType &type, uint32_t id); 241 std::string layout_for_member(const SPIRType &type, uint32_t index) override; 243 std::string bitcast_glsl_op(const SPIRType &result_type, const SPIRType &argument_type) override; 268 …void emit_struct_member(const SPIRType &type, uint32_t member_type_id, uint32_t index, const std::… 351 uint32_t type_to_consumed_locations(const SPIRType &type) const;
|
D | spirv_cpp.hpp | 79 void emit_block_struct(SPIRType &type); 80 std::string variable_decl(const SPIRType &type, const std::string &name, uint32_t id) override;
|
D | spirv_parser.hpp | 96 bool types_are_logically_equivalent(const SPIRType &a, const SPIRType &b) const;
|
D | spirv_cross_parsed_ir.cpp | 39 pool_group->pools[TypeType].reset(new ObjectPool<SPIRType>); in ParsedIR() 541 Bitset ParsedIR::get_buffer_block_type_flags(const SPIRType &type) const in get_buffer_block_type_flags() 554 auto &type = get<SPIRType>(var.basetype); in get_buffer_block_flags() 555 assert(type.basetype == SPIRType::Struct); in get_buffer_block_flags() 1013 auto &constant_type = get<SPIRType>(type); in make_constant_null()
|
D | spirv_cross_util.cpp | 48 if (type.basetype == SPIRType::Struct) in rename_interface_variable()
|
D | spirv_cross_c.cpp | 177 struct spvc_type_s : SPIRType 2070 static spvc_basetype convert_basetype(SPIRType::BaseType type) in convert_basetype() 2159 return static_cast<SpvImageFormat>(static_cast<const SPIRType *>(type)->image.format); in spvc_type_get_image_storage_format() 2164 return static_cast<SpvAccessQualifier>(static_cast<const SPIRType *>(type)->image.access); in spvc_type_get_image_access_qualifier() 2171 *size = compiler->compiler->get_declared_struct_size(*static_cast<const SPIRType *>(struct_type)); in spvc_compiler_get_declared_struct_size() 2182 …*size = compiler->compiler->get_declared_struct_size_runtime_array(*static_cast<const SPIRType *>(… in spvc_compiler_get_declared_struct_size_runtime_array() 2193 …*size = compiler->compiler->get_declared_struct_member_size(*static_cast<const SPIRType *>(struct_… in spvc_compiler_get_declared_struct_member_size() 2203 …*offset = compiler->compiler->type_struct_member_offset(*static_cast<const SPIRType *>(type), inde… in spvc_compiler_type_struct_member_offset() 2213 …*stride = compiler->compiler->type_struct_member_array_stride(*static_cast<const SPIRType *>(type)… in spvc_compiler_type_struct_member_array_stride() 2223 …*stride = compiler->compiler->type_struct_member_matrix_stride(*static_cast<const SPIRType *>(type… in spvc_compiler_type_struct_member_matrix_stride()
|
D | spirv_cross_parsed_ir.hpp | 149 Bitset get_buffer_block_type_flags(const SPIRType &type) const;
|
D | main.cpp | 300 case SPIRType::Float: basetype = "float"; break; in print_resources() 301 case SPIRType::Int: basetype = "int"; break; in print_resources() 302 case SPIRType::UInt: basetype = "uint"; break; in print_resources() 1170 auto remap_cb = [&](const SPIRType &, const string &name, string &out) -> void { in compile_iteration() argument
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | SpirvUtils.cpp | 139 spirv_cross::SPIRType::BaseType spirvBaseType) { in SpirvBaseTypeToTextureComponentType() 141 case spirv_cross::SPIRType::Float: in SpirvBaseTypeToTextureComponentType() 143 case spirv_cross::SPIRType::Int: in SpirvBaseTypeToTextureComponentType() 145 case spirv_cross::SPIRType::UInt: in SpirvBaseTypeToTextureComponentType() 152 SampleTypeBit SpirvBaseTypeToSampleTypeBit(spirv_cross::SPIRType::BaseType spirvBaseType) { in SpirvBaseTypeToSampleTypeBit() 154 case spirv_cross::SPIRType::Float: in SpirvBaseTypeToSampleTypeBit() 156 case spirv_cross::SPIRType::Int: in SpirvBaseTypeToSampleTypeBit() 158 case spirv_cross::SPIRType::UInt: in SpirvBaseTypeToSampleTypeBit() 166 spirv_cross::SPIRType::BaseType spirvBaseType) { in SpirvBaseTypeToVertexFormatBaseType() 168 case spirv_cross::SPIRType::Float: in SpirvBaseTypeToVertexFormatBaseType() [all …]
|
D | SpirvUtils.h | 42 spirv_cross::SPIRType::BaseType spirvBaseType); 43 SampleTypeBit SpirvBaseTypeToSampleTypeBit(spirv_cross::SPIRType::BaseType spirvBaseType); 47 spirv_cross::SPIRType::BaseType spirvBaseType);
|
D | ShaderModuleGL.cpp | 110 spirv_cross::SPIRType::ImageType imageType = in ExtractSpirvInfo() 112 spirv_cross::SPIRType::BaseType textureComponentType = in ExtractSpirvInfo() 135 spirv_cross::SPIRType type = compiler.get_type(info->base_type_id); in ExtractSpirvInfo() 162 spirv_cross::SPIRType::ImageType imageType = in ExtractSpirvInfo()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | mtl_glslang_utils.mm | 147 const spirv_cross::SPIRType &type = compilerMsl.get_type_from_variable(resource.id);
|