6 const std::string& velocity_field)
9 { .name =
"velocity_in", .binding = 0, .field = velocity_field, .access =
FieldAccess::READ },
10 { .name =
"velocity_out", .binding = 1, .field = velocity_field, .access =
FieldAccess::WRITE },
16 , m_velocity_field(
std::move(velocity_field))
23 , m_velocity_field(
std::move(velocity_field))
@ READ
Resolves to VolumeGridBuffer::read_handle.
@ WRITE
Resolves to VolumeGridBuffer::write_handle.
void add_swap_field(std::string field)
Register a field to swap after each dispatch.
ComputeProcessor operating on named fields of a VolumeGridBuffer.
std::string m_velocity_field
static std::vector< FieldBinding > make_bindings(const std::string &velocity_field)
Build the binding table for the field name.
WallProcessor(std::string velocity_field, const std::string &shader_path)
Construct a free-slip wall stage.
Complete declarative description of a generated compute shader.