9 : m_res_x(
std::max(res_x, 1U))
10 , m_res_y(
std::max(res_y, 1U))
11 , m_res_z(
std::max(res_z, 1U))
36 std::memset(
m_counter_buf->get_mapped_ptr(), 0,
sizeof(uint32_t));
ProcessingToken m_processing_token
void on_attach(const std::shared_ptr< Buffer > &buffer) override
Called when this processor is attached to a buffer.
uint32_t corner_count() const noexcept
SDFPrepProcessor(uint32_t res_x, uint32_t res_y, uint32_t res_z)
void set_resolution(uint32_t res_x, uint32_t res_y, uint32_t res_z)
Rebuild owned buffers to match a new resolution.
std::shared_ptr< VKBuffer > m_counter_buf
std::shared_ptr< VKBuffer > m_grid_buf
void processing_function(const std::shared_ptr< Buffer > &buffer) override
The core processing function that must be implemented by derived classes.
void ensure_initialized(const std::shared_ptr< VKBuffer > &buffer)
@ HOST_STORAGE
Host-visible storage buffer (eStorageBuffer + eHostVisible|eHostCoherent)
Interface * get_service()
Query for a backend service.
static BackendRegistry & instance()
Get the global registry instance.
@ GRAPHICS_BACKEND
Standard graphics processing backend configuration.
@ UNKNOWN
Unknown or undefined modality.
Backend buffer management service interface.