summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-06-02 12:39:23 -0700
committerGitHub <noreply@github.com>2025-06-02 12:39:23 -0700
commit24d0c25f7de7b30ef436c90b2f02bb41165d99b7 (patch)
tree522ccf344b4c0c8e2ee9b1aded91e956de3b72ca /source
parent359066147c0abc4ca6ad2902cc3a817383d4bd28 (diff)
Fix coopvec::fill to use a simpler expression (#7253)
Diffstat (limited to 'source')
-rw-r--r--source/slang/hlsl.meta.slang4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang
index 86cb84d6e..73e69fdf3 100644
--- a/source/slang/hlsl.meta.slang
+++ b/source/slang/hlsl.meta.slang
@@ -24441,9 +24441,7 @@ struct CoopVec<T : __BuiltinArithmeticType, let N : int> : IArray<T>, IArithmeti
result:$$CoopVec<T, N> = OpCompositeConstructReplicateEXT $t;
};
case hlsl:
- for(int i = 0; i < N; ++i)
- this[i] = t;
- return;
+ __intrinsic_asm "$0 = $1";
case hlsl_coopvec_poc:
__intrinsic_asm ".Fill";
default: