// Target GLSL 4.5. #version 450 core #define ATTRIBUTE_LOCATION(x) layout(location = x) #define FRAGMENT_OUTPUT_LOCATION(x) layout(location = x) #define FRAGMENT_OUTPUT_LOCATION_INDEXED(x, y) layout(location = x, index = y) #define UBO_BINDING(packing, x) layout(packing, binding = (x - 1)) #define SAMPLER_BINDING(x) layout(binding = x) #define TEXEL_BUFFER_BINDING(x) layout(binding = x) #define SSBO_BINDING(x) layout(binding = (x + 2)) #define VARYING_LOCATION(x) layout(location = x) #define FORCE_EARLY_Z layout(early_fragment_tests) in // hlsl to glsl function translation #define float2 vec2 #define float3 vec3 #define float4 vec4 #define uint2 uvec2 #define uint3 uvec3 #define uint4 uvec4 #define int2 ivec2 #define int3 ivec3 #define int4 ivec4 #define frac fract #define lerp mix #define API_D3D 1 UBO_BINDING(std140, 1) uniform PSBlock { int width; int height; int blur_radius; float bloom_strength; }; SAMPLER_BINDING(0) uniform sampler2DArray samp0; VARYING_LOCATION(0) in VertexData { float3 v_tex0; }; FRAGMENT_OUTPUT_LOCATION(0) out float4 ocol0; #define frag_coord gl_FragCoord void main() { int layer = int(v_tex0.z); int xs = width; int ys = height; int r = blur_radius; int2 pos = int2(frag_coord.xy); float4 str = float4(bloom_strength, bloom_strength, bloom_strength, bloom_strength); int x; int y; float4 count = float4(0.0,0.0,0.0,0.0); float4 col = float4(0.0,0.0,0.0,0.0); for (x = -r; x <= r; x++) { for (y = -r; y <= r; y++) { if (pos.x + x <= xs && pos.y + y <= ys) { count += float4(1.0,1.0,1.0,1.0); int3 coords = int3(int2(pos.x + x, pos.y + y), layer); col += tex0.Load(int4(coords, 0)); }}} ocol0 = col / count * str;} Failed to parse shader Shader Info Log: ERROR: 0:61: 'tex0' : undeclared identifier ERROR: 0:61: 'Load' : unknown swizzle selection ERROR: 0:61: 'Load' : unknown swizzle selection ERROR: 0:61: 'Load' : unknown swizzle selection ERROR: 0:61: 'Load' : vector swizzle selection out of range ERROR: 0:61: '' : compilation terminated ERROR: 6 compilation errors. No code generated. Dolphin Version: Dolphin [Bloom_Control_Qt6] 5.0-17408 Video Backend: Direct3D 11