mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 11:15:46 +00:00
Bug: tint:1605 Change-Id: I6a94552110f4864dcd7fe011063fa35606104b48 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/103984 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
18 lines
454 B
Plaintext
18 lines
454 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
bool func_3(const constant int* const tint_symbol_1) {
|
|
for(int i = 0; (i < *(tint_symbol_1)); i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)))) {
|
|
for(int j = -1; (j == 1); j = as_type<int>((as_type<uint>(j) + as_type<uint>(1)))) {
|
|
return false;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
kernel void tint_symbol(const constant int* tint_symbol_2 [[buffer(0)]]) {
|
|
func_3(tint_symbol_2);
|
|
return;
|
|
}
|
|
|