sandbox
Loading...
Searching...
No Matches
sbx::graphics::typed_buffer< Type, Usage, Properties > Class Template Reference
Inheritance diagram for sbx::graphics::typed_buffer< Type, Usage, Properties >:
sbx::graphics::buffer sbx::utility::noncopyable

Public Types

using value_type = Type
 
using size_type = base_type::size_type
 
- Public Types inherited from sbx::graphics::buffer
using handle_type = VkBuffer
 
using size_type = VkDeviceSize
 

Public Member Functions

 typed_buffer (std::span< const Type > elements, VkMemoryPropertyFlags properties=0, VkBufferUsageFlags usage=0u)
 
 typed_buffer (size_type size, VkMemoryPropertyFlags properties=0, VkBufferUsageFlags usage=0u)
 
auto size () const noexcept -> VkDeviceSize override
 
auto size_in_bytes () const noexcept -> VkDeviceSize
 
- Public Member Functions inherited from sbx::graphics::buffer
 buffer (size_type size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, memory::observer_ptr< const void > memory=nullptr)
 
auto handle () const noexcept -> handle_type
 
 operator handle_type () const noexcept
 
auto address () const noexcept -> std::uint64_t
 
auto resize (const size_type new_size) -> void
 
virtual auto size () const noexcept -> size_type
 
virtual auto write (memory::observer_ptr< const void > data, size_type size, size_type offset=0) -> void
 
- Public Member Functions inherited from sbx::utility::noncopyable
 noncopyable (const noncopyable &)=delete
 
 noncopyable (noncopyable &&) noexcept=default
 
auto operator= (const noncopyable &) -> noncopyable &=delete
 
auto operator= (noncopyable &&) noexcept -> noncopyable &=default
 

Additional Inherited Members

- Protected Member Functions inherited from sbx::graphics::buffer
auto map () -> void
 
auto unmap () -> void
 
- Protected Attributes inherited from sbx::graphics::buffer
memory::observer_ptr< void > _mapped_memory
 

Member Function Documentation

◆ size()

template<typename Type , VkBufferUsageFlags Usage, VkMemoryPropertyFlags Properties>
auto sbx::graphics::typed_buffer< Type, Usage, Properties >::size ( ) const -> VkDeviceSize
inlineoverridevirtualnoexcept

Reimplemented from sbx::graphics::buffer.


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