From 8683b85c0494db99feb08b6efcdc26dfe006729f Mon Sep 17 00:00:00 2001 From: Darren Wihandi <65404740+fairywreath@users.noreply.github.com> Date: Fri, 16 May 2025 13:42:59 -0400 Subject: Fix HLSL ByteAddressBuffer Load* parameter integer type (#7117) * Fix HLSL ByteAddressBuffer Load* parameter integer type * Fix tests * Fix load with alignment function signature clash * Fix LoadAligned tests --- tests/compute/byte-address-buffer-align-error.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/compute/byte-address-buffer-align-error.slang') diff --git a/tests/compute/byte-address-buffer-align-error.slang b/tests/compute/byte-address-buffer-align-error.slang index 34300d7c3..11efa561c 100644 --- a/tests/compute/byte-address-buffer-align-error.slang +++ b/tests/compute/byte-address-buffer-align-error.slang @@ -17,7 +17,7 @@ void computeMain(uint3 threadId : SV_DispatchThreadID) { // CHECK: error 41300: invalid alignment `{{.*}}` specified for the byte address buffer resource with the element size of `{{.*}}` // CHECK: error 41300: invalid alignment `{{.*}}` specified for the byte address buffer resource with the element size of `{{.*}}` - buffer.Store(0, buffer.Load(1, 5)); + buffer.Store(0, buffer.LoadAligned(1, 5)); buffer.Store(1, buffer.Load(0), 3); } -- cgit v1.2.3