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

Describes a buffer layout. More...

#include <rendering_api.hpp>

Inherited by LiteFX::Rendering::IDescriptorLayout, LiteFX::Rendering::IIndexBufferLayout, and LiteFX::Rendering::IVertexBufferLayout.

Public Member Functions

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 buffer layout.

See also
IVertexBufferLayout, IIndexBufferLayout, IDescriptorLayout

Constructor & Destructor Documentation

◆ ~IBufferLayout()

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

Member Function Documentation

◆ binding()

virtual const UInt32 & LiteFX::Rendering::IBufferLayout::binding ( ) const
pure virtualnoexcept

Returns the binding point, the buffer will be bound to.

In GLSL, the binding point is identified by the binding keyword, whilst in HLSL the binding maps to a register.

Returns
The binding point, the buffer will be bound to.

Implemented in LiteFX::Rendering::Backends::DirectX12VertexBufferLayout, LiteFX::Rendering::Backends::DirectX12IndexBufferLayout, LiteFX::Rendering::Backends::DirectX12DescriptorLayout, LiteFX::Rendering::Backends::VulkanVertexBufferLayout, LiteFX::Rendering::Backends::VulkanIndexBufferLayout, and LiteFX::Rendering::Backends::VulkanDescriptorLayout.

◆ elementSize()

virtual size_t LiteFX::Rendering::IBufferLayout::elementSize ( ) const
pure virtualnoexcept

◆ type()