blob: 5e244a1160dca6a9a35761c49d50772eec9ffa2f [file] [log] [blame]
James Pricef4f55342024-06-12 03:02:19 +00001#include <metal_stdlib>
2using namespace metal;
3struct tint_module_vars_struct {
4 texture3d<float, access::write> arg_0;
5};
6struct vertex_main_outputs {
7 float4 tint_symbol [[position]];
8};
dan sinclairf1f381a2023-11-22 09:44:15 +00009
James Pricef4f55342024-06-12 03:02:19 +000010void textureStore_331aee(tint_module_vars_struct tint_module_vars) {
11 int3 arg_1 = int3(1);
12 float4 arg_2 = float4(1.0f);
13 float4 const v = arg_2;
14 tint_module_vars.arg_0.write(v, uint3(arg_1));
15}
16float4 vertex_main_inner(tint_module_vars_struct tint_module_vars) {
17 textureStore_331aee(tint_module_vars);
18 return float4(0.0f);
19}
20fragment void fragment_main(texture3d<float, access::write> arg_0 [[texture(0)]]) {
21 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
22 textureStore_331aee(tint_module_vars);
23}
24kernel void compute_main(texture3d<float, access::write> arg_0 [[texture(0)]]) {
25 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
26 textureStore_331aee(tint_module_vars);
27}
28vertex vertex_main_outputs vertex_main(texture3d<float, access::write> arg_0 [[texture(0)]]) {
29 tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0};
30 return vertex_main_outputs{.tint_symbol=vertex_main_inner(tint_module_vars)};
31}