Home
last modified time | relevance | path

Searched refs:isAlphaOnly (Results 1 - 18 of 18) sorted by relevance

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
H A DvktImageMultisampleLoadStoreTests.cpp87 const bool isAlphaOnly = isAlphaOnlyFormat(caseDef.format); in initPrograms() local
88 const std::string formatQualifierStr = (isAlphaOnly ? "" : ", " + getShaderImageFormatQualifier(mapVkFormat(caseDef.format))); in initPrograms()
95 const int numColorComponents = (isAlphaOnly ? 4 : tcu::getNumUsedChannels(mapVkFormat(caseDef.format).order)); // Force 4 for A8_UNORM as per the spec. in initPrograms()
110 + ( (isAlphaOnly ? alpha : red) + ", " ) // For A8_UNORM we switch the alpha and red values. in initPrograms()
113 + (numColorComponents > 3 ? (isAlphaOnly ? red : alpha) : "1" ) in initPrograms()
118 + ( (isAlphaOnly ? "0" : red) + ", " ) // A8_UNORM should result in RGB (0, 0, 0). in initPrograms()
119 + ((numColorComponents > 1 && !isAlphaOnly) ? green + ", " : "0, " ) in initPrograms()
120 + ((numColorComponents > 2 && !isAlphaOnly) ? blue + ", " : "0, " ) in initPrograms()
121 + ((numColorComponents > 3) ? (isAlphaOnly ? red : alpha) : "1" ) in initPrograms()
128 << (isAlphaOnly in initPrograms()
[all...]
H A DvktImageLoadStoreTests.cpp372 const bool isAlphaOnly = (isAlphaOnlyFormat(format0) || isAlphaOnlyFormat(format1)); in formatsAreCompatible() local
373 return format0 == format1 || (mapVkFormat(format0).getPixelSize() == mapVkFormat(format1).getPixelSize() && !isAlphaOnly); in formatsAreCompatible()
/third_party/skia/docs/examples/
H A DPixmap_const_SkImageInfo_const_star.cpp7 SkDebugf("image alpha only = %s\n", image->isAlphaOnly() ? "true" : "false"); in REG_FIDDLE()
12 SkDebugf("copy alpha only = %s\n", copy->isAlphaOnly() ? "true" : "false"); in REG_FIDDLE()
H A Dinlinepixmapconstructor.cpp6 SkDebugf("image alpha only = %s\n", image->isAlphaOnly() ? "true" : "false"); in REG_FIDDLE()
10 SkDebugf("copy alpha only = %s\n", copy->isAlphaOnly() ? "true" : "false"); in REG_FIDDLE()
H A DImage_isAlphaOnly.cpp9 SkDebugf("alphaOnly = %s\n", image->isAlphaOnly() ? "true" : "false"); in REG_FIDDLE()
/third_party/skia/tests/
H A DImageIsOpaqueTest.cpp73 REPORTER_ASSERT(reporter, image->isAlphaOnly() == false); in DEF_TEST()
77 SkImageInfo::MakeA8(1, 1), (uint8_t*)&pmColors, 1})->isAlphaOnly() == true); in DEF_TEST()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
H A DvktSparseResourcesImageSparseResidency.cpp171 const auto isAlphaOnly = isAlphaOnlyFormat(m_format); in initPrograms() local
174 switch (formatDescription.channels[isAlphaOnly ? 3 : 0].type) in initPrograms()
190 (isAlphaOnly ? "1.0" : "float(int(gl_GlobalInvocationID.x) % 127) / 127.0") , in initPrograms()
193 (isAlphaOnly ? "float(int(gl_GlobalInvocationID.x) % 127) / 127.0" : "1.0"), in initPrograms()
219 const std::string formatQualifierStr = (isAlphaOnly ? "" : ", " + getShaderImageFormatQualifier(planeCompatibleFormat)); in initPrograms()
229 if (isAlphaOnly) in initPrograms()
330 const auto isAlphaOnly = isAlphaOnlyFormat(m_format); in iterate() local
340 createDeviceSupportingQueues(queueRequirements, formatIsR64(m_format), isAlphaOnly); in iterate()
864 iReferenceValue = (isAlphaOnly ? offsetX % 127u : 1u); in iterate()
865 fReferenceValue = (isAlphaOnly in iterate()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
H A DvktRenderPassMultisampleResolveTests.cpp541 const bool isAlphaOnly = isAlphaOnlyFormat(m_format); in getFormatThreshold() local
542 const deUint32 componentCount (isAlphaOnly ? 4u : tcu::getNumUsedChannels(tcuFormat.order)); in getFormatThreshold()
553 return Vec4((componentCount >= 1 && !isAlphaOnly) ? 1.5f * getRepresentableDiffUnorm(m_format, 0) : 0.0f, in getFormatThreshold()
554 (componentCount >= 2 && !isAlphaOnly) ? 1.5f * getRepresentableDiffUnorm(m_format, 1) : 0.0f, in getFormatThreshold()
555 (componentCount >= 3 && !isAlphaOnly) ? 1.5f * getRepresentableDiffUnorm(m_format, 2) : 0.0f, in getFormatThreshold()
1058 const bool isAlphaOnly = isAlphaOnlyFormat(m_format); in verify() local
1059 const int componentCount (isAlphaOnly ? 4 : tcu::getNumUsedChannels(format.order)); in verify()
1090 ? Vec4((isAlphaOnly ? 0.0f : clearValue), in verify()
1091 componentCount > 1 && !isAlphaOnly ? clearValue : 0.0f, in verify()
1092 componentCount > 2 && !isAlphaOnly in verify()
1403 const bool isAlphaOnly = isAlphaOnlyFormat(m_format); iterate() local
[all...]
H A DvktRenderPassMultisampleTests.cpp1661 const bool isAlphaOnly = isAlphaOnlyFormat(m_dstFormat); in iterateInternal() local
1662 const int componentCount (isAlphaOnly ? 4 : tcu::getNumUsedChannels(format.order)); in iterateInternal()
1961 const bool isAlphaOnly = isAlphaOnlyFormat(config.format); in init() local
1962 const int componentCount = (isAlphaOnly ? 4 : tcu::getNumUsedChannels(format.order)); in init()
/third_party/skia/src/gpu/
H A DGrColorInfo.h49 bool isAlphaOnly() const { return GrColorTypeIsAlphaOnly(fColorType); } in isAlphaOnly() function in GrColorInfo
/third_party/skia/src/image/
H A DSkImage.cpp578 bool SkImage::isAlphaOnly() const { return SkColorTypeIsAlphaOnly(fInfo.colorType()); } in isAlphaOnly() function in SkImage
605 (SkColorSpace::Equals(colorSpace, targetColorSpace.get()) || this->isAlphaOnly())) { in makeColorTypeAndColorSpace()
625 if (SkColorSpace::Equals(colorSpace, target.get()) || this->isAlphaOnly()) { in reinterpretColorSpace()
/third_party/skia/src/gpu/v1/
H A DDevice_drawTexture.cpp461 bool canUseTextureCoordsAsLocalCoords = !use_shader(image.isAlphaOnly(), paint) && !mf; in draw_image()
513 if (image.isAlphaOnly()) { in draw_image()
939 if (image->isAlphaOnly()) { in drawEdgeAAImageSet()
H A DDevice.cpp772 if (!info.isAlphaOnly() && (paint->getColor() & 0x00FFFFFF) != 0x00FFFFFF) { in drawViewLattice()
782 if (info.isAlphaOnly()) { in drawViewLattice()
/third_party/skia/src/pdf/
H A DSkPDFShader.cpp324 if (img->isAlphaOnly()) { in adjust_color()
H A DSkPDFDevice.cpp1493 if (imageSubset.image()->isAlphaOnly() && paint->getColorFilter()) { in internalDrawImageRect()
1509 SkASSERT(!imageSubset.image()->isAlphaOnly()); in internalDrawImageRect()
1512 if (imageSubset.image()->isAlphaOnly()) { in internalDrawImageRect()
/third_party/skia/include/core/
H A DSkImage.h661 bool isAlphaOnly() const;
/third_party/skia/src/shaders/
H A DSkImageShader.cpp299 if (fImage->isAlphaOnly()) { in asFragmentProcessor()
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkImageUtil.cpp3789 const bool isAlphaOnly = isAlphaOnlyFormat(format);
3791 const deUint32 componentCount (isAlphaOnly ? 4u : tcu::getNumUsedChannels(tcuFormat.order));
3793 if (isAlphaOnly && componentCount < 3u)

Completed in 43 milliseconds