Fix issue caused by this shader. The problem is that it makes all textures green. This…
- User
Fix issue caused by this shader. The problem is that it makes all textures green. This may be caused by hack for macos that changes Format_32_32_32 to Format_32_32_32_32 because MoltenVK doesn't support it. Shader: #version 450 #if defined(GL_ARB_gpu_shader_int64) #extension GL_ARB_gpu_shader_int64 : require #else #error No extension available for 64-bit integers. #endif #extension GL_EXT_scalar_block_layout : require layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
struct full_result_i32x2 { int _m0; int _m1; };
struct full_result_u32x2 { uint _m0; uint _m1; };
layout(push_constant, scalar) uniform AuxData { uint sr0; uint sr1; uvec4 buf_offsets0; uvec4 buf_offsets1; uvec4 ud_regs0; uvec4 ud_regs1; uvec4 ud_regs2; uvec4 ud_regs3; } push_data;
layout(set = 0, binding = 0) uniform usamplerBuffer texbuf_8; layout(set = 0, binding = 1) uniform usamplerBuffer texbuf_4; layout(set = 0, binding = 2) uniform writeonly uimageBuffer imgbuf_12;
void main() { vec4 _80 = uintBitsToFloat(texelFetch(texbuf_8, int(gl_WorkGroupID.x + bitfieldExtract(push_data.buf_offsets0.x, int(0u), int(6u))))); uint _84 = floatBitsToUint(_80.y); bool _87 = floatBitsToUint(_80.z) >= gl_LocalInvocationID.x; uint _89; if (_87) { _89 = gl_LocalInvocationID.x + _84; } else { _89 = _84; } if (_87) { uint _95 = gl_LocalInvocationID.x + floatBitsToUint(_80.x); if (_87 && (push_data.ud_regs0.x > _95)) { imageStore(imgbuf_12, int(_95 + bitfieldExtract(push_data.buf_offsets0.x, int(16u), int(6u))), floatBitsToUint(vec4(uintBitsToFloat(texelFetch(texbuf_4, int(_89 + bitfieldExtract(push_data.buf_offsets0.x, int(8u), int(6u))))).x, 0.0, 0.0, 0.0))); } } }
- Assistant