LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::IVertexBufferLayout Class Referenceabstract

Describes a vertex buffer layout. More...

#include <rendering_api.hpp>

Inherits LiteFX::Rendering::IBufferLayout.

Inherited by LiteFX::Rendering::Backends::DirectX12VertexBufferLayout, and LiteFX::Rendering::Backends::VulkanVertexBufferLayout.

Public Member Functions

virtual ~IVertexBufferLayout () noexcept=default
 
virtual Array< const BufferAttribute * > attributes () const noexcept=0
 Returns the vertex buffer attributes. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IBufferLayout
virtual ~IBufferLayout () noexcept=default
 
virtual size_t elementSize () const noexcept=0
 Returns the size of a single element within the buffer. More...
 
virtual const UInt32binding () const noexcept=0
 Returns the binding point, the buffer will be bound to. More...
 
virtual const BufferType & type () const noexcept=0
 Returns the buffer type of the buffer. More...
 

Detailed Description

Describes a vertex buffer layout.

See also
IVertexBuffer

Constructor & Destructor Documentation

◆ ~IVertexBufferLayout()

virtual LiteFX::Rendering::IVertexBufferLayout::~IVertexBufferLayout ( )
virtualdefaultnoexcept

Member Function Documentation

◆ attributes()

virtual Array< const BufferAttribute * > LiteFX::Rendering::IVertexBufferLayout::attributes ( ) const
pure virtualnoexcept

Returns the vertex buffer attributes.

Returns
The vertex buffer attributes.

Implemented in LiteFX::Rendering::Backends::DirectX12VertexBufferLayout, and LiteFX::Rendering::Backends::VulkanVertexBufferLayout.