mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
24 lines
336 B
Plaintext
24 lines
336 B
Plaintext
// language: metal1.0
|
|
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using metal::uint;
|
|
|
|
struct type_1 {
|
|
int member;
|
|
};
|
|
|
|
void function(
|
|
device type_1& unnamed
|
|
) {
|
|
int _e3 = unnamed.member;
|
|
unnamed.member = _e3 + 1;
|
|
return;
|
|
}
|
|
|
|
kernel void main_(
|
|
device type_1& unnamed [[user(fake0)]]
|
|
) {
|
|
function(unnamed);
|
|
}
|