Home | History | Annotate | Download | only in vulkan

Lines Matching refs:vk

34 namespace vk
39 BufferWithMemory (const vk::DeviceInterface& vk,
40 const vk::VkDevice device,
41 vk::Allocator& allocator,
42 const vk::VkBufferCreateInfo& bufferCreateInfo,
43 const vk::MemoryRequirement memoryRequirement)
45 : m_buffer (createBuffer(vk, device, &bufferCreateInfo))
46 , m_allocation (allocator.allocate(getBufferMemoryRequirements(vk, device, *m_buffer), memoryRequirement))
48 VK_CHECK(vk.bindBufferMemory(device, *m_buffer, m_allocation->getMemory(), m_allocation->getOffset()));
51 const vk::VkBuffer& get (void) const { return *m_buffer; }
52 const vk::VkBuffer& operator* (void) const { return get(); }
53 vk::Allocation& getAllocation (void) const { return *m_allocation; }
56 const vk::Unique<vk::VkBuffer> m_buffer;
57 const de::UniquePtr<vk::Allocation> m_allocation;
63 } // vk