diff options
| author | tedin7 <tommasoderosa94@gmail.com> | 2026-11-23 17:45:10 +0100 |
|---|---|---|
| committer | tedin7 <tommasoderosa94@gmail.com> | 2026-11-23 17:45:10 +0100 |
| commit | 86cd0c5f2a392f6637ff5724d2786b12084b28b7 (patch) | |
| tree | d4978b82267906ba0604c9266ef45036e4d05246 /runtime/src/vulkan_aftermath.cpp | |
| parent | 8575d36edc479218972497a7bded8651a42856c0 (diff) | |
d3d12: draw the console's rectangle lists (17, PSO type 19) and quad lists (19) as triangles
A rectangle list is three corners; the fourth is v2 + v3 - v1 for the position and every interpolant, after the vertex stage. A quad list is four vertices per quad. Vulkan has neither. A PSO with topology type 19 was refused (E_INVALIDARG) and the two list topologies drew as a plain triangle list.
Rectangle list: the PSO becomes a triangle-list pipeline with a generated geometry stage (src/rect_list_geometry.h), built from the vertex shader's own SPIR-V outputs, that emits the strip v1 v2 v3 v4. Quad list: one triangle fan per quad (0 1 2, 0 2 3), drawn with the index values 4q..4q+3 so the translated vertex id (VertexIndex - BaseVertex) is right; non-indexed draws read a shared 0, 1, 2, ... buffer reserved in the arena.
Facts from xvalkyrie (GPL-3.0, commit 53af7df77c10); no code copied.
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions