mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-12 05:40:04 +00:00
video_core: Fix fragment shader interlock usage on OpenGL. (#7144)
This commit is contained in:
parent
13d02c14e0
commit
d4f31bc617
8 changed files with 69 additions and 14 deletions
|
@ -1234,10 +1234,11 @@ void FragmentModule::DefineExtensions() {
|
|||
out += "#extension GL_NV_fragment_shader_interlock : enable\n";
|
||||
out += "#define beginInvocationInterlock beginInvocationInterlockNV\n";
|
||||
out += "#define endInvocationInterlock endInvocationInterlockNV\n";
|
||||
} else if (profile.has_gl_intel_fragment_shader_interlock) {
|
||||
} else if (profile.has_gl_intel_fragment_shader_ordering) {
|
||||
// NOTE: Intel does not have an end function for this.
|
||||
out += "#extension GL_INTEL_fragment_shader_ordering : enable\n";
|
||||
out += "#define beginInvocationInterlock beginFragmentShaderOrderingINTEL\n";
|
||||
out += "#define endInvocationInterlock\n";
|
||||
out += "#define endInvocationInterlock()\n";
|
||||
} else {
|
||||
use_fragment_shader_interlock = false;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ struct Profile {
|
|||
bool has_gl_ext_framebuffer_fetch{};
|
||||
bool has_gl_arm_framebuffer_fetch{};
|
||||
bool has_gl_nv_fragment_shader_interlock{};
|
||||
bool has_gl_intel_fragment_shader_interlock{};
|
||||
bool has_gl_intel_fragment_shader_ordering{};
|
||||
bool has_gl_nv_fragment_shader_barycentric{};
|
||||
bool is_vulkan{};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue