Open sagaceilo opened 1 year ago
FWIW, I can see why this remains in the SPD samples. In fact, I would go one step further and suggest that all the CPU code be separated altogether. The SPD constants are bound to be sourced very differently in different engines since you may not need the workgroup offset support, multiple-slice operation, and whatnot. Not to mention that you might want to pack this data along with other data that's persistently mapped in the frame or something (it's not uncommon for framebuffer metadata to be stored somewhere and reused by other postprocessing work). As a final consideration, different renderers/engines have different ways to "glue" data on the host and device.
I think it would be better to move
To ffx_spd.h under a A_CPU define. That would make it more convinient of using just
In the implementation file. Currently they are hidden in example project file.