Skip to content

Instantly share code, notes, and snippets.

@kusma
Created June 21, 2018 16:32
Show Gist options
  • Save kusma/a6cf2feb8a20bcd8a84a5c776bd3ec0d to your computer and use it in GitHub Desktop.
Save kusma/a6cf2feb8a20bcd8a84a5c776bd3ec0d to your computer and use it in GitHub Desktop.
vrend crash
vrend_compile_shader: context error reported 22 "Xwayland" Illegal shader 0
shader failed to compile
0:16(37): error: if the first operand of >> is scalar, the second must be scalar as well
0:16(37): error: type mismatch
0:16(21): error: no matching function for call to `intBitsToFloat(error)'; candidates are:
0:16(21): error: float intBitsToFloat(int)
0:16(21): error: vec2 intBitsToFloat(ivec2)
0:16(21): error: vec3 intBitsToFloat(ivec3)
0:16(21): error: vec4 intBitsToFloat(ivec4)
0:16(21): error: type mismatch
0:16(15): error: cannot construct `float' from a non-numeric data type
GLSL:
#version 140
#extension GL_ARB_shader_bit_encoding : require
#extension GL_ARB_gpu_shader5 : require
out vec4 fsout_c0;
vec4 temp0[3];
uniform uvec4 fsconst0[2];
void main(void)
{
temp0[0].x = float((intBitsToFloat(ivec4(0,0,0,0)).x));
temp0[1].x = float((intBitsToFloat(ivec4(0,0,0,0)).x));
do {
temp0[2].x = float(uintBitsToFloat(uint(greaterThanEqual(ivec4(floatBitsToInt(temp0[1].xxxx)), ivec4((ivec4(32,32,32,32)))).x) * uint(0xffffffff)));
if (any(bvec4(floatBitsToUint(temp0[2].xxxx)))) {
break;
}
temp0[2].x = float(intBitsToFloat((gl_SampleMaskIn[0] >> floatBitsToInt(temp0[1].xxxx))).x);
temp0[2].x = float(uintBitsToFloat((floatBitsToUint(temp0[2].xxxx) & uvec4(ivec4(1,1,1,1)))).x);
temp0[2].x = float(uintBitsToFloat(uint(equal(uvec4(floatBitsToUint(temp0[2].xxxx)), uvec4(uvec4(ivec4(1,1,1,1)))).x) * uint(0xffffffff)));
if (any(bvec4(floatBitsToUint(temp0[2].xxxx)))) {
temp0[0].x = float(intBitsToFloat(ivec4((uvec4(floatBitsToUint(temp0[0].xxxx)) + uvec4(uvec4(ivec4(1,1,1,1)))))).x);
}
temp0[1].x = float(intBitsToFloat(ivec4((uvec4(floatBitsToUint(temp0[1].xxxx)) + uvec4(uvec4(ivec4(1,1,1,1)))))).x);
} while(true);
temp0[1].x = float(uintBitsToFloat(uint(lessThan(ivec4(floatBitsToInt(temp0[0].xxxx)), ivec4(ivec4(fsconst0[0].xxxx))).x) * uint(0xffffffff)));
temp0[0].x = float(uintBitsToFloat(uint(lessThan(ivec4(ivec4(fsconst0[1].xxxx)), ivec4(floatBitsToInt(temp0[0].xxxx))).x) * uint(0xffffffff)));
temp0[0].x = float(uintBitsToFloat((floatBitsToUint(temp0[1].xxxx) | floatBitsToUint(temp0[0].xxxx))).x);
if (any(bvec4(floatBitsToUint(temp0[0].xxxx)))) {
temp0[0] = vec4(((vec4(1,0,0,1))));
} else {
temp0[0] = vec4(((vec4(0,1,0,1))));
}
fsout_c0 = vec4(( temp0[0] ));
}
vrend_report_buffer_error: context error reported 22 "Xwayland" Illegal command buffer 15598593
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment