Lines Matching refs:parms

501 inline deUint32 getArraySize(const ImageParms& parms)
503 return (parms.imageType != VK_IMAGE_TYPE_3D) ? parms.extent.depth : 1u;
506 inline VkImageCreateFlags getCreateFlags(const ImageParms& parms)
508 if (parms.createFlags == VK_IMAGE_CREATE_FLAG_BITS_MAX_ENUM)
509 return parms.imageType == VK_IMAGE_TYPE_2D && parms.extent.depth % 6 == 0 ? VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT : 0;
511 return parms.createFlags;
514 inline VkExtent3D getExtent3D(const ImageParms& parms, deUint32 mipLevel = 0u)
516 const bool isCompressed = isCompressedFormat(parms.format);
517 const deUint32 blockWidth = (isCompressed) ? getBlockWidth(parms.format) : 1u;
518 const deUint32 blockHeight = (isCompressed) ? getBlockHeight(parms.format) : 1u;
525 (parms.extent.width >> mipLevel) * blockWidth,
526 (parms.imageType != VK_IMAGE_TYPE_1D) ? ((parms.extent.height >> mipLevel) * blockHeight) : 1u,
527 (parms.imageType == VK_IMAGE_TYPE_3D) ? parms.extent.depth : 1u,
577 void uploadImage (const tcu::ConstPixelBufferAccess& src, VkImage dst, const ImageParms& parms, const deUint32 mipLevels = 1u);
593 const ImageParms& parms,
597 const ImageParms& parms,
752 void CopiesAndBlittingTestInstance::uploadImageAspect (const tcu::ConstPixelBufferAccess& imageAccess, const VkImage& image, const ImageParms& parms, const deUint32 mipLevels)
763 const deUint32 arraySize = getArraySize(parms);
764 const VkExtent3D imageExtent = getExtent3D(parms);
800 const VkImageAspectFlags formatAspect = (m_params.extensionFlags & SEPARATE_DEPTH_STENCIL_LAYOUT) ? getAspectFlags(imageAccess.getFormat()) : getAspectFlags(parms.format);
853 const bool isCompressed = isCompressedFormat(parms.format);
854 const deUint32 blockWidth = (isCompressed) ? getBlockWidth(parms.format) : 1u;
855 const deUint32 blockHeight = (isCompressed) ? getBlockHeight(parms.format) : 1u;
893 void CopiesAndBlittingTestInstance::uploadImage (const tcu::ConstPixelBufferAccess& src, VkImage dst, const ImageParms& parms, const deUint32 mipLevels)
901 uploadImageAspect(depthTexture.getAccess(), dst, parms, mipLevels);
908 uploadImageAspect(stencilTexture.getAccess(), dst, parms, mipLevels);
912 uploadImageAspect(src, dst, parms, mipLevels);
1089 const ImageParms& parms,
1092 const tcu::TextureFormat imageFormat = getSizeCompatibleTcuTextureFormat(parms.format);
1093 de::MovePtr<tcu::TextureLevel> resultLevel (new tcu::TextureLevel(imageFormat, parms.extent.width >> mipLevel, parms.extent.height >> mipLevel, parms.extent.depth));
1099 tcu::TextureLevel depthTexture (mapCombinedToDepthTransferFormat(imageFormat), parms.extent.width >> mipLevel, parms.extent.height >> mipLevel, parms.extent.depth);
1100 readImageAspect(image, depthTexture.getAccess(), parms, mipLevel);
1106 tcu::TextureLevel stencilTexture (tcu::getEffectiveDepthStencilTextureFormat(imageFormat, tcu::Sampler::MODE_STENCIL), parms.extent.width >> mipLevel, parms.extent.height >> mipLevel, parms.extent.depth);
1107 readImageAspect(image, stencilTexture.getAccess(), parms, mipLevel);
1112 readImageAspect(image, resultLevel->getAccess(), parms, mipLevel);
3606 void uploadCompressedImage (const VkImage& image, const ImageParms& parms);
4907 void BlittingImages::uploadCompressedImage (const VkImage& image, const ImageParms& parms)
4920 const deUint32 arraySize = getArraySize(parms);
4923 parms.extent.width,
4924 (parms.imageType != VK_IMAGE_TYPE_1D) ? parms.extent.height : 1u,
4925 (parms.imageType == VK_IMAGE_TYPE_3D) ? parms.extent.depth : 1u,