From e37202002276b679c5241b2678af612552b06d2c Mon Sep 17 00:00:00 2001 From: "James Helferty (NVIDIA)" Date: Tue, 10 Jun 2025 11:02:38 -0400 Subject: Fix IR layout of 3-element vectors in cbuffers for -fvk-use-dx-layout (#7282) * Better handling for 16-byte boundary of d3d cbuffer Fixes #6921 D3D cbuffers have slightly different packing rules that allow packing vectors into a 16-byte slot at element alignments, except when a field would cross a 16-byte boundary. In that case, we need to realign the field to the next 16-byte boundary. In particular, this impacts vec3s, which are not a power of two in size and thus require slightly different alignment logic, compared to std430 and std140. (Example: a float and float3 should fit together in that order in a single slot.) Adds test cases. Adds documentation page for GLSL target --- docs/user-guide/toc.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs/user-guide/toc.html') diff --git a/docs/user-guide/toc.html b/docs/user-guide/toc.html index 1621d1da5..f559fec31 100644 --- a/docs/user-guide/toc.html +++ b/docs/user-guide/toc.html @@ -260,6 +260,21 @@
  • Specialization Constants
  • +
  • GLSL-Specific Functionalities + +
  • Reference -- cgit v1.2.3