Lines Matching refs:layerNdx

701 bool verifyLayerContent (tcu::TestLog& log, const TestType testType, const tcu::ConstPixelBufferAccess image, const int layerNdx, const int numLayers, const bool depthCheck, const bool stencilCheck)
705 const float variableBarRatio = static_cast<float>(layerNdx) / static_cast<float>(numLayers);
710 if (layerNdx == 0)
716 if (layerNdx == targetLayer)
723 return verifyImageSingleColoredRow(log, image, 0.5f, s_colors[layerNdx % DE_LENGTH_OF_ARRAY(s_colors)]);
727 if (layerNdx == 0)
735 const tcu::Vec4 layerColor( (layerNdx % 2) == 1 ? 1.0f : 0.5f,
736 ((layerNdx/2) % 2) == 1 ? 1.0f : 0.5f,
737 layerNdx == 0 ? 1.0f : 0.0f,
751 const float pass0depth = static_cast<float>(layerNdx + 1) / static_cast<float>(2 * numLayers);
752 const float pass1depth = static_cast<float>(layerNdx + 0) / static_cast<float>(2 * numLayers);
780 const tcu::Vec4 baseColor (s_colors[layerNdx % DE_LENGTH_OF_ARRAY(s_colors)]);
792 const tcu::Vec4 clearColor = secondaryCmdBufClearColors[layerNdx % DE_LENGTH_OF_ARRAY(secondaryCmdBufClearColors)];
793 const tcu::Vec4 quadColor = s_colors[layerNdx % DE_LENGTH_OF_ARRAY(s_colors)];
799 return verifyImageSingleColoredRow(log, image, 0.5f, secondDraw, layerNdx < numLayers / 2, layerNdx >= numLayers / 2);
829 for (int layerNdx = 0; layerNdx < image.getNumLayersOrSlices(); ++layerNdx)
831 const tcu::ConstPixelBufferAccess layerImage = image.getLayer(layerNdx);
833 log << tcu::TestLog::Message << "Verifying " << getLayerDescription(params.image.viewType, layerNdx) << tcu::TestLog::EndMessage;
835 if (verifyLayerContent(log, params.testType, layerImage, layerNdx, image.getNumLayersOrSlices(), depthCheck, stencilCheck))
964 << " for (int layerNdx = 0; layerNdx < " << numLayers << "; ++layerNdx) {\n"
965 << " const int colorNdx = layerNdx % " << DE_LENGTH_OF_ARRAY(s_colors) << ";\n"
968 << " gl_Layer = layerNdx;\n"
974 << " gl_Layer = layerNdx;\n"
980 << " gl_Layer = layerNdx;\n"
986 << " gl_Layer = layerNdx;\n"
995 src << " for (int layerNdx = 0; layerNdx < " << numLayers << "; ++layerNdx) {\n"
997 << " gl_Layer = layerNdx;\n"
1002 << " gl_Layer = layerNdx;\n"
1007 << " gl_Layer = layerNdx;\n"
1012 << " gl_Layer = layerNdx;\n"
1020 src << " for (int layerNdx = 0; layerNdx < " << numLayers << "; ++layerNdx) {\n"
1021 << " for (int colNdx = 0; colNdx <= layerNdx; ++colNdx) {\n"
1025 << " gl_Layer = layerNdx;\n"
1030 << " gl_Layer = layerNdx;\n"
1109 << " for (int layerNdx = 0; layerNdx < " << numLayers << "; ++layerNdx) {\n"
1110 << " const int colorNdx = layerNdx % " << DE_LENGTH_OF_ARRAY(s_colors) << ";\n"
1114 << " const float posZ = float(layerNdx + 1 - uInput.pass) / float(" << 2*numLayers << ");\n"
1117 << " gl_Layer = layerNdx;\n"
1123 << " gl_Layer = layerNdx;\n"
1129 << " gl_Layer = layerNdx;\n"
1135 << " gl_Layer = layerNdx;\n"
1397 for (deUint32 layerNdx = 0; layerNdx < numLayers; ++layerNdx)
1403 const deUint32 layer = (VK_IMAGE_VIEW_TYPE_3D == params.image.viewType) ? 0u : layerNdx;
1404 const deUint32 imageDepth = (VK_IMAGE_VIEW_TYPE_3D == params.image.viewType) ? layerNdx : 0u;
1407 const tcu::Vec4 clearColor = scaleColor(s_colors[layerNdx % DE_LENGTH_OF_ARRAY(s_colors)], 0.25f);
1409 const VkDeviceSize bufferOffset = layerNdx * bufferSliceSize;
1422 const VkDeviceSize bufferOffset = layerNdx * bufferSliceSize;
1423 const VkImageSubresourceLayers imageSubresource = makeImageSubresourceLayers(VK_IMAGE_ASPECT_DEPTH_BIT, 0u, layerNdx, 1u);
1435 const VkDeviceSize bufferOffset = layerNdx * bufferSliceSize;
1436 const VkImageSubresourceLayers imageSubresource = makeImageSubresourceLayers(VK_IMAGE_ASPECT_STENCIL_BIT, 0u, layerNdx, 1u);
1680 for (deUint32 layerNdx = 0; layerNdx < numLayers; ++layerNdx)
1682 const deUint32 imageDepth = (VK_IMAGE_VIEW_TYPE_3D == params.image.viewType) ? layerNdx : 0u;
1683 const deUint32 layer = (VK_IMAGE_VIEW_TYPE_3D == params.image.viewType) ? 0u : layerNdx;
1688 const tcu::Vec4 storageImageClearColor = secondaryCmdBufClearColors[layerNdx % DE_LENGTH_OF_ARRAY(secondaryCmdBufClearColors)];
1690 const VkDeviceSize bufferOffset = layerNdx * bufferSliceSize;