VPP  0.7
A high-level modern C++ API for Vulkan
Public Member Functions | List of all members
vpp::VertexBufferView Class Reference

Buffer view for vertex buffers. More...

#include <vppBufferView.hpp>

Public Member Functions

 VertexBufferView ()
 Constructs null reference.
 
template<class BufferT , class MemoryT >
 VertexBufferView (const MemoryBinding< BufferT, MemoryT > &binding, VkDeviceSize offset=0)
 Constructs view object for provided buffer (bound to memory).
 
const Bufbuffer () const
 Retrieves a reference to the buffer.
 
VkDeviceSize offset () const
 Retrieves the starting offset of the slice.
 

Detailed Description

Buffer view for vertex buffers.

A buffer view is auxiliary object that acts as an interface between the buffer and the binding point in the pipeline. In case of vertex buffers, the view is constructed on VPP level only, there is no corresponding Vulkan object.

The view can also define a slice of the buffer. In such case you specify only start index, as the size is determined by the draw command.

VertexBufferView may be deleted after binding.

This object is reference-counted and may be passed by value.


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