A fixed memory buffer, in which data are arranged within nonuniform grid cells.
More...
|
template<std::size_t Row, std::size_t I>
requires (Row < Rows && I < component_cells.size()) |
auto | get_component () noexcept |
| Gets the component as a mutable cell span.
|
|
template<std::size_t Row, std::size_t I>
requires (Row < Rows && I < component_cells.size()) |
auto | get_component () const noexcept |
| Gets the component as a const cell span.
|
|
template<std::size_t Row, std::size_t I>
requires (Row < Rows && I < component_cells.size()) |
void | set_component (component_byte_span< I, std::add_const > data) noexcept |
| Sets the data of a component.
|
|
template<std::size_t Row, std::size_t I>
requires (Row < Rows && I < component_cells.size()) |
void | set_component (component_span< I, std::add_const > data) noexcept |
| Sets the data of a component.
|
|
std::span< std::byte, byte_stride *Rows > | underlying_buffer () noexcept |
| Gets the underlying buffer as a mutable byte span.
|
|
std::span< const std::byte, byte_stride *Rows > | underlying_buffer () const noexcept |
| Gets the underlying buffer as a const byte span.
|
|
template<typename T, std::size_t Rows, std::size_t... ComponentCells>
class essence::nonuniform_grid_buffer< T, Rows, ComponentCells >
A fixed memory buffer, in which data are arranged within nonuniform grid cells.
- Template Parameters
-
T | The type of one single cell. |
Rows | The number of rows. |
ComponentCells | The numbers of the cells of all components across one single row. |