|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Buffers::ComputeMeshBuffer::ComputeMeshBuffer | ( | const glm::vec3 & | bounds_min, |
| const glm::vec3 & | bounds_max, | ||
| uint32_t | res_x, | ||
| uint32_t | res_y, | ||
| uint32_t | res_z, | ||
| float | iso_level = 0.0F, |
||
| std::string | field_shader = "sdf_field_gyroid.comp" |
||
| ) |
Construct in GPU-field mode.
No SpatialField is evaluated on CPU. sdf_field.comp evaluates the field entirely on the GPU each dirty frame. Animate by calling get_field_processor()->set_time(t) from a metro callback.
Chain order: default — SdfPrepProcessor (allocates + zeroes grid/counter) pre — SdfFieldProcessor (dispatches sdf_field.comp → grid) flat[0] — SDFMeshProcessor (mc_emit → vertices) final — RenderProcessor
| bounds_min | World-space minimum corner. |
| bounds_max | World-space maximum corner. |
| res_x | Cell count along X (minimum 1). |
| res_y | Cell count along Y (minimum 1). |
| res_z | Cell count along Z (minimum 1). |
| iso_level | Isosurface threshold (default 0.0). |
| field_shader | Optional compute shader for field evaluation (default "sdf_field.comp"). |
Definition at line 43 of file ComputeMeshBuffer.cpp.
References MayaFlux::Journal::Buffers, MayaFlux::Buffers::VKBuffer::get_size_bytes(), MayaFlux::Journal::Init, m_res_x, m_res_y, m_res_z, and MF_INFO.
Here is the call graph for this function: