mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 08:36:08 +00:00
Bug: tint:1013 Change-Id: I38fb8988e48ff5bbfc55f57e5e3fd3f9c3b361cd Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59662 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
19 lines
617 B
Plaintext
19 lines
617 B
Plaintext
bug/tint/453.wgsl:7:26 warning: use of deprecated intrinsic
|
|
let x_22 : vec4<u32> = textureLoad(Src, vec2<i32>(0, 0));
|
|
^^^^^^^^^^^
|
|
|
|
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
kernel void tint_symbol(texture2d<uint, access::read> tint_symbol_1 [[texture(0)]], texture2d<uint, access::write> tint_symbol_2 [[texture(1)]]) {
|
|
uint4 srcValue = 0u;
|
|
uint4 const x_22 = tint_symbol_1.read(uint2(int2(0, 0)));
|
|
srcValue = x_22;
|
|
uint const x_24 = srcValue.x;
|
|
uint const x_25 = (x_24 + 1u);
|
|
uint4 const x_27 = srcValue;
|
|
tint_symbol_2.write(x_27.xxxx, uint2(int2(0, 0)));
|
|
return;
|
|
}
|
|
|