From 66301ab9068c5705e5a2bcbf2eaadfb28e8bb084 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 31 Jul 2025 15:23:13 +0800 Subject: msvc style bitfield packing (#7963) Closes https://github.com/shader-slang/slang/issues/3646 New tests rather than just adding another TEST line to existing tests so that we get the msvc- prefix in the output of slang-test --- docs/command-line-slangc-reference.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/command-line-slangc-reference.md') diff --git a/docs/command-line-slangc-reference.md b/docs/command-line-slangc-reference.md index 8cba2107f..650ab867a 100644 --- a/docs/command-line-slangc-reference.md +++ b/docs/command-line-slangc-reference.md @@ -361,6 +361,11 @@ Include additional type conformance during linking for dynamic dispatch. Emit reflection data in JSON format to a file. + +### -msvc-style-bitfield-packing +Pack bitfields according to MSVC rules (msb first, new field when underlying type size changes) rather than gcc-style (lsb first) + + ## Target -- cgit v1.2.3