blob: 46ce069b9f15fcbbd2e60ec41a42a43ee1b5e70d [file] [log] [blame]
//
// fragment_main
//
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device packed_int3* prevent_dce;
};
int3 firstTrailingBit_7496d6() {
int3 arg_0 = int3(1);
uint3 const v = as_type<uint3>(arg_0);
int3 res = as_type<int3>(select((select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u))) | (select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u))) | (select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u))) | (select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u))) | select(uint3(0u), uint3(1u), ((((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) >> select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u)))) & uint3(1u)) == uint3(0u))))))), uint3(4294967295u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) >> select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u)))) == uint3(0u))));
return res;
}
fragment void fragment_main(device packed_int3* prevent_dce [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce};
(*tint_module_vars.prevent_dce) = packed_int3(firstTrailingBit_7496d6());
}
//
// compute_main
//
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device packed_int3* prevent_dce;
};
int3 firstTrailingBit_7496d6() {
int3 arg_0 = int3(1);
uint3 const v = as_type<uint3>(arg_0);
int3 res = as_type<int3>(select((select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u))) | (select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u))) | (select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u))) | (select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u))) | select(uint3(0u), uint3(1u), ((((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) >> select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u)))) & uint3(1u)) == uint3(0u))))))), uint3(4294967295u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) >> select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u)))) == uint3(0u))));
return res;
}
kernel void compute_main(device packed_int3* prevent_dce [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce};
(*tint_module_vars.prevent_dce) = packed_int3(firstTrailingBit_7496d6());
}
//
// vertex_main
//
#include <metal_stdlib>
using namespace metal;
struct VertexOutput {
float4 pos;
int3 prevent_dce;
};
struct vertex_main_outputs {
float4 VertexOutput_pos [[position]];
int3 VertexOutput_prevent_dce [[user(locn0)]] [[flat]];
};
int3 firstTrailingBit_7496d6() {
int3 arg_0 = int3(1);
uint3 const v = as_type<uint3>(arg_0);
int3 res = as_type<int3>(select((select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u))) | (select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u))) | (select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u))) | (select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u))) | select(uint3(0u), uint3(1u), ((((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) >> select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u)))) & uint3(1u)) == uint3(0u))))))), uint3(4294967295u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) >> select(uint3(0u), uint3(2u), (((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) >> select(uint3(0u), uint3(4u), ((((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) >> select(uint3(0u), uint3(8u), (((v >> select(uint3(0u), uint3(16u), ((v & uint3(65535u)) == uint3(0u)))) & uint3(255u)) == uint3(0u)))) & uint3(15u)) == uint3(0u)))) & uint3(3u)) == uint3(0u)))) == uint3(0u))));
return res;
}
VertexOutput vertex_main_inner() {
VertexOutput out = {};
out.pos = float4(0.0f);
out.prevent_dce = firstTrailingBit_7496d6();
return out;
}
vertex vertex_main_outputs vertex_main() {
VertexOutput const v_1 = vertex_main_inner();
vertex_main_outputs tint_wrapper_result = {};
tint_wrapper_result.VertexOutput_pos = v_1.pos;
tint_wrapper_result.VertexOutput_prevent_dce = v_1.prevent_dce;
return tint_wrapper_result;
}