Home | History | Annotate | Download | only in vulkan

Lines Matching refs:vk

33 namespace vk
38 ImageWithMemory (const vk::DeviceInterface& vk,
39 const vk::VkDevice device,
40 vk::Allocator& allocator,
41 const vk::VkImageCreateInfo& imageCreateInfo,
42 const vk::MemoryRequirement memoryRequirement)
44 : m_image (createImage(vk, device, &imageCreateInfo))
45 , m_allocation (allocator.allocate(getImageMemoryRequirements(vk, device, *m_image), memoryRequirement))
47 VK_CHECK(vk.bindImageMemory(device, *m_image, m_allocation->getMemory(), m_allocation->getOffset()));
50 const vk::VkImage& get (void) const { return *m_image; }
51 const vk::VkImage& operator* (void) const { return get(); }
52 vk::Allocation& getAllocation (void) const { return *m_allocation; }
55 const vk::Unique<vk::VkImage> m_image;
56 const de::UniquePtr<vk::Allocation> m_allocation;
62 } // vk