2021-07-17 17:38:46 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
kernel void f() {
|
|
|
|
int const a = 1;
|
|
|
|
int const b = 2;
|
2021-07-30 18:59:06 +00:00
|
|
|
int const r = as_type<int>((as_type<uint>(a) + as_type<uint>(b)));
|
2021-07-17 17:38:46 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|