#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
  texturecube<float, access::sample> arg_0;
  sampler arg_1;
  device float4* prevent_dce;
};

void textureSample_e53267(tint_module_vars_struct tint_module_vars) {
  float3 arg_2 = float3(1.0f);
  float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, arg_2);
  (*tint_module_vars.prevent_dce) = res;
}
fragment void fragment_main(texturecube<float, access::sample> arg_0 [[texture(0)]], sampler arg_1 [[sampler(0)]], device float4* prevent_dce [[buffer(0)]]) {
  tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0, .arg_1=arg_1, .prevent_dce=prevent_dce};
  textureSample_e53267(tint_module_vars);
}
