diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-05 20:07:58 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-05 20:07:58 -0800 |
| commit | af035fb6da2a19ccc647515e9b1edf35777f8c89 (patch) | |
| tree | 6660e1b066e153946b54bda089eb6691582a1664 /tests | |
| parent | a88a7db9b3c215be890d4a9da6414959f9f9a3c1 (diff) | |
Add glsl implementation of Texture.InterlockedAddF32 (#3550)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hlsl-intrinsic/byte-address-buffer/byte-address-half-atomics.slang | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hlsl-intrinsic/byte-address-buffer/byte-address-half-atomics.slang b/tests/hlsl-intrinsic/byte-address-buffer/byte-address-half-atomics.slang index e8cd266d3..f53d38d74 100644 --- a/tests/hlsl-intrinsic/byte-address-buffer/byte-address-half-atomics.slang +++ b/tests/hlsl-intrinsic/byte-address-buffer/byte-address-half-atomics.slang @@ -4,7 +4,7 @@ // Disabled because validation layer doesn't like vector atomics, although nv driver does allow it. //DISABLED_TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -compute -profile cs_6_2 -render-features half -shaderobj -emit-spirv-directly -output-using-type //TEST:SIMPLE(filecheck=SPIRV):-target spirv -entry computeMain -stage compute -emit-spirv-directly -skip-spirv-validation - +//TEST:SIMPLE(filecheck=HLSL):-target hlsl -entry computeMain -profile cs_6_3 //TEST_INPUT:set tmpBuffer = ubuffer(data=[0 0 0 0], stride=4) RWByteAddressBuffer tmpBuffer; @@ -17,7 +17,7 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID) half originalValue; // SPIRV: OpAtomicFAddEXT - + // HLSL: NvInterlockedAddFp16x2 tmpBuffer.InterlockedAddF16(0, 1.0h, originalValue); tmpBuffer.InterlockedAddF16(2, 2.0h, originalValue); |
