LiteFX 0.3.1.2022
Computer Graphics Engine
|
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 UInt32 & | binding () 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... | |
Describes a buffer layout.
|
virtualdefaultnoexcept |
|
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.
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.
|
pure virtualnoexcept |
Returns the size of a single element within the buffer.
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.
|
pure virtualnoexcept |
Returns the buffer type of the buffer.
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.