Vookoo
Public Member Functions | List of all members
vku::UniformBuffer Class Reference

This class is a specialisation of GenericBuffer for uniform buffers. More...

#include <vku.hpp>

Inheritance diagram for vku::UniformBuffer:
vku::GenericBuffer

Public Member Functions

 UniformBuffer (const vk::Device &device, const vk::PhysicalDeviceMemoryProperties &memprops, size_t size)
 Device local uniform buffer.
 
- Public Member Functions inherited from vku::GenericBuffer
 GenericBuffer (vk::Device device, vk::PhysicalDeviceMemoryProperties memprops, vk::BufferUsageFlags usage, vk::DeviceSize size, vk::MemoryPropertyFlags memflags=vk::MemoryPropertyFlagBits::eDeviceLocal)
 
void updateLocal (const vk::Device &device, const void *value, vk::DeviceSize size) const
 For a host buffer, copy memory to the buffer object.
 
void upload (vk::Device device, const vk::PhysicalDeviceMemoryProperties &memprops, vk::CommandPool commandPool, vk::Queue queue, const void *value, vk::DeviceSize size) const
 
template<typename T >
void upload (vk::Device device, const vk::PhysicalDeviceMemoryProperties &memprops, vk::CommandPool commandPool, vk::Queue queue, const std::vector< T > &value) const
 
template<typename T >
void upload (vk::Device device, const vk::PhysicalDeviceMemoryProperties &memprops, vk::CommandPool commandPool, vk::Queue queue, const T &value) const
 
void barrier (vk::CommandBuffer cb, vk::PipelineStageFlags srcStageMask, vk::PipelineStageFlags dstStageMask, vk::DependencyFlags dependencyFlags, vk::AccessFlags srcAccessMask, vk::AccessFlags dstAccessMask, uint32_t srcQueueFamilyIndex, uint32_t dstQueueFamilyIndex) const
 
template<class Type , class Allocator >
void updateLocal (const vk::Device &device, const std::vector< Type, Allocator > &value) const
 
template<class Type >
void updateLocal (const vk::Device &device, const Type &value) const
 
void * map (const vk::Device &device) const
 
void unmap (const vk::Device &device) const
 
void flush (const vk::Device &device) const
 
void invalidate (const vk::Device &device) const
 
vk::Buffer buffer () const
 
vk::DeviceMemory mem () const
 
vk::DeviceSize size () const
 

Detailed Description

This class is a specialisation of GenericBuffer for uniform buffers.


The documentation for this class was generated from the following file: