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

Implements IIndexBufferLayout for Vulkan. More...

#include <VulkanIndexBufferLayout.h>

Inheritance diagram for spark::render::vk::VulkanIndexBufferLayout:
spark::render::IIndexBufferLayout spark::render::IBufferLayout

Classes

struct  Impl
 

Public Member Functions

 VulkanIndexBufferLayout (IndexType type)
 Instantiate a new VulkanIndexBufferLayout for use with Vulkan.
 
 VulkanIndexBufferLayout (const VulkanIndexBufferLayout &other)=delete
 
 VulkanIndexBufferLayout (VulkanIndexBufferLayout &&other) noexcept=delete
 
VulkanIndexBufferLayoutoperator= (const VulkanIndexBufferLayout &other)=delete
 
VulkanIndexBufferLayoutoperator= (VulkanIndexBufferLayout &&other) noexcept=delete
 
std::size_t elementSize () const noexcept override
 Gets the size of a single element in the buffer.
 
unsigned binding () const noexcept override
 Gets the binding point the buffer will be bound to.
 
BufferType type () const noexcept override
 Gets the type of the buffer.
 
IndexType indexType () const noexcept override
 Gets the index type of the buffer.
 

Detailed Description

Implements IIndexBufferLayout for Vulkan.

Constructor & Destructor Documentation

◆ VulkanIndexBufferLayout()

spark::render::vk::VulkanIndexBufferLayout::VulkanIndexBufferLayout ( IndexType type)
explicit

Instantiate a new VulkanIndexBufferLayout for use with Vulkan.

Parameters
typeThe types of the indices in the index buffer.

Member Function Documentation

◆ binding()

unsigned spark::render::vk::VulkanIndexBufferLayout::binding ( ) const
nodiscardoverridevirtualnoexcept

Gets the binding point the buffer will be bound to.

Returns
The binding point the buffer will be bound to.

Implements spark::render::IBufferLayout.

◆ elementSize()

std::size_t spark::render::vk::VulkanIndexBufferLayout::elementSize ( ) const
nodiscardoverridevirtualnoexcept

Gets the size of a single element in the buffer.

Returns
The size of a single element in the buffer.

Implements spark::render::IBufferLayout.

◆ indexType()

IndexType spark::render::vk::VulkanIndexBufferLayout::indexType ( ) const
nodiscardoverridevirtualnoexcept

Gets the index type of the buffer.

Returns
The type of the indices in the buffer.

Implements spark::render::IIndexBufferLayout.

◆ type()

BufferType spark::render::vk::VulkanIndexBufferLayout::type ( ) const
nodiscardoverridevirtualnoexcept

Gets the type of the buffer.

Returns
A BufferType representing the type of the buffer.

Implements spark::render::IBufferLayout.