Lines Matching defs:width
247 void copyMemoryToImage (const std::vector<deUint8> testData, vk::VkImage image, deUint32 texelSize, const vk::VkImageSubresourceLayers subresourceLayers, deInt32 xOffset, deInt32 yOffset, deUint32 width, deUint32 height);
284 void HostImageCopyTestInstance::copyMemoryToImage (const std::vector<deUint8> testData, vk::VkImage image, deUint32 texelSize, const vk::VkImageSubresourceLayers subresourceLayers, deInt32 xOffset, deInt32 yOffset, deUint32 width, deUint32 height)
288 std::vector<deUint8> data (texelSize * width * height);
289 const deUint32 imageWidth = m_parameters.imageSize.width;
291 memcpy(&data[i * width * texelSize], &testData[((yOffset + i) * imageWidth + xOffset) * texelSize], width * texelSize);
300 vk::VkExtent3D extent = { width, height / regionsCount, 1 };
307 deUint32 dataOffset = width * (height / regionsCount * i) * texelSize;
353 const vk::VkExtent3D imageSize = { m_parameters.imageSize.width * (deUint32)dePow(2, m_parameters.mipLevel), m_parameters.imageSize.height * (deUint32)dePow(2, m_parameters.mipLevel), 1 };
354 const vk::VkExtent3D mipImageSize = { m_parameters.imageSize.width, m_parameters.imageSize.height, 1 };
356 const vk::VkRect2D renderArea = vk::makeRect2D(0, 0, mipImageSize.width, mipImageSize.height);
360 const auto sampledBufferCount = mipImageSize.width * mipImageSize.height * sampledNumChannels;
366 const auto outputBufferCount = mipImageSize.width * mipImageSize.height * outputNumChannels;
547 framebuffer = makeFramebuffer(vk, device, *renderPass, *outputImageView, renderArea.extent.width, renderArea.extent.height);
688 copyMemoryToImage(testData, sampledImage, sampledChannelSize * sampledNumChannels, sampledSubresourceLayers, 0, 0, mipImageSize.width, mipImageSize.height);
689 commandsLog << "vkCopyMemoryToImageEXT() with image " << sampledImage << ", xOffset (0), yOffset (0), width (" << mipImageSize.width << "), height (" << mipImageSize.height << ")\n";
692 deInt32Hash((deUint32)mipImageSize.width) ^
697 deInt32 xOffset = randomGen.getInt32() % (mipImageSize.width / 2);
699 deUint32 width = deMaxu32(randomGen.getUint32() % (mipImageSize.width / 2), 1u);
707 width = deMaxu32((width / blockWidth) * blockWidth, blockWidth);
711 copyMemoryToImage(testData, sampledImage, sampledChannelSize * sampledNumChannels, sampledSubresourceLayers, xOffset, yOffset, width, height);
712 commandsLog << "vkCopyMemoryToImageEXT() with image " << sampledImage << ", xOffset (" << xOffset << "), yOffset (" << yOffset << "), width (" << width << "), height (" << height << ")\n";
741 mipImageSize.width,
747 commandsLog << "vkCmdCopyBufferToImage() with image " << sampledImage << ", xOffset (" << copyRegion.imageOffset.x << "), yOffset (" << copyRegion.imageOffset.y << "), width (" << mipImageSize.width << "), height (" << mipImageSize.height << ")\n";
811 commandsLog << "vkCopyImageToMemoryEXT() with image " << sampledImage << ", xOffset (" << region.imageOffset.x << "), yOffset (" << region.imageOffset.y << "), width (" << mipImageSize.width << "), height (" << mipImageSize.height << ")\n";
837 commandsLog << "vkCopyMemoryToImageEXT() with image " << **sampledImageWithMemoryCopy << ", xOffset (" << toImageRegion.imageOffset.x << "), yOffset (" << toImageRegion.imageOffset.y << "), width (" << toImageRegion.imageExtent.width << "), height (" << toImageRegion.imageExtent.height << ")\n";
880 vk.cmdDispatch(*cmdBuffer, renderArea.extent.width, renderArea.extent.height, 1);
907 {renderArea.extent.width, renderArea.extent.height, 1} // VkExtent3D imageExtent;
910 commandsLog << "vkCmdCopyImageToBuffer() with image " << **outputImage << ", xOffset (" << imageOffset.x << "), yOffset (" << imageOffset.y << "), width (" << renderArea.extent.width << "), height (" << renderArea.extent.height << "\n";
916 tcu::ConstPixelBufferAccess resultBuffer = tcu::ConstPixelBufferAccess(outputFormat, renderArea.extent.width, renderArea.extent.height, 1, (const void*)colorOutputBuffer->getAllocation().getHostPtr());
920 const deUint32 paddedBufferSize = (mipImageSize.width + m_parameters.padding) * (mipImageSize.height + m_parameters.padding) * outputNumChannels * outputChannelSize;
921 const deUint32 memoryRowLength = (mipImageSize.width + m_parameters.padding);
931 vk::VkExtent3D extent = { mipImageSize.width, mipImageSize.height / m_parameters.regionsCount, 1 };
935 deUint32 dataOffset = (mipImageSize.width + m_parameters.padding) * offset.y * outputNumChannels * outputChannelSize;
967 for (deUint32 i = 0; i < mipImageSize.width; ++i)
971 deUint32 dstIndex = j * mipImageSize.width * (outputNumChannels * outputChannelSize) + i * (outputNumChannels * outputChannelSize) + k;
972 deUint32 srcIndex = j * (mipImageSize.width + m_parameters.padding) * (outputNumChannels * outputChannelSize) + i * (outputNumChannels * outputChannelSize) + k;
1004 m_parameters.imageSize.width,
1272 const auto bufferCount = m_size.width * m_size.height * m_size.depth * m_arrayLayers * numChannels;