{
const VkFormat format = colorImageFormatsToTest[imageFormatIndex];
const std::string testCaseName = getFormatCaseName(format);
+ const bool isCube = imageLayerParamsToTest[imageLayerParamsIndex].isCube;
const TestParams testParams =
{
true, // bool useSingleMipLevel;
VK_IMAGE_TYPE_2D, // VkImageType imageType;
format, // VkFormat format;
VK_IMAGE_TILING_OPTIMAL, // VkImageTiling tiling;
- { 200, 180, 1 }, // VkExtent3D extent;
+ { 200u, isCube ? 200u : 180u, 1u }, // VkExtent3D extent;
imageLayerParamsToTest[imageLayerParamsIndex].imageLayerCount, // deUint32 imageLayerCount;
imageLayerParamsToTest[imageLayerParamsIndex].imageViewRange, // LayerRange imageViewLayerRange;
makeClearColorValue(format, 0.2f, 0.1f, 0.7f, 0.8f), // VkClearValue initValue
},
imageLayerParamsToTest[imageLayerParamsIndex].clearLayerRange, // LayerRange clearLayerRange;
allocationKind, // AllocationKind allocationKind;
- imageLayerParamsToTest[imageLayerParamsIndex].isCube // bool isCube;
+ isCube // bool isCube;
};
colorAttachmentClearLayersGroup->addChild(new InstanceFactory1<ClearAttachmentTestInstance, TestParams>(testCtx, NODETYPE_SELF_VALIDATE, testCaseName, "Clear Color Attachment", testParams));
partialColorAttachmentClearLayersGroup->addChild(new InstanceFactory1<PartialClearAttachmentTestInstance, TestParams>(testCtx, NODETYPE_SELF_VALIDATE, testCaseName, "Partial Clear Color Attachment", testParams));
{
const VkFormat format = depthStencilImageFormatsToTest[imageFormatIndex];
const std::string testCaseName = getFormatCaseName(format);
+ const bool isCube = imageLayerParamsToTest[imageLayerParamsIndex].isCube;
const TestParams testParams =
{
true, // bool useSingleMipLevel;
VK_IMAGE_TYPE_2D, // VkImageType imageType;
format, // VkFormat format;
VK_IMAGE_TILING_OPTIMAL, // VkImageTiling tiling;
- { 200, 180, 1 }, // VkExtent3D extent;
+ { 200u, isCube ? 200u : 180u, 1u }, // VkExtent3D extent;
imageLayerParamsToTest[imageLayerParamsIndex].imageLayerCount, // deUint32 imageLayerCount;
imageLayerParamsToTest[imageLayerParamsIndex].imageViewRange, // LayerRange imageViewLayerRange;
makeClearValueDepthStencil(0.5f, 0x03), // VkClearValue initValue
},
imageLayerParamsToTest[imageLayerParamsIndex].clearLayerRange, // LayerRange clearLayerRange;
allocationKind, // AllocationKind allocationKind;
- imageLayerParamsToTest[imageLayerParamsIndex].isCube // bool isCube;
+ isCube // bool isCube;
};
depthStencilLayersGroup->addChild(new InstanceFactory1<ClearAttachmentTestInstance, TestParams>(testCtx, NODETYPE_SELF_VALIDATE, testCaseName, "Clear Depth/Stencil Attachment", testParams));
partialDepthStencilLayersGroup->addChild(new InstanceFactory1<PartialClearAttachmentTestInstance, TestParams>(testCtx, NODETYPE_SELF_VALIDATE, testCaseName, "Parital Clear Depth/Stencil Attachment", testParams));