blob: 59434dbfbeaf2e6e3445aba7ac2ec51c203597f4 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device float3* prevent_dce;
};
void dpdxCoarse_f64d7b(tint_module_vars_struct tint_module_vars) {
float3 res = dfdx(float3(1.0f));
(*tint_module_vars.prevent_dce) = res;
}
fragment void fragment_main(device float3* prevent_dce [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce};
dpdxCoarse_f64d7b(tint_module_vars);
}