upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authortedin7 <tommasoderosa94@gmail.com>2026-11-23 21:19:02 +0100
committerQemmHD <290605352+QemmHD@users.noreply.github.com>2026-11-24 05:10:18 -0500
commite3c22cc24693eb654be1bbea7cca32ebc62fd8b7 (patch)
tree62bb432cb9946d914ab7e2cab01f44ad1afac591 /runtime/src
parentabe64d495b0a22a78ccf9106f1980c2f550778e0 (diff)
d3d12: rect_list_geometry records that packed f16 attributes cannot be told apart from float outputs on the vertex side (comment only)
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/rect_list_geometry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/src/rect_list_geometry.h b/runtime/src/rect_list_geometry.h
index 86826317c..15d7368d3 100644
--- a/runtime/src/rect_list_geometry.h
+++ b/runtime/src/rect_list_geometry.h
@@ -92,6 +92,10 @@ inline std::vector<std::uint32_t> rect_list_geometry(const std::vector<std::uint
92 const Type& ptr = types[variable_type[id]]; 92 const Type& ptr = types[variable_type[id]];
93 const Type& vec = types[ptr.component]; 93 const Type& vec = types[ptr.component];
94 const Type& scalar = types[vec.component]; 94 const Type& scalar = types[vec.component];
95 // Known limit: every vec4 float output gets the plain v2 + v3 - v1 corner. The translator can export an attribute
96 // as the register's raw bits with two packed f16 halves (only the pixel shader knows, through per_vertex in
97 // tools/rdna2spirv.py), and nothing on the vertex side tells those apart, so such an output would get a wrong
98 // fourth corner. Fixing it needs the pixel shader's words here and a per-channel marker from the translator.
95 if (vec.op != op_type_vector || vec.count != 4 || scalar.op != op_type_float || scalar.width != 32) { 99 if (vec.op != op_type_vector || vec.count != 4 || scalar.op != op_type_float || scalar.width != 32) {
96 why = "a vertex output is not a vec4 float"; 100 why = "a vertex output is not a vec4 float";
97 return {}; 101 return {};