Renderer/src/main/c/includes/fluid/dispatch/dispatcher.h
austin a6cc3addf7
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
e2e pressurecell test
2024-12-18 17:11:04 -05:00

42 lines
938 B
C

#ifndef FLUID_DISPATCH_H
#define FLUID_DISPATCH_H
#include "public.h"
#include "fluid/queue/chunk.h"
#include "fluid/env/environment.h"
/**
* Do not override dispatcher
*/
#define FLUID_DISPATCHER_OVERRIDE_NONE 0
/**
* Only dispatch to cellular
*/
#define FLUID_DISPATCHER_OVERRIDE_CELLULAR 1
/**
* Only dispatch to grid2
*/
#define FLUID_DISPATCHER_OVERRIDE_GRID2 2
/**
* Only dispatch to pressurecell
*/
#define FLUID_DISPATCHER_OVERRIDE_PRESSURECELL 3
/**
* Dispatches chunks to different simulation queues based on the chunk's properties
* @param numReadIn The number of chunks
* @param chunkViewC The array of chunks
* @param environment The environment storing the simulation queues
* @param override Overrides the queueing system to force all chunks into a given queue (ie for testing)
*/
LIBRARY_API void fluid_dispatch(int numReadIn, Chunk ** chunkViewC, Environment * environment, int override);
#endif