SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::IBufferLayout Class Referenceabstract

Describes the layout of a buffer. More...

#include <Buffer.h>

Inheritance diagram for spark::render::IBufferLayout:
spark::render::IDescriptorLayout spark::render::IIndexBufferLayout spark::render::IVertexBufferLayout spark::render::vk::VulkanDescriptorLayout spark::render::vk::VulkanIndexBufferLayout spark::render::vk::VulkanVertexBufferLayout

Public Member Functions

virtual std::size_t elementSize () const noexcept=0
 Gets the size of a single element in the buffer.
 
virtual unsigned int binding () const noexcept=0
 Gets the binding point the buffer will be bound to.
 
virtual BufferType type () const noexcept=0
 Gets the type of the buffer.
 

Detailed Description

Describes the layout of a buffer.

Member Function Documentation

◆ binding()

virtual unsigned int spark::render::IBufferLayout::binding ( ) const
nodiscardpure virtualnoexcept

Gets the binding point the buffer will be bound to.

Returns
The binding point the buffer will be bound to.

Implemented in spark::render::vk::VulkanDescriptorLayout, spark::render::vk::VulkanIndexBufferLayout, and spark::render::vk::VulkanVertexBufferLayout.

◆ elementSize()

virtual std::size_t spark::render::IBufferLayout::elementSize ( ) const
nodiscardpure virtualnoexcept

Gets the size of a single element in the buffer.

Returns
The size of a single element in the buffer.

Implemented in spark::render::vk::VulkanDescriptorLayout, spark::render::vk::VulkanIndexBufferLayout, and spark::render::vk::VulkanVertexBufferLayout.

◆ type()

virtual BufferType spark::render::IBufferLayout::type ( ) const
nodiscardpure virtualnoexcept

Gets the type of the buffer.

Returns
A BufferType representing the type of the buffer.

Implemented in spark::render::vk::VulkanDescriptorLayout, spark::render::vk::VulkanIndexBufferLayout, and spark::render::vk::VulkanVertexBufferLayout.