namespace image
{
-Buffer::Buffer (const DeviceInterface& vk,
- const VkDevice device,
- Allocator& allocator,
- const VkBufferCreateInfo& bufferCreateInfo,
- const MemoryRequirement memoryRequirement)
-{
- m_buffer = createBuffer(vk, device, &bufferCreateInfo);
- m_allocation = allocator.allocate(getBufferMemoryRequirements(vk, device, *m_buffer), memoryRequirement);
- VK_CHECK(vk.bindBufferMemory(device, *m_buffer, m_allocation->getMemory(), m_allocation->getOffset()));
-}
-
Image::Image (const DeviceInterface& vk,
const VkDevice device,
Allocator& allocator,
, m_image ()
{}
+#ifndef CTS_USES_VULKANSC
SparseImage::SparseImage (const vk::DeviceInterface& vkd,
vk::VkDevice device,
vk::VkPhysicalDevice physicalDevice,
m_semaphore = createSemaphore(vkd, device);
allocateAndBindSparseImage(vkd, device, physicalDevice, vki, createInfo, m_semaphore.get(), sparseQueue, allocator, m_allocations, format, m_image.get());
}
+#endif // CTS_USES_VULKANSC
tcu::UVec3 getShaderGridSize (const ImageType imageType, const tcu::UVec3& imageSize)
{
{
VkImageViewUsageCreateInfo imageViewUsageCreateInfo =
{
- VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO_KHR, //VkStructureType sType;
+ VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO, //VkStructureType sType;
DE_NULL, //const void* pNext;
imageUsageFlags, //VkImageUsageFlags usage;
};