mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 17:29:57 -04:00
Draw task and mesh programs through compute passes when the mesh fallback is on.
A mesh draw becomes its record (the workgroup count, copied on the GPU for an indirect draw), the task dispatch, a scan that lists the mesh workgroups the tasks started, the mesh dispatch, and an instanced indirect draw with a generated vertex stage and the program's fragment stage. The compute modules bind the resources of the task and mesh stages, and their pipelines are made on a thread of their own while the program's draws are skipped. The indirect mesh ring and the texture pool marks are released at a probe's shutdown. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -100,6 +100,7 @@ size_t gfx_shader_warm_list(GfxWarmEnt **out); // malloc'd; recorde
|
||||
const GfxShader *gfx_shader_load_private(const uint8_t iid[32], int *owned);
|
||||
void gfx_shader_release_private(const GfxShader *s);
|
||||
const uint32_t *gfx_shader_spirv(const GfxShader *s, uint64_t *words);
|
||||
const char *gfx_shader_res_json(const GfxShader *s); // the translator's .res.json text
|
||||
int gfx_shader_write_code(const GfxShader *s, const char *path); // the guest program, from the stored inputs
|
||||
// A shader of the runtime's own (SPIR-V and a .res.json text as the translator writes them), outside the cache and
|
||||
// never freed; its key is the sha256 of both. NULL when the SPIR-V is malformed.
|
||||
|
||||
Reference in New Issue
Block a user