diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-10-30 09:05:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-30 09:05:40 -0700 |
| commit | 2a7644980035bfda0aab00f183154ab7e976ba63 (patch) | |
| tree | cc8f1cfc6f11dc31f6b3ab947d478d0fa85e904d /source/slang/hlsl.meta.slang | |
| parent | d7c09701975eb1032c245f0c3a762680cbe7a255 (diff) | |
Fix declarations of InterlockedMin/Max (#700)
Fixed #699
These functions were declared with an `in out` parameter (copy in, copy out) where they should have used `__ref` (true by-reference parameter passing).
Diffstat (limited to 'source/slang/hlsl.meta.slang')
| -rw-r--r-- | source/slang/hlsl.meta.slang | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index b2b2c5fc5..fb03dfcfc 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -712,16 +712,16 @@ __target_intrinsic(glsl, "($2 = $atomicMax($A, $1))") void InterlockedMax(__ref uint dest, uint value, out uint original_value);
__target_intrinsic(glsl, "$atomicMin($A, $1)")
-void InterlockedMin(in out int dest, int value);
+void InterlockedMin(__ref int dest, int value);
__target_intrinsic(glsl, "$atomicMin($A, $1)")
-void InterlockedMin(in out uint dest, uint value);
+void InterlockedMin(__ref uint dest, uint value);
__target_intrinsic(glsl, "($2 = $atomicMin($A, $1))")
-void InterlockedMin(in out int dest, int value, out int original_value);
+void InterlockedMin(__ref int dest, int value, out int original_value);
__target_intrinsic(glsl, "($2 = $atomicMin($A, $1))")
-void InterlockedMin(in out uint dest, uint value, out uint original_value);
+void InterlockedMin(__ref uint dest, uint value, out uint original_value);
__target_intrinsic(glsl, "$atomicOr($A, $1)")
void InterlockedOr(__ref int dest, int value);
|
