/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | RenderBundleEncoder.cpp | 30 wgpu::TextureFormat textureFormat) { in ValidateColorAttachmentFormat() argument 31 DAWN_TRY(ValidateTextureFormat(textureFormat)); in ValidateColorAttachmentFormat() 33 DAWN_TRY_ASSIGN(format, device->GetInternalFormat(textureFormat)); in ValidateColorAttachmentFormat() 35 "Texture format %s is not color renderable.", textureFormat); in ValidateColorAttachmentFormat() 40 wgpu::TextureFormat textureFormat, in ValidateDepthStencilAttachmentFormat() argument 43 DAWN_TRY(ValidateTextureFormat(textureFormat)); in ValidateDepthStencilAttachmentFormat() 45 DAWN_TRY_ASSIGN(format, device->GetInternalFormat(textureFormat)); in ValidateDepthStencilAttachmentFormat() 47 "Texture format %s is not depth/stencil renderable.", textureFormat); in ValidateDepthStencilAttachmentFormat() 53 depthReadOnly, stencilReadOnly, textureFormat); in ValidateDepthStencilAttachmentFormat()
|
/third_party/mesa3d/src/gallium/frontends/wgl/ |
D | stw_ext_pbuffer.c | 88 int textureFormat = WGL_NO_TEXTURE_ARB; in wglCreatePbufferARB() local 113 textureFormat = *piAttrib; in wglCreatePbufferARB() 114 if (textureFormat != WGL_TEXTURE_RGB_ARB && in wglCreatePbufferARB() 115 textureFormat != WGL_TEXTURE_RGBA_ARB && in wglCreatePbufferARB() 116 textureFormat != WGL_NO_TEXTURE_ARB) { in wglCreatePbufferARB() 253 fb->textureFormat = textureFormat; in wglCreatePbufferARB() 354 *piValue = fb->textureFormat; in wglQueryPbufferARB()
|
/third_party/skia/third_party/externals/dawn/src/utils/ |
D | TextureUtils.cpp | 43 bool IsBCTextureFormat(wgpu::TextureFormat textureFormat) { in IsBCTextureFormat() argument 44 switch (textureFormat) { in IsBCTextureFormat() 66 bool IsETC2TextureFormat(wgpu::TextureFormat textureFormat) { in IsETC2TextureFormat() argument 67 switch (textureFormat) { in IsETC2TextureFormat() 85 bool IsASTCTextureFormat(wgpu::TextureFormat textureFormat) { in IsASTCTextureFormat() argument 86 switch (textureFormat) { in IsASTCTextureFormat() 122 bool IsDepthOnlyFormat(wgpu::TextureFormat textureFormat) { in IsDepthOnlyFormat() argument 123 switch (textureFormat) { in IsDepthOnlyFormat() 133 uint32_t GetTexelBlockSizeInBytes(wgpu::TextureFormat textureFormat) { in GetTexelBlockSizeInBytes() argument 134 switch (textureFormat) { in GetTexelBlockSizeInBytes() [all …]
|
D | TestUtils.cpp | 78 wgpu::TextureFormat textureFormat) { in RequiredBytesInCopy() argument 79 uint32_t blockSize = utils::GetTexelBlockSizeInBytes(textureFormat); in RequiredBytesInCopy() 80 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(textureFormat); in RequiredBytesInCopy() 81 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(textureFormat); in RequiredBytesInCopy() 113 wgpu::TextureFormat textureFormat) { in GetTexelCountInCopyRegion() argument 114 return RequiredBytesInCopy(bytesPerRow, rowsPerImage, copyExtent, textureFormat) / in GetTexelCountInCopyRegion() 115 utils::GetTexelBlockSizeInBytes(textureFormat); in GetTexelCountInCopyRegion()
|
D | TextureUtils.h | 205 bool IsBCTextureFormat(wgpu::TextureFormat textureFormat); 206 bool IsETC2TextureFormat(wgpu::TextureFormat textureFormat); 207 bool IsASTCTextureFormat(wgpu::TextureFormat textureFormat); 209 bool IsDepthOnlyFormat(wgpu::TextureFormat textureFormat); 211 uint32_t GetTexelBlockSizeInBytes(wgpu::TextureFormat textureFormat); 212 uint32_t GetTextureFormatBlockWidth(wgpu::TextureFormat textureFormat); 213 uint32_t GetTextureFormatBlockHeight(wgpu::TextureFormat textureFormat); 215 const char* GetWGSLColorTextureComponentType(wgpu::TextureFormat textureFormat); 216 const char* GetWGSLImageFormatQualifier(wgpu::TextureFormat textureFormat); 217 uint32_t GetWGSLRenderableColorTextureComponentCount(wgpu::TextureFormat textureFormat);
|
D | TestUtils.h | 44 wgpu::TextureFormat textureFormat); 55 wgpu::TextureFormat textureFormat);
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | RenderbufferVk.cpp | 66 const angle::Format &textureFormat = vkFormat.imageFormat(); in setStorageImpl() local 67 bool isDepthOrStencilFormat = textureFormat.depthBits > 0 || textureFormat.stencilBits > 0; in setStorageImpl() 71 (textureFormat.redBits > 0 ? VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT : 0) | in setStorageImpl() 81 VkImageAspectFlags aspect = vk::GetFormatAspectFlags(textureFormat); in setStorageImpl() 157 const angle::Format &textureFormat = vkFormat.imageFormat(); in setStorageEGLImageTarget() local 159 VkImageAspectFlags aspect = vk::GetFormatAspectFlags(textureFormat); in setStorageEGLImageTarget()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineSamplerBorderSwizzleTests.cpp | 72 VkFormat textureFormat; member 147 …physicalDevice, m_params.textureFormat, VK_IMAGE_TYPE_2D, VK_IMAGE_TILING_OPTIMAL, (VK_IMAGE_USAGE… in checkSupport() 209 VkFormat getColorAttachmentFormat (VkFormat textureFormat) in getColorAttachmentFormat() argument 211 const auto formatType = getFormatType(textureFormat); in getColorAttachmentFormat() 237 const auto formatType = getFormatType(m_params.textureFormat); in initPrograms() 378 const auto numComp = tcu::getNumUsedChannels(mapVkFormat(params.textureFormat).order); in getExpectedColor() 379 const auto formatType = getFormatType(params.textureFormat); in getExpectedColor() 447 const tcu::TextureFormat& textureFormat, in comparePixelToColorClearValue() argument 452 const auto channelClass = getTextureChannelClass(textureFormat.type); in comparePixelToColorClearValue() 470 const tcu::IVec4 bitDepth (getTextureFormatBitDepth(textureFormat)); in comparePixelToColorClearValue() [all …]
|
D | vktPipelineEarlyDestroyTests.cpp | 235 const tcu::TextureFormat textureFormat = mapVkFormat(attachmentFormat); in testEarlyDestroy() local 236 …const VkDeviceSize imageSize = framebufferWidth * framebufferHeight * textureFormat.get… in testEarlyDestroy() 306 …const tcu::ConstPixelBufferAccess imagePixels (textureFormat, framebufferWidth, framebuffer… in testEarlyDestroy()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderTextureGatherTests.cpp | 928 …GatherType gatherType, LevelMode levelMode, const tcu::TextureFormat& textureFormat, const IVec2& … in generateBasic2DCaseIterations() argument 930 …const int numComponentCases = isDepthFormat(textureFormat) ? 1 : 4+1; // \note For non-depth tex… in generateBasic2DCaseIterations() 1005 tcu::TextureFormat textureFormat; member 1034 , textureFormat (textureFormat_) in GatherCaseBaseParams() 1051 , textureFormat () in GatherCaseBaseParams() 1167 …isDepthFormat(baseParams.textureFormat) ? tcu::TextureFormat::UNORM_INT8 : baseParams.textureForma… in TextureGatherInstance() 1171 …shadowCompareMode != tcu::Sampler::COMPAREMODE_NONE) == isDepthFormat(m_baseParams.textureFormat)); in TextureGatherInstance() 1226 const auto format = vk::mapTextureFormat(m_baseParams.textureFormat); in init() 1344 … m_baseParams.gatherType == GATHERTYPE_OFFSET_DYNAMIC || isDepthFormat(m_baseParams.textureFormat); in setupDefaultInputs() 1463 if (isDepthFormat(m_baseParams.textureFormat)) in verify() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/ |
D | vktGeometryTestsUtil.cpp | 430 const tcu::TextureFormat textureFormat = mapVkFormat(format); in fillBuffer() local 431 const deUint32 colorPixelSize = static_cast<deUint32>(tcu::getPixelSize(textureFormat)); in fillBuffer() 432 tcu::TextureLevel colorPixelBuffer (textureFormat, 1, 1); in fillBuffer() 449 const tcu::TextureFormat textureFormat = mapVkFormat(format); in fillBuffer() local 450 const deUint32 colorPixelSize = static_cast<deUint32>(tcu::getPixelSize(textureFormat)); in fillBuffer() 451 tcu::TextureLevel colorPixelBuffer (textureFormat, 1, 1); in fillBuffer()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/ |
D | es3_copy_conversion_table_autogen.cpp | 18 bool ValidES3CopyConversion(GLenum textureFormat, GLenum framebufferFormat) in ValidES3CopyConversion() argument 20 switch (textureFormat) in ValidES3CopyConversion()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | es3_copy_conversion_table_autogen.cpp | 18 bool ValidES3CopyConversion(GLenum textureFormat, GLenum framebufferFormat) in ValidES3CopyConversion() argument 20 switch (textureFormat) in ValidES3CopyConversion()
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuImageIO.cpp | 107 TextureFormat textureFormat; in loadPNG() local 114 textureFormat = TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8); in loadPNG() 116 textureFormat = TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8); in loadPNG() 122 dst.setStorage(textureFormat, width, height); in loadPNG()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
D | vktImageTestsUtil.cpp | 782 const tcu::TextureFormat textureFormat = mapVkFormat(format); in getGlslAttachmentType() local 783 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(textureFormat.type); in getGlslAttachmentType() 806 const tcu::TextureFormat textureFormat = mapVkFormat(format); in getGlslInputAttachmentType() local 807 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(textureFormat.type); in getGlslInputAttachmentType() 830 const tcu::TextureFormat textureFormat = mapVkFormat(format); in isPackedType() local 834 switch (textureFormat.type) in isPackedType() 867 const tcu::TextureFormat textureFormat = mapVkFormat(format); in isComponentSwizzled() local 871 switch (textureFormat.order) in isComponentSwizzled() 891 const tcu::TextureFormat textureFormat = mapVkFormat(format); in getNumUsedChannels() local 893 return getNumUsedChannels(textureFormat.order); in getNumUsedChannels()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libEGL/ |
D | Display.cpp | 345 EGLenum textureFormat = EGL_NO_TEXTURE; in createPBufferSurface() local 373 textureFormat = attribList[1]; in createPBufferSurface() 455 if((textureFormat != EGL_NO_TEXTURE && textureTarget == EGL_NO_TEXTURE) || in createPBufferSurface() 456 (textureFormat == EGL_NO_TEXTURE && textureTarget != EGL_NO_TEXTURE)) in createPBufferSurface() 523 if(textureFormat != EGL_TEXTURE_RGBA) in createPBufferSurface() 546 if((textureFormat == EGL_TEXTURE_RGB && configuration->mBindToTextureRGB != EGL_TRUE) || in createPBufferSurface() 547 ((textureFormat == EGL_TEXTURE_RGBA && configuration->mBindToTextureRGBA != EGL_TRUE))) in createPBufferSurface() 553 …Surface *surface = new PBufferSurface(this, configuration, width, height, textureFormat, textureTa… in createPBufferSurface()
|
D | Surface.cpp | 221 return textureFormat; in getTextureFormat() 417 … EGLenum textureFormat, EGLenum textureTarget, EGLenum clientBufferFormat, in PBufferSurface() argument 425 this->textureFormat = textureFormat; in PBufferSurface()
|
D | Surface.hpp | 100 EGLenum textureFormat = EGL_NO_TEXTURE; // Format of texture: RGB, RGBA, or no texture member in egl::Surface 140 EGLenum textureFormat, EGLenum textureTarget, EGLenum internalFormat,
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | RenderbufferVk.cpp | 82 const angle::Format &textureFormat = format.getActualRenderableImageFormat(); in setStorageImpl() local 83 const bool isDepthStencilFormat = textureFormat.hasDepthOrStencilBits(); in setStorageImpl() 84 ASSERT(textureFormat.redBits > 0 || isDepthStencilFormat); in setStorageImpl() 174 const angle::Format &textureFormat = vkFormat.getActualRenderableImageFormat(); in setStorageEGLImageTarget() local 176 VkImageAspectFlags aspect = vk::GetFormatAspectFlags(textureFormat); in setStorageEGLImageTarget()
|
/third_party/vk-gl-cts/external/openglcts/modules/gles3/ |
D | es3cNumberParsingTests.cpp | 359 …const auto textureFormat = tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_… in iterate() local 360 const auto transferFormat = glu::getTransferFormat(textureFormat); in iterate() 393 const auto pixelSize = tcu::getPixelSize(textureFormat); in iterate() 402 …tcu::ConstPixelBufferAccess fbAccess { textureFormat, RENDERTARGET_WIDTH, RENDERTARGET_HEIGHT,… in iterate()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fTextureGatherTests.cpp | 966 tcu::TextureFormat textureFormat, 1042 tcu::TextureFormat textureFormat, in TextureGatherCase() argument 1054 , m_textureFormat (textureFormat) in TextureGatherCase() 1065 isDepthFormat(textureFormat) ? tcu::TextureFormat::UNORM_INT8 : textureFormat.type)) in TextureGatherCase() 1160 …::genGatherFuncCall (GatherType gatherType, const tcu::TextureFormat& textureFormat, const GatherA… in genGatherFuncCall() argument 1182 if (isDepthFormat(textureFormat)) in genGatherFuncCall() 1231 const tcu::TextureFormat& textureFormat, in genProgramSources() argument 1237 const bool useNormalizedCoord = usePixCoord || isDepthFormat(textureFormat); in genProgramSources() 1239 const bool isShadow = isDepthFormat(textureFormat); in genProgramSources() 1240 const glu::DataType samplerType = getSamplerType(textureType, textureFormat); in genProgramSources() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | SamplerCore.cpp | 180 if(state.textureFormat.isSignedNormalized()) in sampleTexture() 1431 switch(state.textureFormat) in sampleTexel() 1502 switch(state.textureFormat) in sampleTexel() 1532 if(state.textureFormat == VK_FORMAT_R8G8B8A8_SINT || in sampleTexel() 1533 state.textureFormat == VK_FORMAT_A8B8G8R8_SINT_PACK32) in sampleTexel() 1563 switch(state.textureFormat) in sampleTexel() 1591 switch(state.textureFormat) in sampleTexel() 1600 if(state.textureFormat == VK_FORMAT_R8_SINT) in sampleTexel() 1653 else if(state.textureFormat == VK_FORMAT_A2B10G10R10_UNORM_PACK32) in sampleTexel() 1666 else if(state.textureFormat == VK_FORMAT_A2R10G10B10_UNORM_PACK32) in sampleTexel() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/glx/ |
D | PixmapSurfaceGLX.cpp | 26 int EGLTextureFormatToGLXTextureFormat(EGLint textureFormat) in EGLTextureFormatToGLXTextureFormat() argument 28 switch (textureFormat) in EGLTextureFormatToGLXTextureFormat()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/wgl/ |
D | PbufferSurfaceWGL.cpp | 22 EGLenum textureFormat, in PbufferSurfaceWGL() argument 32 mTextureFormat(textureFormat), in PbufferSurfaceWGL()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/wgl/ |
D | PbufferSurfaceWGL.cpp | 22 EGLenum textureFormat, in PbufferSurfaceWGL() argument 32 mTextureFormat(textureFormat), in PbufferSurfaceWGL()
|