/third_party/skia/third_party/externals/tint/src/ast/ |
D | storage_texture.cc | 29 std::ostream& operator<<(std::ostream& out, ImageFormat format) { in operator <<() 31 case ImageFormat::kNone: in operator <<() 34 case ImageFormat::kR8Unorm: in operator <<() 37 case ImageFormat::kR8Snorm: in operator <<() 40 case ImageFormat::kR8Uint: in operator <<() 43 case ImageFormat::kR8Sint: in operator <<() 46 case ImageFormat::kR16Uint: in operator <<() 49 case ImageFormat::kR16Sint: in operator <<() 52 case ImageFormat::kR16Float: in operator <<() 55 case ImageFormat::kRg8Unorm: in operator <<() [all …]
|
D | storage_texture_test.cc | 26 auto* subtype = StorageTexture::SubtypeFor(ImageFormat::kRgba32Float, *this); in TEST_F() 29 ImageFormat::kRgba32Float, subtype, Access::kRead); in TEST_F() 36 auto* subtype = StorageTexture::SubtypeFor(ImageFormat::kRgba32Float, *this); in TEST_F() 39 ImageFormat::kRgba32Float, subtype, Access::kRead); in TEST_F() 44 auto* subtype = StorageTexture::SubtypeFor(ImageFormat::kRgba32Float, *this); in TEST_F() 47 ImageFormat::kRgba32Float, subtype, Access::kRead); in TEST_F() 48 EXPECT_EQ(s->format, ImageFormat::kRgba32Float); in TEST_F() 52 auto* subtype = StorageTexture::SubtypeFor(ImageFormat::kRgba32Float, *this); in TEST_F() 55 ImageFormat::kRgba32Float, subtype, Access::kRead); in TEST_F() 61 auto* subtype = StorageTexture::SubtypeFor(ImageFormat::kRgba32Float, *this); in TEST_F() [all …]
|
D | storage_texture.h | 29 enum class ImageFormat { enum 71 std::ostream& operator<<(std::ostream& out, ImageFormat format); 86 ImageFormat format, 107 static Type* SubtypeFor(ImageFormat format, ProgramBuilder& builder); 110 const ImageFormat format;
|
/third_party/skia/third_party/externals/tint/src/inspector/ |
D | resource_binding.cc | 74 ResourceBinding::ImageFormat TypeImageFormatToResourceBindingImageFormat( in TypeImageFormatToResourceBindingImageFormat() 75 const ast::ImageFormat& image_format) { in TypeImageFormatToResourceBindingImageFormat() 77 case ast::ImageFormat::kR8Unorm: in TypeImageFormatToResourceBindingImageFormat() 78 return ResourceBinding::ImageFormat::kR8Unorm; in TypeImageFormatToResourceBindingImageFormat() 79 case ast::ImageFormat::kR8Snorm: in TypeImageFormatToResourceBindingImageFormat() 80 return ResourceBinding::ImageFormat::kR8Snorm; in TypeImageFormatToResourceBindingImageFormat() 81 case ast::ImageFormat::kR8Uint: in TypeImageFormatToResourceBindingImageFormat() 82 return ResourceBinding::ImageFormat::kR8Uint; in TypeImageFormatToResourceBindingImageFormat() 83 case ast::ImageFormat::kR8Sint: in TypeImageFormatToResourceBindingImageFormat() 84 return ResourceBinding::ImageFormat::kR8Sint; in TypeImageFormatToResourceBindingImageFormat() [all …]
|
D | resource_binding.h | 51 enum class ImageFormat { enum 121 ImageFormat image_format; 141 ResourceBinding::ImageFormat TypeImageFormatToResourceBindingImageFormat( 142 const ast::ImageFormat& image_format);
|
/third_party/skia/third_party/externals/tint/src/sem/ |
D | storage_texture_type.cc | 25 ast::ImageFormat format, in StorageTexture() 48 sem::Type* StorageTexture::SubtypeFor(ast::ImageFormat format, in SubtypeFor() 51 case ast::ImageFormat::kR8Uint: in SubtypeFor() 52 case ast::ImageFormat::kR16Uint: in SubtypeFor() 53 case ast::ImageFormat::kRg8Uint: in SubtypeFor() 54 case ast::ImageFormat::kR32Uint: in SubtypeFor() 55 case ast::ImageFormat::kRg16Uint: in SubtypeFor() 56 case ast::ImageFormat::kRgba8Uint: in SubtypeFor() 57 case ast::ImageFormat::kRg32Uint: in SubtypeFor() 58 case ast::ImageFormat::kRgba16Uint: in SubtypeFor() [all …]
|
D | storage_texture_type_test.cc | 30 StorageTexture::SubtypeFor(ast::ImageFormat::kRgba32Float, Types()); in TEST_F() 32 ast::ImageFormat::kRgba32Float, in TEST_F() 39 StorageTexture::SubtypeFor(ast::ImageFormat::kRgba32Float, Types()); in TEST_F() 41 ast::ImageFormat::kRgba32Float, in TEST_F() 43 EXPECT_EQ(s->image_format(), ast::ImageFormat::kRgba32Float); in TEST_F() 48 StorageTexture::SubtypeFor(ast::ImageFormat::kRgba32Float, Types()); in TEST_F() 50 ast::ImageFormat::kRgba32Float, in TEST_F() 58 StorageTexture::SubtypeFor(ast::ImageFormat::kRgba32Float, Types()); in TEST_F() 60 ast::ImageFormat::kRgba32Float, in TEST_F() 68 sem::StorageTexture::SubtypeFor(ast::ImageFormat::kRgba32Float, Types()); in TEST_F() [all …]
|
D | storage_texture_type.h | 38 ast::ImageFormat format, 50 ast::ImageFormat image_format() const { return image_format_; } in image_format() 66 static sem::Type* SubtypeFor(ast::ImageFormat format, sem::Manager& type_mgr); 69 ast::ImageFormat const image_format_;
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
D | builder_format_conversion_test.cc | 24 ast::ImageFormat ast_format; 54 TestData{ast::ImageFormat::kR8Unorm, SpvImageFormatR8, true}, 55 TestData{ast::ImageFormat::kR8Snorm, SpvImageFormatR8Snorm, true}, 56 TestData{ast::ImageFormat::kR8Uint, SpvImageFormatR8ui, true}, 57 TestData{ast::ImageFormat::kR8Sint, SpvImageFormatR8i, true}, 58 TestData{ast::ImageFormat::kR16Uint, SpvImageFormatR16ui, true}, 59 TestData{ast::ImageFormat::kR16Sint, SpvImageFormatR16i, true}, 60 TestData{ast::ImageFormat::kR16Float, SpvImageFormatR16f, true}, 61 TestData{ast::ImageFormat::kRg8Unorm, SpvImageFormatRg8, true}, 62 TestData{ast::ImageFormat::kRg8Snorm, SpvImageFormatRg8Snorm, true}, [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_image_storage_type_test.cc | 34 EXPECT_EQ(t.value, ast::ImageFormat::kR8Unorm); in TEST_F() 42 EXPECT_EQ(t.value, ast::ImageFormat::kR8Snorm); in TEST_F() 50 EXPECT_EQ(t.value, ast::ImageFormat::kR8Uint); in TEST_F() 58 EXPECT_EQ(t.value, ast::ImageFormat::kR8Sint); in TEST_F() 66 EXPECT_EQ(t.value, ast::ImageFormat::kR16Uint); in TEST_F() 74 EXPECT_EQ(t.value, ast::ImageFormat::kR16Sint); in TEST_F() 82 EXPECT_EQ(t.value, ast::ImageFormat::kR16Float); in TEST_F() 90 EXPECT_EQ(t.value, ast::ImageFormat::kRg8Unorm); in TEST_F() 98 EXPECT_EQ(t.value, ast::ImageFormat::kRg8Snorm); in TEST_F() 106 EXPECT_EQ(t.value, ast::ImageFormat::kRg8Uint); in TEST_F() [all …]
|
D | parser_impl.cc | 610 std::pair<tint::ast::ImageFormat, tint::ast::Access>; in texture_sampler_types() 784 Expect<ast::ImageFormat> ParserImpl::expect_image_storage_type( in expect_image_storage_type() 787 return ast::ImageFormat::kR8Unorm; in expect_image_storage_type() 790 return ast::ImageFormat::kR8Snorm; in expect_image_storage_type() 793 return ast::ImageFormat::kR8Uint; in expect_image_storage_type() 796 return ast::ImageFormat::kR8Sint; in expect_image_storage_type() 799 return ast::ImageFormat::kR16Uint; in expect_image_storage_type() 802 return ast::ImageFormat::kR16Sint; in expect_image_storage_type() 805 return ast::ImageFormat::kR16Float; in expect_image_storage_type() 808 return ast::ImageFormat::kRg8Unorm; in expect_image_storage_type() [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
D | enum_converter.cc | 133 ast::ImageFormat EnumConverter::ToImageFormat(SpvImageFormat fmt) { in ToImageFormat() 136 return ast::ImageFormat::kNone; in ToImageFormat() 140 return ast::ImageFormat::kRgba8Unorm; in ToImageFormat() 142 return ast::ImageFormat::kRgba8Snorm; in ToImageFormat() 144 return ast::ImageFormat::kRgba8Uint; in ToImageFormat() 146 return ast::ImageFormat::kRgba8Sint; in ToImageFormat() 150 return ast::ImageFormat::kRgba16Uint; in ToImageFormat() 152 return ast::ImageFormat::kRgba16Sint; in ToImageFormat() 154 return ast::ImageFormat::kRgba16Float; in ToImageFormat() 158 return ast::ImageFormat::kR32Uint; in ToImageFormat() [all …]
|
D | enum_converter_test.cc | 320 ast::ImageFormat expected; 364 ImageFormatCase{SpvImageFormatUnknown, true, ast::ImageFormat::kNone}, 367 ast::ImageFormat::kRgba8Unorm}, 369 ast::ImageFormat::kRgba8Snorm}, 371 ast::ImageFormat::kRgba8Uint}, 373 ast::ImageFormat::kRgba8Sint}, 376 ast::ImageFormat::kRgba16Uint}, 378 ast::ImageFormat::kRgba16Sint}, 380 ast::ImageFormat::kRgba16Float}, 383 ImageFormatCase{SpvImageFormatR32ui, true, ast::ImageFormat::kR32Uint}, [all …]
|
D | parser_impl.cc | 2539 if (format == ast::ImageFormat::kNone) { in GetTypeForHandleVar() 2559 const Type* ParserImpl::GetComponentTypeForFormat(ast::ImageFormat format) { in GetComponentTypeForFormat() 2561 case ast::ImageFormat::kR8Uint: in GetComponentTypeForFormat() 2562 case ast::ImageFormat::kR16Uint: in GetComponentTypeForFormat() 2563 case ast::ImageFormat::kRg8Uint: in GetComponentTypeForFormat() 2564 case ast::ImageFormat::kR32Uint: in GetComponentTypeForFormat() 2565 case ast::ImageFormat::kRg16Uint: in GetComponentTypeForFormat() 2566 case ast::ImageFormat::kRgba8Uint: in GetComponentTypeForFormat() 2567 case ast::ImageFormat::kRg32Uint: in GetComponentTypeForFormat() 2568 case ast::ImageFormat::kRgba16Uint: in GetComponentTypeForFormat() [all …]
|
D | parser_type_test.cc | 49 ast::ImageFormat::kR16Sint, ast::Access::kRead), in TEST() 51 ast::ImageFormat::kR16Sint, ast::Access::kRead)); in TEST() 86 ast::ImageFormat::kR16Sint, ast::Access::kRead), in TEST() 88 ast::ImageFormat::kR16Sint, ast::Access::kRead)); in TEST() 90 ast::ImageFormat::kR16Sint, ast::Access::kRead), in TEST() 92 ast::ImageFormat::kR32Sint, ast::Access::kRead)); in TEST() 94 ast::ImageFormat::kR16Sint, ast::Access::kRead), in TEST() 96 ast::ImageFormat::kR16Sint, ast::Access::kWrite)); in TEST()
|
/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
D | generator_impl_type_test.cc | 426 ast::ImageFormat fmt; 456 StorageTextureData{ast::ImageFormat::kRgba8Sint, 459 StorageTextureData{ast::ImageFormat::kRgba8Sint, 462 StorageTextureData{ast::ImageFormat::kRgba8Sint, 465 StorageTextureData{ast::ImageFormat::kRgba8Sint, 470 ast::ImageFormat fmt; 492 ImageFormatData{ast::ImageFormat::kR8Unorm, "r8unorm"}, 493 ImageFormatData{ast::ImageFormat::kR8Snorm, "r8snorm"}, 494 ImageFormatData{ast::ImageFormat::kR8Uint, "r8uint"}, 495 ImageFormatData{ast::ImageFormat::kR8Sint, "r8sint"}, [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsFboUtil.hpp | 92 struct ImageFormat struct 99 bool operator< (const ImageFormat& other) const in operator <() argument 105 static ImageFormat none (void) in none() argument 107 ImageFormat fmt = { GL_NONE, GL_NONE }; in none() 112 std::ostream& operator<< (std::ostream& stream, const ImageFormat& format); 114 static inline ImageFormat formatKeyInfo(FormatKey key) in formatKeyInfo() 116 ImageFormat fmt = { key & 0xffff, key >> 16 }; in formatKeyInfo() 138 typedef std::set<ImageFormat> Formats; 143 void addCoreFormat (ImageFormat format, FormatFlags flags); 144 …void addExtensionFormat (ImageFormat format, FormatFlags flags, const std::set<std::strin… [all …]
|
D | glsFboCompletenessTests.cpp | 439 static bool isFormatFeatureSupported (const FormatDB& db, const ImageFormat& format, FormatFlags fe… in isFormatFeatureSupported() 444 static void logAffectingExtensions (const char* prefix, const FormatDB& db, const ImageFormat& form… in logAffectingExtensions() 481 std::set<ImageFormat> formats; in logFormatInfo() 492 for (std::set<ImageFormat>::const_iterator it = formats.begin(); it != formats.end(); ++it) in logFormatInfo() 697 ImageFormat TestBase::getDefaultFormat (GLenum attPoint, GLenum bufType) const in getDefaultFormat() 701 return ImageFormat::none(); in getDefaultFormat() 721 Image* makeImage (GLenum bufType, ImageFormat format, in makeImage() 744 Attachment* makeAttachment (GLenum bufType, ImageFormat format, in makeAttachment() 772 void TestBase::attachTargetToNew (GLenum target, GLenum bufType, ImageFormat format, in attachTargetToNew() 775 ImageFormat imgFmt = format; in attachTargetToNew() [all …]
|
D | glsFboCompletenessTests.hpp | 102 ImageFormat getDefaultFormat (GLenum attPoint, GLenum bufType) const; 109 ImageFormat format, 116 Image* makeImage (GLenum bufType, ImageFormat format, 118 Attachment* makeAttachment (GLenum bufType, ImageFormat format,
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | type_validation_test.cc | 789 ast::ImageFormat::kR32Uint, ast::Access::kWrite); in TEST_P() 808 ast::ImageFormat format; 813 FormatParams{ast::ImageFormat::kBgra8Unorm, false}, 814 FormatParams{ast::ImageFormat::kBgra8UnormSrgb, false}, 815 FormatParams{ast::ImageFormat::kR16Float, false}, 816 FormatParams{ast::ImageFormat::kR16Sint, false}, 817 FormatParams{ast::ImageFormat::kR16Uint, false}, 818 FormatParams{ast::ImageFormat::kR32Float, true}, 819 FormatParams{ast::ImageFormat::kR32Sint, true}, 820 FormatParams{ast::ImageFormat::kR32Uint, true}, [all …]
|
/third_party/skia/third_party/externals/tint/samples/ |
D | main.cc | 257 tint::inspector::ResourceBinding::ImageFormat format) { in ImageFormatToString() 259 case tint::inspector::ResourceBinding::ImageFormat::kR8Unorm: in ImageFormatToString() 261 case tint::inspector::ResourceBinding::ImageFormat::kR8Snorm: in ImageFormatToString() 263 case tint::inspector::ResourceBinding::ImageFormat::kR8Uint: in ImageFormatToString() 265 case tint::inspector::ResourceBinding::ImageFormat::kR8Sint: in ImageFormatToString() 267 case tint::inspector::ResourceBinding::ImageFormat::kR16Uint: in ImageFormatToString() 269 case tint::inspector::ResourceBinding::ImageFormat::kR16Sint: in ImageFormatToString() 271 case tint::inspector::ResourceBinding::ImageFormat::kR16Float: in ImageFormatToString() 273 case tint::inspector::ResourceBinding::ImageFormat::kRg8Unorm: in ImageFormatToString() 275 case tint::inspector::ResourceBinding::ImageFormat::kRg8Snorm: in ImageFormatToString() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | ShaderModule.cpp | 159 tint::inspector::ResourceBinding::ImageFormat format) { in TintImageFormatToTextureFormat() 161 case tint::inspector::ResourceBinding::ImageFormat::kR8Unorm: in TintImageFormatToTextureFormat() 163 case tint::inspector::ResourceBinding::ImageFormat::kR8Snorm: in TintImageFormatToTextureFormat() 165 case tint::inspector::ResourceBinding::ImageFormat::kR8Uint: in TintImageFormatToTextureFormat() 167 case tint::inspector::ResourceBinding::ImageFormat::kR8Sint: in TintImageFormatToTextureFormat() 169 case tint::inspector::ResourceBinding::ImageFormat::kR16Uint: in TintImageFormatToTextureFormat() 171 case tint::inspector::ResourceBinding::ImageFormat::kR16Sint: in TintImageFormatToTextureFormat() 173 case tint::inspector::ResourceBinding::ImageFormat::kR16Float: in TintImageFormatToTextureFormat() 175 case tint::inspector::ResourceBinding::ImageFormat::kRg8Unorm: in TintImageFormatToTextureFormat() 177 case tint::inspector::ResourceBinding::ImageFormat::kRg8Snorm: in TintImageFormatToTextureFormat() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
D | generator_impl_type_test.cc | 510 ast::ImageFormat imgfmt; 542 ast::ImageFormat::kRgba8Unorm, "image1D tex;"}, 544 ast::ImageFormat::kRgba16Float, "image2D tex;"}, 546 ast::ImageFormat::kR32Float, 549 ast::ImageFormat::kRg32Float, "image3D tex;"}, 551 ast::ImageFormat::kRgba32Float, "image1D tex;"}, 553 ast::ImageFormat::kRgba16Uint, "image2D tex;"}, 555 ast::ImageFormat::kR32Uint, "image2DArray tex;"}, 557 ast::ImageFormat::kRg32Uint, "image3D tex;"}, 559 ast::ImageFormat::kRgba32Uint, "image1D tex;"}, [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl_type_test.cc | 535 ast::ImageFormat imgfmt; 564 ast::TextureDimension::k1d, ast::ImageFormat::kRgba8Unorm, 567 ast::TextureDimension::k2d, ast::ImageFormat::kRgba16Float, 570 ast::TextureDimension::k2dArray, ast::ImageFormat::kR32Float, 573 ast::TextureDimension::k3d, ast::ImageFormat::kRg32Float, 576 ast::TextureDimension::k1d, ast::ImageFormat::kRgba32Float, 579 ast::TextureDimension::k2d, ast::ImageFormat::kRgba16Uint, 582 ast::TextureDimension::k2dArray, ast::ImageFormat::kR32Uint, 585 ast::TextureDimension::k3d, ast::ImageFormat::kRg32Uint, 588 ast::TextureDimension::k1d, ast::ImageFormat::kRgba32Uint, [all …]
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fFboCompletenessTests.cpp | 295 ImageFormat colorFmt; 297 ImageFormat depthFmt; 299 ImageFormat stencilFmt; 311 GLenum formatKind (ImageFormat fmt); 331 GLenum SupportedCombinationTest::formatKind (ImageFormat fmt) in formatKind() 347 const ImageFormat none = ImageFormat::none(); in iterate()
|