Bad Ps 0000
Bad Ps 0000
#define ATTRIBUTE_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION_INDEXED(x, y)
#define UBO_BINDING(packing, x) layout(packing, binding = x)
#define SAMPLER_BINDING(x) layout(binding = x)
#define TEXEL_BUFFER_BINDING(x) layout(binding = x)
#define SSBO_BINDING(x) layout(binding = x)
#define IMAGE_BINDING(format, x) layout(format, binding = x)
#define VARYING_LOCATION(x)
// The rightmost shaded pixel is not included in the right bounding box register,
// such that width = right - left + 1. This has been verified on hardware.
int2 pos = iround(rawpos * cefbscale + offset);
#ifdef SUPPORTS_SUBGROUP_REDUCTION
if (CAN_USE_SUBGROUP_REDUCTION) {
int2 min_pos = IS_HELPER_INVOCATION ? int2(2147483647, 2147483647) : pos;
int2 max_pos = IS_HELPER_INVOCATION ? int2(-2147483648, -2147483648) : pos;
SUBGROUP_MIN(min_pos);
SUBGROUP_MAX(max_pos);
if (IS_FIRST_ACTIVE_INVOCATION)
UpdateBoundingBoxBuffer(min_pos, max_pos);
} else {
UpdateBoundingBoxBuffer(pos, pos);
}
#else
UpdateBoundingBoxBuffer(pos, pos);
#endif
}
FORCE_EARLY_Z;
FRAGMENT_OUTPUT_LOCATION(0) out vec4 ocol0;
VARYING_LOCATION(0) in VertexData {
float4 pos;
float4 colors_0;
float4 colors_1;
float3 tex0;
float clipDist0;
float clipDist1;
};
void main()
{
float4 rawpos = gl_FragCoord;
int4 c0 = color[1], c1 = color[2], c2 = color[3], prev = color[0];
int4 rastemp, textemp, konsttemp;
int3 comp16 = int3(1, 256, 0), comp24 = int3(1, 256, 256*256);
int alphabump=0;
int3 tevcoord=int3(0);
int2 wrappedcoord, tempcoord;
int4 tevin_a,tevin_b,tevin_c,tevin_d,tevin_temp;
// TEV stage 0
tevcoord.xy = fixpoint_uv0;
textemp = iround(255.0 * texture(samp[0], float3(float2(tevcoord.xy).xy *
texdim[0].xy, 0.0))).rgba;
tevin_a = int4(int3(0), 0) & 255;
tevin_b = int4(c0.rgb, c0.a) & 255;
tevin_c = int4(int3(255), textemp.a) & 255;
tevin_d = int4(int3(0), 0);
tevin_temp = (tevin_a<<8) + (tevin_b-tevin_a) * (tevin_c + (tevin_c>>7));
// tev combine
prev = (((tevin_d.rgba ) ) + ((((tevin_temp.rgba) ) + 128) >> 8)) ;
prev = clamp(prev, int4(0), int4(255));
prev = prev & 255;
ocol0 = float4(prev) / 255.0;
UpdateBoundingBox(rawpos.xy);
}
ERROR: 0:123: 'UpdateBoundingBoxBuffer' : no matching overloaded function found
ERROR: 1 compilation errors. No code generated.