Home
last modified time | relevance | path

Searched refs:TextureFormat (Results 1 – 25 of 756) sorted by relevance

12345678910>>...31

/third_party/skia/third_party/externals/dawn/src/utils/
DTextureUtils.cpp18 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 …]
DTextureUtils.h26 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/
DgluTextureUtil.cpp46 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/
Des31fNegativeShaderImageLoadStoreTests.cpp85 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/flutter/skia/third_party/externals/dawn/src/dawn_native/
DFormat.cpp47 size_t ComputeFormatIndex(dawn::TextureFormat format) { in ComputeFormatIndex()
67 auto AddColorFormat = [&AddFormat](dawn::TextureFormat format, bool renderable, in BuildFormatTable()
81 auto AddDepthStencilFormat = [&AddFormat](dawn::TextureFormat format, Format::Aspect aspect, in BuildFormatTable()
95 auto AddCompressedFormat = [&AddFormat](dawn::TextureFormat format, uint32_t byteSize, in BuildFormatTable()
112 AddColorFormat(dawn::TextureFormat::R8Unorm, true, 1); in BuildFormatTable()
113 AddColorFormat(dawn::TextureFormat::R8Snorm, true, 1); in BuildFormatTable()
114 AddColorFormat(dawn::TextureFormat::R8Uint, true, 1); in BuildFormatTable()
115 AddColorFormat(dawn::TextureFormat::R8Sint, true, 1); in BuildFormatTable()
118 AddColorFormat(dawn::TextureFormat::R16Unorm, true, 2); in BuildFormatTable()
119 AddColorFormat(dawn::TextureFormat::R16Snorm, true, 2); in BuildFormatTable()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DFormat.cpp127 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/
DtcuTextureUtil.cpp102 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 …]
DtcuTexture.cpp275 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 …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureD3D12.cpp113 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_no_buildgn/vulkan/image/
DvktImageAtomicSpirvShaders.cpp6525 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 …]
DvktImageTestsUtil.cpp63 const tcu::TextureFormat& format) in SparseImage()
545 std::string getFormatPrefix (const tcu::TextureFormat& format) in getFormatPrefix()
552 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType, const … in getShaderImageType()
589 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format) in getShaderImageFormatQualifier()
598 case tcu::TextureFormat::R: orderPart = "r"; break; in getShaderImageFormatQualifier()
599 case tcu::TextureFormat::RG: orderPart = "rg"; break; in getShaderImageFormatQualifier()
600 case tcu::TextureFormat::RGB: orderPart = "rgb"; break; in getShaderImageFormatQualifier()
601 case tcu::TextureFormat::RGBA: orderPart = "rgba"; break; in getShaderImageFormatQualifier()
602 case tcu::TextureFormat::sRGBA: orderPart = "rgba"; break; in getShaderImageFormatQualifier()
611 case tcu::TextureFormat::FLOAT: typePart = "32f"; break; in getShaderImageFormatQualifier()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageAtomicSpirvShaders.cpp6525 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 …]
DvktImageTestsUtil.cpp63 const tcu::TextureFormat& format) in SparseImage()
545 std::string getFormatPrefix (const tcu::TextureFormat& format) in getFormatPrefix()
552 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType, const … in getShaderImageType()
589 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format) in getShaderImageFormatQualifier()
598 case tcu::TextureFormat::R: orderPart = "r"; break; in getShaderImageFormatQualifier()
599 case tcu::TextureFormat::RG: orderPart = "rg"; break; in getShaderImageFormatQualifier()
600 case tcu::TextureFormat::RGB: orderPart = "rgb"; break; in getShaderImageFormatQualifier()
601 case tcu::TextureFormat::RGBA: orderPart = "rgba"; break; in getShaderImageFormatQualifier()
602 case tcu::TextureFormat::sRGBA: orderPart = "rgba"; break; in getShaderImageFormatQualifier()
611 case tcu::TextureFormat::FLOAT: typePart = "32f"; break; in getShaderImageFormatQualifier()
[all …]
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkImageUtil.cpp75 const tcu::TextureFormat tcuFormat = mapVkFormat(format); in isDepthStencilFormat()
76 …n tcuFormat.order == tcu::TextureFormat::D || tcuFormat.order == tcu::TextureFormat::S || tcuForma… in isDepthStencilFormat()
83 case tcu::TextureFormat::sR: in isSrgbFormat()
84 case tcu::TextureFormat::sRG: in isSrgbFormat()
85 case tcu::TextureFormat::sRGB: in isSrgbFormat()
86 case tcu::TextureFormat::sRGBA: in isSrgbFormat()
87 case tcu::TextureFormat::sBGR: in isSrgbFormat()
88 case tcu::TextureFormat::sBGRA: in isSrgbFormat()
424 …return (tcuFormat.type == tcu::TextureFormat::UNSIGNED_INT64 || tcuFormat.type == tcu::TextureForm… in is64BitIntegerFormat()
429 using tcu::TextureFormat; in getYCbCrPlanarFormatDescription()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DGLFormat.cpp24 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 …]
DSpirvUtils.cpp67 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/
DGrDawnUtil.cpp10 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 …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/metal/
DTextureMTL.mm110 ResultOrError<dawn::TextureFormat> GetFormatEquivalentToIOSurfaceFormat(uint32_t format) {
113 return dawn::TextureFormat::BGRA8Unorm;
115 return dawn::TextureFormat::RG8Unorm;
117 return dawn::TextureFormat::R8Unorm;
124 MTLPixelFormat MetalPixelFormat(dawn::TextureFormat format) {
126 case dawn::TextureFormat::R8Unorm:
128 case dawn::TextureFormat::R8Snorm:
130 case dawn::TextureFormat::R8Uint:
132 case dawn::TextureFormat::R8Sint:
135 case dawn::TextureFormat::R16Unorm:
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureD3D12.cpp98 DXGI_FORMAT D3D12TextureFormat(dawn::TextureFormat format) { in D3D12TextureFormat()
100 case dawn::TextureFormat::R8Unorm: in D3D12TextureFormat()
102 case dawn::TextureFormat::R8Snorm: in D3D12TextureFormat()
104 case dawn::TextureFormat::R8Uint: in D3D12TextureFormat()
106 case dawn::TextureFormat::R8Sint: in D3D12TextureFormat()
109 case dawn::TextureFormat::R16Unorm: in D3D12TextureFormat()
111 case dawn::TextureFormat::R16Snorm: in D3D12TextureFormat()
113 case dawn::TextureFormat::R16Uint: in D3D12TextureFormat()
115 case dawn::TextureFormat::R16Sint: in D3D12TextureFormat()
117 case dawn::TextureFormat::R16Float: in D3D12TextureFormat()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DTextureMTL.mm116 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/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DTextureVk.cpp212 VkFormat VulkanImageFormat(dawn::TextureFormat format) { in VulkanImageFormat()
214 case dawn::TextureFormat::R8Unorm: in VulkanImageFormat()
216 case dawn::TextureFormat::R8Snorm: in VulkanImageFormat()
218 case dawn::TextureFormat::R8Uint: in VulkanImageFormat()
220 case dawn::TextureFormat::R8Sint: in VulkanImageFormat()
223 case dawn::TextureFormat::R16Unorm: in VulkanImageFormat()
225 case dawn::TextureFormat::R16Snorm: in VulkanImageFormat()
227 case dawn::TextureFormat::R16Uint: in VulkanImageFormat()
229 case dawn::TextureFormat::R16Sint: in VulkanImageFormat()
231 case dawn::TextureFormat::R16Float: in VulkanImageFormat()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DStorageTextureValidationTests.cpp60 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 …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DCompressedTextureFormatTests.cpp37 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 …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DCompressedTextureFormatTests.cpp25 dawn::TextureFormat format, in Create2DTexture()
47 dawn::TextureFormat format;
121 dawn::TextureFormat bcFormat, in CreateBindGroupForTest()
238 static uint32_t CompressedFormatBlockSizeInBytes(dawn::TextureFormat format) { in CompressedFormatBlockSizeInBytes()
240 case dawn::TextureFormat::BC1RGBAUnorm: in CompressedFormatBlockSizeInBytes()
241 case dawn::TextureFormat::BC1RGBAUnormSrgb: in CompressedFormatBlockSizeInBytes()
242 case dawn::TextureFormat::BC4RSnorm: in CompressedFormatBlockSizeInBytes()
243 case dawn::TextureFormat::BC4RUnorm: in CompressedFormatBlockSizeInBytes()
245 case dawn::TextureFormat::BC2RGBAUnorm: in CompressedFormatBlockSizeInBytes()
246 case dawn::TextureFormat::BC2RGBAUnormSrgb: in CompressedFormatBlockSizeInBytes()
[all …]
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnUtil.cpp10 GrPixelConfig GrDawnFormatToPixelConfig(dawn::TextureFormat format) { in GrDawnFormatToPixelConfig()
12 case dawn::TextureFormat::RGBA8Unorm: in GrDawnFormatToPixelConfig()
14 case dawn::TextureFormat::BGRA8Unorm: in GrDawnFormatToPixelConfig()
16 case dawn::TextureFormat::R8Unorm: in GrDawnFormatToPixelConfig()
18 case dawn::TextureFormat::Depth24PlusStencil8: in GrDawnFormatToPixelConfig()
25 bool GrDawnFormatIsRenderable(dawn::TextureFormat format) { in GrDawnFormatIsRenderable()
31 bool GrPixelConfigToDawnFormat(GrPixelConfig config, dawn::TextureFormat* format) { in GrPixelConfigToDawnFormat()
37 *format = dawn::TextureFormat::RGBA8Unorm; in GrPixelConfigToDawnFormat()
40 *format = dawn::TextureFormat::BGRA8Unorm; in GrPixelConfigToDawnFormat()
44 *format = dawn::TextureFormat::R8Unorm; in GrPixelConfigToDawnFormat()
[all …]

12345678910>>...31