Message #1313693 - Error in shader compilation: info: %s %s %s

Kind #970: Error in shader compilation: info: %s %s %s

Game: GOD EATER 2 (NPJH50832_1.01)

Error in shader compilation: info: ERROR: 0:61: '&' does not operate on 'int' and 'int'
ERROR: 0:67: '&' does not operate on 'int' and 'int'
ERROR: 0:73: '&' does not operate on 'int' and 'int'
ERROR: 0:79: '&' does not operate on 'int' and 'int'
ERROR: 0:110: Use of undeclared identifier 'gl_InstanceID'
ERROR: 0:111: Use of undeclared identifier 'gl_InstanceID'
ERROR: 0:112: Use of undeclared identifier 'u'
ERROR: 0:112: Use of undeclared identifier 'v'
ERROR: 0:115: Use of undeclared identifier 'v'
ERROR: 0:115: Use of undeclared identifier 'u'
ERROR: 0:116: Use of undeclared identifier 'index'
ERROR: 0:117: Use of undeclared identifier 'index'
ERROR: 0:118: Use of undeclared identifier 'index'
ERROR: 0:126: Use of undeclared identifier 'patch_pos'
ERROR: 0:127: Use of undeclared identifier 'patch_pos'
ERROR: 0:134: Use of undeclared identifier 'patch_pos'
ERROR: 0:137: Use of undeclared identifier 'patch_pos'
ERROR: 0:140: Use of undeclared identifier 'patch_pos'
ERROR: 0:143: Use of undeclared identifier 'patch_pos'

00080000:00007b1c HWX C T N Fog Tex Spline TessC TessT TessRevN 
#define lowp
#define mediump
#define highp
attribute vec3 position;
attribute mediump vec3 normal;
attribute vec2 texcoord;
attribute lowp vec4 color0;
uniform mat4 u_proj;
uniform mat4 u_world;
uniform mat4 u_view;
uniform vec4 u_uvscaleoffset;
uniform lowp vec4 u_matambientalpha;
uniform highp vec2 u_fogcoef;
varying lowp vec4 v_color0;
varying mediump vec3 v_texcoord;
varying mediump float v_fogdepth;
uniform sampler2D u_tess_pos_tex;
uniform sampler2D u_tess_tex_tex;
uniform sampler2D u_tess_col_tex;
uniform int u_spline_count_u;
vec2 tess_sample(in vec2 points[16], in vec2 weights[4]) {
  vec2 pos = vec2(0.0);
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < 4; ++j) {
      float f = weights[j].x * weights[i].y;
      if (f != 0.0)
        pos = pos + f * points[i * 4 + j];
    }
  }
  return pos;
}
vec3 tess_sample(in vec3 points[16], in vec2 weights[4]) {
  vec3 pos = vec3(0.0);
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < 4; ++j) {
      float f = weights[j].x * weights[i].y;
      if (f != 0.0)
        pos = pos + f * points[i * 4 + j];
    }
  }
  return pos;
}
vec4 tess_sample(in vec4 points[16], in vec2 weights[4]) {
  vec4 pos = vec4(0.0);
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < 4; ++j) {
      float f = weights[j].x * weights[i].y;
      if (f != 0.0)
        pos = pos + f * points[i * 4 + j];
    }
  }
  return pos;
}
uniform int u_spline_count_v;
uniform int u_spline_type_u;
uniform int u_spline_type_v;
void spline_knot(ivec2 num_patches, ivec2 type, out vec2 knot[6], ivec2 patch_pos) {
  for (int i = 0; i < 6; ++i) {
    knot[i] = vec2(float(i + patch_pos.x - 2), float(i + patch_pos.y - 2));
  }
  if ((type.x & 1) != 0) {
    if (patch_pos.x <= 2)
      knot[0].x = 0.0;
    if (patch_pos.x <= 1)
      knot[1].x = 0.0;
  }
  if ((type.x & 2) != 0) {
    if (patch_pos.x >= (num_patches.x - 2))
      knot[5].x = float(num_patches.x);
    if (patch_pos.x == (num_patches.x - 1))
      knot[4].x = float(num_patches.x);
  }
  if ((type.y & 1) != 0) {
    if (patch_pos.y <= 2)
      knot[0].y = 0.0;
    if (patch_pos.y <= 1)
      knot[1].y = 0.0;
  }
  if ((type.y & 2) != 0) {
    if (patch_pos.y >= (num_patches.y - 2))
      knot[5].y = float(num_patches.y);
    if (patch_pos.y == (num_patches.y - 1))
      knot[4].y = float(num_patches.y);
  }
}
void spline_weight(vec2 t, in vec2 knot[6], out vec2 weights[4]) {
  vec2 t0 = (t - knot[0]);
  vec2 t1 = (t - knot[1]);
  vec2 t2 = (t - knot[2]);
  vec2 f30 = t0 / (knot[3] - knot[0]);
  vec2 f41 = t1 / (knot[4] - knot[1]);
  vec2 f52 = t2 / (knot[5] - knot[2]);
  vec2 f31 = t1 / (knot[3] - knot[1]);
  vec2 f42 = t2 / (knot[4] - knot[2]);
  vec2 f32 = t2 / (knot[3] - knot[2]);
  vec2 a = (1.0 - f30)*(1.0 - f31);
  vec2 b = (f31*f41);
  vec2 c = (1.0 - f41)*(1.0 - f42);
  vec2 d = (f42*f52);
  weights[0] = a - (a*f32);
  weights[1] = vec2(1.0) - a - b + ((a + b + c - vec2(1.0))*f32);
  weights[2] = b + ((vec2(1.0) - b - c - d)*f32);
  weights[3] = d*f32

Status: new. 1 hits from 2019-02-20 16:10:34 to 2019-02-20 16:10:34 UTC. Message #1313693.

Individual reports are stored since 2026-11-12, the newest 100 per message; none for this message yet. Older hits only exist as the counters above. Hover a cell for details.