diff options
| author | tedin7 <tommasoderosa94@gmail.com> | 2026-11-23 17:45:10 +0100 |
|---|---|---|
| committer | QemmHD <290605352+QemmHD@users.noreply.github.com> | 2026-11-24 05:10:18 -0500 |
| commit | 21f07a063ba0000cfeb8717075d28809056b3561 (patch) | |
| tree | a3dfc913e74e755cad045fad8a29541acdc89d58 /runtime/src/main.cpp | |
| parent | 21625bca8c675c62f9dbffc318ce6a59d57faf31 (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/main.cpp')
0 files changed, 0 insertions, 0 deletions