summaryrefslogtreecommitdiff
path: root/tests/compute/matrix-layout-structured-buffer.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute/matrix-layout-structured-buffer.slang')
-rw-r--r--tests/compute/matrix-layout-structured-buffer.slang17
1 files changed, 4 insertions, 13 deletions
diff --git a/tests/compute/matrix-layout-structured-buffer.slang b/tests/compute/matrix-layout-structured-buffer.slang
index 36596424d..bb7dbb381 100644
--- a/tests/compute/matrix-layout-structured-buffer.slang
+++ b/tests/compute/matrix-layout-structured-buffer.slang
@@ -1,18 +1,9 @@
// matrix-layout-structured-buffer.slang
-// This test is set up to confirm that `StructuredBuffer` types are
-// always laid out column-major by fxc/dxc, even when row-major layout has been
-// requested globally.
-//
-// This behavior should be considered a bug in Slang because either:
-//
-// 1. we should report reflection layout information that acknowledges this behavior, or
-// 2. we should alter our HLSL output passed to fxc/dxc to provide consistent
-// behavior that matches our reflection data.
-//
-// For now this test exists to document the situation. It's output can/should
-// be updated if we decide to fix the underlying problem by taking option (2).
-//
+// This test confirms that we apply the matrix layout
+// mode requested by the user, even in the case of structured
+// buffers of matrices, where fxc/dxc do *not* respect
+// the matrix layout mode by default.
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -xslang -matrix-layout-row-major
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -xslang -matrix-layout-column-major