| /third_party/skia/third_party/externals/dawn/src/utils/ |
| D | TextureUtils.cpp | 18 bool TextureFormatSupportsStorageTexture(wgpu::TextureFormat format) { in TextureFormatSupportsStorageTexture() 20 case wgpu::TextureFormat::R32Uint: in TextureFormatSupportsStorageTexture() 21 case wgpu::TextureFormat::R32Sint: in TextureFormatSupportsStorageTexture() 22 case wgpu::TextureFormat::R32Float: in TextureFormatSupportsStorageTexture() 23 case wgpu::TextureFormat::RGBA8Unorm: in TextureFormatSupportsStorageTexture() 24 case wgpu::TextureFormat::RGBA8Snorm: in TextureFormatSupportsStorageTexture() 25 case wgpu::TextureFormat::RGBA8Uint: in TextureFormatSupportsStorageTexture() 26 case wgpu::TextureFormat::RGBA8Sint: in TextureFormatSupportsStorageTexture() 27 case wgpu::TextureFormat::RG32Uint: in TextureFormatSupportsStorageTexture() 28 case wgpu::TextureFormat::RG32Sint: in TextureFormatSupportsStorageTexture() [all …]
|
| D | TextureUtils.h | 26 static constexpr std::array<wgpu::TextureFormat, 94> kAllTextureFormats = { 27 wgpu::TextureFormat::R8Unorm, 28 wgpu::TextureFormat::R8Snorm, 29 wgpu::TextureFormat::R8Uint, 30 wgpu::TextureFormat::R8Sint, 31 wgpu::TextureFormat::R16Uint, 32 wgpu::TextureFormat::R16Sint, 33 wgpu::TextureFormat::R16Float, 34 wgpu::TextureFormat::RG8Unorm, 35 wgpu::TextureFormat::RG8Snorm, [all …]
|
| /third_party/vk-gl-cts/framework/opengl/ |
| D | gluTextureUtil.cpp | 46 TransferFormat getTransferFormat (tcu::TextureFormat texFormat) in getTransferFormat() 48 using tcu::TextureFormat; in getTransferFormat() 56 case TextureFormat::SIGNED_INT8: in getTransferFormat() 57 case TextureFormat::SIGNED_INT16: in getTransferFormat() 58 case TextureFormat::SIGNED_INT32: in getTransferFormat() 59 case TextureFormat::UNSIGNED_INT8: in getTransferFormat() 60 case TextureFormat::UNSIGNED_INT16: in getTransferFormat() 61 case TextureFormat::UNSIGNED_INT32: in getTransferFormat() 62 case TextureFormat::UNSIGNED_INT_1010102_REV: in getTransferFormat() 73 case TextureFormat::A: format = GL_ALPHA; break; in getTransferFormat() [all …]
|
| /third_party/vk-gl-cts/modules/gles31/functional/ |
| D | es31fNegativeShaderImageLoadStoreTests.cpp | 85 std::string getShaderImageLayoutQualifier (const tcu::TextureFormat& format) in getShaderImageLayoutQualifier() 91 case tcu::TextureFormat::RGBA: qualifier << "rgba"; break; in getShaderImageLayoutQualifier() 92 case tcu::TextureFormat::R: qualifier << "r"; break; in getShaderImageLayoutQualifier() 100 case tcu::TextureFormat::FLOAT: qualifier << "32f"; break; in getShaderImageLayoutQualifier() 101 case tcu::TextureFormat::HALF_FLOAT: qualifier << "16f"; break; in getShaderImageLayoutQualifier() 102 case tcu::TextureFormat::UNORM_INT8: qualifier << "8"; break; in getShaderImageLayoutQualifier() 103 case tcu::TextureFormat::SNORM_INT8: qualifier << "8_snorm"; break; in getShaderImageLayoutQualifier() 104 case tcu::TextureFormat::SIGNED_INT32: qualifier << "32i"; break; in getShaderImageLayoutQualifier() 105 case tcu::TextureFormat::SIGNED_INT16: qualifier << "16i"; break; in getShaderImageLayoutQualifier() 106 case tcu::TextureFormat::SIGNED_INT8: qualifier << "8i"; break; in getShaderImageLayoutQualifier() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/ |
| D | Format.cpp | 127 size_t ComputeFormatIndex(wgpu::TextureFormat format) { in ComputeFormatIndex() 130 static_assert(static_cast<uint32_t>(wgpu::TextureFormat::Undefined) - 1 > kKnownFormatCount, in ComputeFormatIndex() 160 auto AddColorFormat = [&AddFormat](wgpu::TextureFormat format, bool renderable, in BuildFormatTable() 199 auto AddDepthFormat = [&AddFormat](wgpu::TextureFormat format, uint32_t byteSize, in BuildFormatTable() 219 auto AddStencilFormat = [&AddFormat](wgpu::TextureFormat format, bool isSupported) { in BuildFormatTable() 238 auto AddCompressedFormat = [&AddFormat](wgpu::TextureFormat format, uint32_t byteSize, in BuildFormatTable() 260 [&AddFormat, &table](wgpu::TextureFormat format, Aspect aspects, in BuildFormatTable() 261 wgpu::TextureFormat firstFormat, wgpu::TextureFormat secondFormat, in BuildFormatTable() 282 AddColorFormat(wgpu::TextureFormat::R8Unorm, true, false, 1, kAnyFloat, 1); in BuildFormatTable() 283 AddColorFormat(wgpu::TextureFormat::R8Snorm, false, false, 1, kAnyFloat, 1); in BuildFormatTable() [all …]
|
| /third_party/vk-gl-cts/framework/common/ |
| D | tcuTextureUtil.cpp | 102 bool isSRGB (TextureFormat format) in isSRGB() 105 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in isSRGB() 107 return format.order == TextureFormat::sR || in isSRGB() 108 format.order == TextureFormat::sRG || in isSRGB() 109 format.order == TextureFormat::sRGB || in isSRGB() 110 format.order == TextureFormat::sRGBA || in isSRGB() 111 format.order == TextureFormat::sBGR || in isSRGB() 112 format.order == TextureFormat::sBGRA; in isSRGB() 115 tcu::Vec4 linearToSRGBIfNeeded (const TextureFormat& format, const tcu::Vec4& color) in linearToSRGBIfNeeded() 120 bool isCombinedDepthStencilType (TextureFormat::ChannelType type) in isCombinedDepthStencilType() [all …]
|
| D | tcuTexture.cpp | 275 inline float channelToFloat (const deUint8* value, TextureFormat::ChannelType type) in channelToFloat() 278 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in channelToFloat() 282 case TextureFormat::SNORM_INT8: return de::max(-1.0f, (float)*((const deInt8*)value) / 127.0f); in channelToFloat() 283 …case TextureFormat::SNORM_INT16: return de::max(-1.0f, (float)*((const deInt16*)value) / 32767.0f… in channelToFloat() 284 …case TextureFormat::SNORM_INT32: return de::max(-1.0f, (float)*((const deInt32*)value) / 21474836… in channelToFloat() 285 case TextureFormat::UNORM_INT8: return (float)*((const deUint8*)value) / 255.0f; in channelToFloat() 286 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f; in channelToFloat() 287 case TextureFormat::UNORM_INT24: return (float)readUint24(value) / 16777215.0f; in channelToFloat() 288 case TextureFormat::UNORM_INT32: return (float)*((const deUint32*)value) / 4294967295.0f; in channelToFloat() 289 case TextureFormat::SIGNED_INT8: return (float)*((const deInt8*)value); in channelToFloat() [all …]
|
| D | tcuImageCompare.cpp | 220 …TextureLevel errorMask (TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8), reference.… in fuzzyCompare() 232 …t() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8) && reference.getFormat() != T… in fuzzyCompare() 246 if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8)) in fuzzyCompare() 293 …TCU_CHECK_INTERNAL(ref.getFormat().type == TextureFormat::UNORM_INT8 && cmp.getFormat().type == Te… in computeSquaredDiffSum() 337 …TextureLevel diffMask (TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8), reference.ge… in measurePixelDiffAccuracy() 348 …t() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8) && reference.getFormat() != T… in measurePixelDiffAccuracy() 359 if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8)) in measurePixelDiffAccuracy() 493 …TextureLevel errorMaskStorage (TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8), widt… in floatUlpThresholdCompare() 542 if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8)) in floatUlpThresholdCompare() 579 …TextureLevel errorMaskStorage (TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8), widt… in floatThresholdCompare() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
| D | TextureD3D12.cpp | 113 DXGI_FORMAT D3D12TypelessTextureFormat(wgpu::TextureFormat format) { in D3D12TypelessTextureFormat() 115 case wgpu::TextureFormat::R8Unorm: in D3D12TypelessTextureFormat() 116 case wgpu::TextureFormat::R8Snorm: in D3D12TypelessTextureFormat() 117 case wgpu::TextureFormat::R8Uint: in D3D12TypelessTextureFormat() 118 case wgpu::TextureFormat::R8Sint: in D3D12TypelessTextureFormat() 121 case wgpu::TextureFormat::R16Uint: in D3D12TypelessTextureFormat() 122 case wgpu::TextureFormat::R16Sint: in D3D12TypelessTextureFormat() 123 case wgpu::TextureFormat::R16Float: in D3D12TypelessTextureFormat() 124 case wgpu::TextureFormat::Depth16Unorm: in D3D12TypelessTextureFormat() 127 case wgpu::TextureFormat::RG8Unorm: in D3D12TypelessTextureFormat() [all …]
|
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
| D | vktImageAtomicSpirvShaders.cpp | 6525 CaseVariant::CaseVariant (ImageType imgtype, tcu::TextureFormat::ChannelOrder order, tcu::TextureFo… in CaseVariant() 6536 …ValueType{CaseVariant{IMAGE_TYPE_1D, tcu::TextureFormat::R, tcu::TextureFormat::UNSIGNED_INT32, … in getSpirvAtomicOpShader() 6537 …ValueType{CaseVariant{IMAGE_TYPE_1D, tcu::TextureFormat::R, tcu::TextureFormat::UNSIGNED_INT32, … in getSpirvAtomicOpShader() 6538 …ValueType{CaseVariant{IMAGE_TYPE_1D, tcu::TextureFormat::R, tcu::TextureFormat::SIGNED_INT32, Ca… in getSpirvAtomicOpShader() 6539 …ValueType{CaseVariant{IMAGE_TYPE_1D, tcu::TextureFormat::R, tcu::TextureFormat::SIGNED_INT32, Ca… in getSpirvAtomicOpShader() 6540 …ValueType{CaseVariant{IMAGE_TYPE_1D_ARRAY, tcu::TextureFormat::R, tcu::TextureFormat::UNSIGNED_IN… in getSpirvAtomicOpShader() 6541 …ValueType{CaseVariant{IMAGE_TYPE_1D_ARRAY, tcu::TextureFormat::R, tcu::TextureFormat::UNSIGNED_IN… in getSpirvAtomicOpShader() 6542 …ValueType{CaseVariant{IMAGE_TYPE_1D_ARRAY, tcu::TextureFormat::R, tcu::TextureFormat::SIGNED_INT3… in getSpirvAtomicOpShader() 6543 …ValueType{CaseVariant{IMAGE_TYPE_1D_ARRAY, tcu::TextureFormat::R, tcu::TextureFormat::SIGNED_INT3… in getSpirvAtomicOpShader() 6544 …ValueType{CaseVariant{IMAGE_TYPE_2D, tcu::TextureFormat::R, tcu::TextureFormat::UNSIGNED_INT32, … in getSpirvAtomicOpShader() [all …]
|
| D | vktImageTestsUtil.cpp | 73 const tcu::TextureFormat& format) in SparseImage() 582 std::string getFormatPrefix (const tcu::TextureFormat& format) in getFormatPrefix() 589 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType, const … in getShaderImageType() 626 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format) in getShaderImageFormatQualifier() 635 case tcu::TextureFormat::R: orderPart = "r"; break; in getShaderImageFormatQualifier() 636 case tcu::TextureFormat::RG: orderPart = "rg"; break; in getShaderImageFormatQualifier() 637 case tcu::TextureFormat::RGB: orderPart = "rgb"; break; in getShaderImageFormatQualifier() 638 case tcu::TextureFormat::RGBA: orderPart = "rgba"; break; in getShaderImageFormatQualifier() 639 case tcu::TextureFormat::sRGBA: orderPart = "rgba"; break; in getShaderImageFormatQualifier() 648 case tcu::TextureFormat::FLOAT: typePart = "32f"; break; in getShaderImageFormatQualifier() [all …]
|
| /third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
| D | vkImageUtil.cpp | 73 const tcu::TextureFormat tcuFormat = mapVkFormat(format); in isDepthStencilFormat() 74 …n tcuFormat.order == tcu::TextureFormat::D || tcuFormat.order == tcu::TextureFormat::S || tcuForma… in isDepthStencilFormat() 81 case tcu::TextureFormat::sR: in isSrgbFormat() 82 case tcu::TextureFormat::sRG: in isSrgbFormat() 83 case tcu::TextureFormat::sRGB: in isSrgbFormat() 84 case tcu::TextureFormat::sRGBA: in isSrgbFormat() 85 case tcu::TextureFormat::sBGR: in isSrgbFormat() 86 case tcu::TextureFormat::sBGRA: in isSrgbFormat() 377 …return (tcuFormat.type == tcu::TextureFormat::UNSIGNED_INT64 || tcuFormat.type == tcu::TextureForm… in is64BitIntegerFormat() 382 using tcu::TextureFormat; in getYCbCrPlanarFormatDescription() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
| D | GLFormat.cpp | 24 auto AddFormat = [&table](wgpu::TextureFormat dawnFormat, GLenum internalFormat, in BuildGLFormatTable() 47 AddFormat(wgpu::TextureFormat::R8Unorm, GL_R8, GL_RED, GL_UNSIGNED_BYTE, Type::Float); in BuildGLFormatTable() 48 AddFormat(wgpu::TextureFormat::R8Snorm, GL_R8_SNORM, GL_RED, GL_BYTE, Type::Float); in BuildGLFormatTable() 49 … AddFormat(wgpu::TextureFormat::R8Uint, GL_R8UI, GL_RED_INTEGER, GL_UNSIGNED_BYTE, Type::Uint); in BuildGLFormatTable() 50 AddFormat(wgpu::TextureFormat::R8Sint, GL_R8I, GL_RED_INTEGER, GL_BYTE, Type::Int); in BuildGLFormatTable() 53 … AddFormat(wgpu::TextureFormat::R16Uint, GL_R16UI, GL_RED_INTEGER, GL_UNSIGNED_SHORT, Type::Uint); in BuildGLFormatTable() 54 AddFormat(wgpu::TextureFormat::R16Sint, GL_R16I, GL_RED_INTEGER, GL_SHORT, Type::Int); in BuildGLFormatTable() 55 AddFormat(wgpu::TextureFormat::R16Float, GL_R16F, GL_RED, GL_HALF_FLOAT, Type::Float); in BuildGLFormatTable() 56 AddFormat(wgpu::TextureFormat::RG8Unorm, GL_RG8, GL_RG, GL_UNSIGNED_BYTE, Type::Float); in BuildGLFormatTable() 57 AddFormat(wgpu::TextureFormat::RG8Snorm, GL_RG8_SNORM, GL_RG, GL_BYTE, Type::Float); in BuildGLFormatTable() [all …]
|
| D | SpirvUtils.cpp | 67 wgpu::TextureFormat SpirvImageFormatToTextureFormat(spv::ImageFormat format) { in SpirvImageFormatToTextureFormat() 70 return wgpu::TextureFormat::R8Unorm; in SpirvImageFormatToTextureFormat() 72 return wgpu::TextureFormat::R8Snorm; in SpirvImageFormatToTextureFormat() 74 return wgpu::TextureFormat::R8Uint; in SpirvImageFormatToTextureFormat() 76 return wgpu::TextureFormat::R8Sint; in SpirvImageFormatToTextureFormat() 78 return wgpu::TextureFormat::R16Uint; in SpirvImageFormatToTextureFormat() 80 return wgpu::TextureFormat::R16Sint; in SpirvImageFormatToTextureFormat() 82 return wgpu::TextureFormat::R16Float; in SpirvImageFormatToTextureFormat() 84 return wgpu::TextureFormat::RG8Unorm; in SpirvImageFormatToTextureFormat() 86 return wgpu::TextureFormat::RG8Snorm; in SpirvImageFormatToTextureFormat() [all …]
|
| /third_party/skia/src/gpu/dawn/ |
| D | GrDawnUtil.cpp | 10 size_t GrDawnBytesPerBlock(wgpu::TextureFormat format) { in GrDawnBytesPerBlock() 12 case wgpu::TextureFormat::RGBA8Unorm: in GrDawnBytesPerBlock() 13 case wgpu::TextureFormat::BGRA8Unorm: in GrDawnBytesPerBlock() 15 case wgpu::TextureFormat::R8Unorm: in GrDawnBytesPerBlock() 17 case wgpu::TextureFormat::Depth24PlusStencil8: in GrDawnBytesPerBlock() 24 int GrDawnFormatStencilBits(wgpu::TextureFormat format) { in GrDawnFormatStencilBits() 26 case wgpu::TextureFormat::RGBA8Unorm: in GrDawnFormatStencilBits() 27 case wgpu::TextureFormat::BGRA8Unorm: in GrDawnFormatStencilBits() 28 case wgpu::TextureFormat::R8Unorm: in GrDawnFormatStencilBits() 30 case wgpu::TextureFormat::Depth24PlusStencil8: in GrDawnFormatStencilBits() [all …]
|
| D | GrDawnUtil.h | 14 size_t GrDawnBytesPerBlock(wgpu::TextureFormat format); 15 int GrDawnFormatStencilBits(wgpu::TextureFormat format); 16 bool GrDawnFormatIsRenderable(wgpu::TextureFormat format); 17 bool GrColorTypeToDawnFormat(GrColorType colorType, wgpu::TextureFormat* format); 18 bool GrDawnFormatToGrColorType(wgpu::TextureFormat format, GrColorType* colorType); 21 const char* GrDawnFormatToStr(wgpu::TextureFormat format); 24 static constexpr uint32_t GrDawnFormatChannels(wgpu::TextureFormat format) { in GrDawnFormatChannels() 26 case wgpu::TextureFormat::RGBA8Unorm: return kRGBA_SkColorChannelFlags; in GrDawnFormatChannels() 27 case wgpu::TextureFormat::BGRA8Unorm: return kRGBA_SkColorChannelFlags; in GrDawnFormatChannels() 28 case wgpu::TextureFormat::R8Unorm: return kRed_SkColorChannelFlag; in GrDawnFormatChannels() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
| D | TextureMTL.mm | 116 ResultOrError<wgpu::TextureFormat> GetFormatEquivalentToIOSurfaceFormat(uint32_t format) { 119 return wgpu::TextureFormat::RGBA8Unorm; 121 return wgpu::TextureFormat::BGRA8Unorm; 123 return wgpu::TextureFormat::RG8Unorm; 125 return wgpu::TextureFormat::R8Unorm; 141 MTLPixelFormat MetalPixelFormat(wgpu::TextureFormat format) { 143 case wgpu::TextureFormat::R8Unorm: 145 case wgpu::TextureFormat::R8Snorm: 147 case wgpu::TextureFormat::R8Uint: 149 case wgpu::TextureFormat::R8Sint: [all …]
|
| /third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
| D | StorageTextureValidationTests.cpp | 60 wgpu::TextureFormat textureFormat, in CreateComputeShaderWithStorageTexture() 93 wgpu::TextureFormat format, in CreateTexture() 217 0, testSpec.stage, testSpec.type, wgpu::TextureFormat::R32Uint); in TEST_F() 236 constexpr std::array<wgpu::TextureFormat, 32> kWGPUTextureFormatSupportedAsSPIRVImageFormats = { in TEST_F() 237 wgpu::TextureFormat::R32Uint, wgpu::TextureFormat::R32Sint, in TEST_F() 238 wgpu::TextureFormat::R32Float, wgpu::TextureFormat::RGBA8Unorm, in TEST_F() 239 wgpu::TextureFormat::RGBA8Snorm, wgpu::TextureFormat::RGBA8Uint, in TEST_F() 240 wgpu::TextureFormat::RGBA8Sint, wgpu::TextureFormat::RG32Uint, in TEST_F() 241 wgpu::TextureFormat::RG32Sint, wgpu::TextureFormat::RG32Float, in TEST_F() 242 wgpu::TextureFormat::RGBA16Uint, wgpu::TextureFormat::RGBA16Sint, in TEST_F() [all …]
|
| D | QueueWriteTextureValidationTests.cpp | 34 wgpu::TextureFormat format, in Create2DTexture() 75 wgpu::TextureFormat textureFormat, in TestWriteTextureExactDataSize() 95 utils::RequiredBytesInCopy(256, 0, {4, 4, 1}, wgpu::TextureFormat::RGBA8Unorm); in TEST_F() 96 wgpu::Texture destination = Create2DTexture({16, 16, 4}, 5, wgpu::TextureFormat::RGBA8Unorm, in TEST_F() 156 utils::RequiredBytesInCopy(256, 0, {4, 4, 1}, wgpu::TextureFormat::RGBA8Unorm); in TEST_F() 157 wgpu::Texture destination = Create2DTexture({16, 16, 1}, 5, wgpu::TextureFormat::RGBA8Unorm, in TEST_F() 176 utils::RequiredBytesInCopy(256, 0, {7, 3, 1}, wgpu::TextureFormat::RGBA8Unorm); in TEST_F() 186 utils::RequiredBytesInCopy(256, 0, {4, 4, 1}, wgpu::TextureFormat::RGBA8Unorm); in TEST_F() 187 wgpu::Texture destination = Create2DTexture({16, 16, 2}, 5, wgpu::TextureFormat::RGBA8Unorm, in TEST_F() 214 utils::RequiredBytesInCopy(0, 0, {0, 0, 2}, wgpu::TextureFormat::RGBA8Unorm); in TEST_F() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
| D | CompressedTextureFormatTests.cpp | 37 using TextureFormat = wgpu::TextureFormat; typedef 38 DAWN_TEST_PARAM_STRUCT(CompressedTextureFormatTestParams, TextureFormat); 44 const wgpu::TextureFormat format = GetParam().mTextureFormat; in GetRequiredFeatures() 307 case wgpu::TextureFormat::BC1RGBAUnorm: in GetOneBlockFormatTextureData() 308 case wgpu::TextureFormat::BC1RGBAUnormSrgb: in GetOneBlockFormatTextureData() 310 case wgpu::TextureFormat::BC7RGBAUnorm: in GetOneBlockFormatTextureData() 311 case wgpu::TextureFormat::BC7RGBAUnormSrgb: in GetOneBlockFormatTextureData() 322 case wgpu::TextureFormat::BC2RGBAUnorm: in GetOneBlockFormatTextureData() 323 case wgpu::TextureFormat::BC2RGBAUnormSrgb: in GetOneBlockFormatTextureData() 326 case wgpu::TextureFormat::BC3RGBAUnorm: in GetOneBlockFormatTextureData() [all …]
|
| D | StorageTextureTests.cpp | 25 bool OpenGLESSupportsStorageTexture(wgpu::TextureFormat format) { in OpenGLESSupportsStorageTexture() 27 return format != wgpu::TextureFormat::RG32Float && in OpenGLESSupportsStorageTexture() 28 format != wgpu::TextureFormat::RG32Sint && format != wgpu::TextureFormat::RG32Uint; in OpenGLESSupportsStorageTexture() 35 wgpu::TextureFormat format, in FillExpectedData() 44 case wgpu::TextureFormat::R32Uint: { in FillExpectedData() 50 case wgpu::TextureFormat::RG32Uint: { in FillExpectedData() 57 case wgpu::TextureFormat::RGBA32Uint: { in FillExpectedData() 67 case wgpu::TextureFormat::R32Sint: { in FillExpectedData() 73 case wgpu::TextureFormat::RG32Sint: { in FillExpectedData() 80 case wgpu::TextureFormat::RGBA32Sint: { in FillExpectedData() [all …]
|
| D | NonzeroTextureCreationTests.cpp | 25 using Format = wgpu::TextureFormat; 79 if (GetParam().mFormat == wgpu::TextureFormat::BC1RGBAUnorm && in GetRequiredFeatures() 87 DAWN_TEST_UNSUPPORTED_IF(GetParam().mFormat == wgpu::TextureFormat::BC1RGBAUnorm && in Run() 92 DAWN_TEST_UNSUPPORTED_IF(GetParam().mFormat == wgpu::TextureFormat::RGBA8Snorm && in Run() 103 (GetParam().mFormat == wgpu::TextureFormat::Depth32Float || in Run() 104 GetParam().mFormat == wgpu::TextureFormat::Depth24PlusStencil8) && in Run() 108 DAWN_SUPPRESS_TEST_IF((GetParam().mFormat == wgpu::TextureFormat::R8Unorm || in Run() 109 GetParam().mFormat == wgpu::TextureFormat::RG8Unorm) && in Run() 114 DAWN_SUPPRESS_TEST_IF(GetParam().mFormat == wgpu::TextureFormat::Depth32Float && in Run() 118 DAWN_SUPPRESS_TEST_IF(GetParam().mFormat == wgpu::TextureFormat::Depth24PlusStencil8 && in Run() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
| D | TextureVk.cpp | 219 VkFormat VulkanImageFormat(const Device* device, wgpu::TextureFormat format) { in VulkanImageFormat() 221 case wgpu::TextureFormat::R8Unorm: in VulkanImageFormat() 223 case wgpu::TextureFormat::R8Snorm: in VulkanImageFormat() 225 case wgpu::TextureFormat::R8Uint: in VulkanImageFormat() 227 case wgpu::TextureFormat::R8Sint: in VulkanImageFormat() 230 case wgpu::TextureFormat::R16Uint: in VulkanImageFormat() 232 case wgpu::TextureFormat::R16Sint: in VulkanImageFormat() 234 case wgpu::TextureFormat::R16Float: in VulkanImageFormat() 236 case wgpu::TextureFormat::RG8Unorm: in VulkanImageFormat() 238 case wgpu::TextureFormat::RG8Snorm: in VulkanImageFormat() [all …]
|
| /third_party/vk-gl-cts/external/openglcts/modules/common/ |
| D | glcNearestEdgeTests.cpp | 77 …static tcu::TextureFormat toTextureFormat (deqp::Context& context, const tcu::PixelFormat& pixelF… 92 const tcu::TextureFormat m_texFormat; 127 tcu::TextureFormat NearestEdgeTestCase::toTextureFormat (deqp::Context& context, const tcu::PixelFo… in toTextureFormat() 132 tcu::TextureFormat texFmt; in toTextureFormat() 135 …{ tcu::PixelFormat(8,8,8,8), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNOR… in toTextureFormat() 136 …{ tcu::PixelFormat(8,8,8,0), tcu::TextureFormat(tcu::TextureFormat::RGB, tcu::TextureFormat::UNOR… in toTextureFormat() 137 …{ tcu::PixelFormat(4,4,4,4), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNOR… in toTextureFormat() 138 …{ tcu::PixelFormat(5,5,5,1), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNOR… in toTextureFormat() 139 …{ tcu::PixelFormat(5,6,5,0), tcu::TextureFormat(tcu::TextureFormat::RGB, tcu::TextureFormat::UNOR… in toTextureFormat() 140 …{ tcu::PixelFormat(10,10,10,2), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::U… in toTextureFormat() [all …]
|
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
| D | vktPipelineImageUtil.hpp | 165 TestTexture (const tcu::TextureFormat& format, int width, int height, int depth); 184 virtual de::MovePtr<TestTexture> copy (const tcu::TextureFormat) const = 0; 186 virtual const tcu::TextureFormat& getTextureFormat (void) const = 0; 207 TestTexture1D (const tcu::TextureFormat& format, int width); 216 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); } in getTextureFormat() 219 virtual de::MovePtr<TestTexture> copy (const tcu::TextureFormat) const; 228 TestTexture1DArray (const tcu::TextureFormat& format, int width, int arraySize); 238 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); } in getTextureFormat() 241 virtual de::MovePtr<TestTexture> copy (const tcu::TextureFormat) const; 250 TestTexture2D (const tcu::TextureFormat& format, int width, int height); [all …]
|