diff options
| author | undeadhuman37 <undeadhuman37@users.noreply.github.com> | 2026-11-22 13:04:42 +0300 |
|---|---|---|
| committer | undeadhuman37 <undeadhuman37@users.noreply.github.com> | 2026-11-22 13:04:42 +0300 |
| commit | d1474ee1d7e9a165bdf3c05b0a143c6fbe75364f (patch) | |
| tree | 9bcf0a47ce581074247e7f315afc4b86a5253635 /runtime/src/pe_loader.cpp | |
| parent | c0ac5fd6518b3ba9fa66765b8b07099990dadd74 (diff) | |
tools: spirv_gs_to_compute.py runs a translated GS as a compute capture pass (SHADER-159)
Apple GPUs have no geometry stage. The tool rewrites a translated geometry
module into a GLCompute module, one invocation per input primitive: the
per-vertex inputs are read from a buffer, every OpEmitVertex copies the
outputs to a record buffer, and a meta buffer holds each primitive's vertex
count and strip ends, for an ordinary draw afterwards. --layout writes the
slot order and sizes.
gs_tri lowered this way, converted with SPIRV-Cross and run natively on an
Apple A18 Pro: 195/195 records exact for 65 random triangles, and the
captured fullscreen triangle drawn from the records matches all 4096
gradient pixels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions