================
@@ -49,4 +57,6 @@ void main(uint3 id : SV_DispatchThreadID) {
   InterlockedOr(UOut[id], 1u);
   InterlockedXor(UOut[id], 1u);
   InterlockedMin(UOut[id], 1u);
+  InterlockedMax(Out[id.xy], 1);
----------------
bob80905 wrote:

Out is RWTexture2D<int> and id is uint3. Out[id] compiles but emits 
-Wvector-conversion "implicit conversion truncates vector". Out[id.xy] is the 
explicit, warning-free form and matches the pre-existing 
InterlockedAdd/InterlockedMin lines above it. UOut is RWTexture2DArray<uint>, 
which takes all 3 components, so it uses id. 

https://github.com/llvm/llvm-project/pull/222160
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to