Lines Matching refs:imageSize
60 tcu::UVec3 getShaderGridSize(const ImageType imageType, const tcu::UVec3& imageSize, const deUint32 mipLevel)
62 const deUint32 mipLevelX = std::max(imageSize.x() >> mipLevel, 1u);
63 const deUint32 mipLevelY = std::max(imageSize.y() >> mipLevel, 1u);
64 const deUint32 mipLevelZ = std::max(imageSize.z() >> mipLevel, 1u);
72 return tcu::UVec3(imageSize.x(), 1u, 1u);
75 return tcu::UVec3(mipLevelX, imageSize.z(), 1u);
81 return tcu::UVec3(mipLevelX, mipLevelY, imageSize.z());
90 return tcu::UVec3(mipLevelX, mipLevelY, 6u * imageSize.z());
98 tcu::UVec3 getLayerSize(const ImageType imageType, const tcu::UVec3& imageSize)
105 return tcu::UVec3(imageSize.x(), 1u, 1u);
111 return tcu::UVec3(imageSize.x(), imageSize.y(), 1u);
114 return tcu::UVec3(imageSize.x(), imageSize.y(), imageSize.z());
122 deUint32 getNumLayers(const ImageType imageType, const tcu::UVec3& imageSize)
134 return imageSize.z();
140 return imageSize.z() * 6u;
148 deUint32 getNumPixels(const ImageType imageType, const tcu::UVec3& imageSize)
150 const tcu::UVec3 gridSize = getShaderGridSize(imageType, imageSize);
203 bool isImageSizeSupported(const ImageType imageType, const tcu::UVec3& imageSize, const vk::VkPhysicalDeviceLimits& limits)
208 return imageSize.x() <= limits.maxImageDimension1D;
210 return imageSize.x() <= limits.maxImageDimension1D &&
211 imageSize.z() <= limits.maxImageArrayLayers;
213 return imageSize.x() <= limits.maxImageDimension2D &&
214 imageSize.y() <= limits.maxImageDimension2D;
216 return imageSize.x() <= limits.maxImageDimension2D &&
217 imageSize.y() <= limits.maxImageDimension2D &&
218 imageSize.z() <= limits.maxImageArrayLayers;
220 return imageSize.x() <= limits.maxImageDimensionCube &&
221 imageSize.y() <= limits.maxImageDimensionCube;
223 return imageSize.x() <= limits.maxImageDimensionCube &&
224 imageSize.y() <= limits.maxImageDimensionCube &&
225 imageSize.z() <= limits.maxImageArrayLayers;
227 return imageSize.x() <= limits.maxImageDimension3D &&
228 imageSize.y() <= limits.maxImageDimension3D &&
229 imageSize.z() <= limits.maxImageDimension3D;