flushAlloc(vk, device, *vertexBufferAlloc);
}
- // Result buffer
- const VkDeviceSize resultBufferSizeBytes = sizeof(deUint32);
- const Unique<VkBuffer> resultBuffer (makeBuffer(vk, device, resultBufferSizeBytes, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT));
- const UniquePtr<Allocation> resultBufferAlloc (bindBuffer(vk, device, allocator, *resultBuffer, MemoryRequirement::HostVisible));
-
- {
- deUint32* const pData = static_cast<deUint32*>(resultBufferAlloc->getHostPtr());
-
- *pData = 0;
- flushAlloc(vk, device, *resultBufferAlloc);
- }
-
// Render result buffer (to retrieve color attachment contents)
const VkDeviceSize colorBufferSizeBytes = tcu::getPixelSize(mapVkFormat(colorFormat)) * m_renderSize.x() * m_renderSize.y();
const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSizeBytes, VK_BUFFER_USAGE_TRANSFER_DST_BIT));