21 config.resolution_x, config.resolution_y, config.resolution_z),
22 Usage::VERTEX,
24 ,
m_res_x(std::max(config.resolution_x, 1U))
25 ,
m_res_y(std::max(config.resolution_y, 1U))
26 ,
m_res_z(std::max(config.resolution_z, 1U))
30{
31 std::visit([this](auto&& source) {
32 using Source = std::remove_cvref_t<
decltype(
source)>;
33 if constexpr (std::is_same_v<Source, Kinesis::SpatialField>) {
35 } else if constexpr (std::is_same_v<Source, std::filesystem::path>) {
38 } else {
41 }
42 },
43 std::move(config.source));
44
46 "ComputeMeshBuffer{}: {}x{}x{} grid, {:.1f} MB worst-case",
50}
#define MF_INFO(comp, ctx,...)
Kinesis::SpatialField m_field
static size_t worst_case_bytes(uint32_t res_x, uint32_t res_y, uint32_t res_z) noexcept
std::string m_field_shader
std::optional< Kinesis::FieldSource > m_field_expression
vk::DeviceSize get_size_bytes() const
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.