mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 00:03:42 +00:00
Require GL_ARB_gpu_shader5 for gl_SampleMaskIn in quad write shader
This commit is contained in:
1 parent
7ef73f92ef
commit
d368cf2919
2 files changed
+9
-5
No files matched your search
@@ -25,6 +25,7 @@
|
||||
// outer code will hoist this up to just after the #version
|
||||
//#extension GL_ARB_derivative_control : enable
|
||||
//#extension GL_ARB_shader_image_load_store : require
|
||||
//#extension GL_ARB_gpu_shader5 : require
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Below shaders courtesy of Stephen Hill (@self_shadow), converted to glsl trivially
|
||||
|
||||
@@ -305,7 +305,7 @@ void GLReplay::InitDebugData()
|
||||
|
||||
GenerateGLSLShader(vs, eShaderGLSL, "", GetEmbeddedResource(glsl_blit_vert), 150);
|
||||
|
||||
if(HasExt[ARB_shader_image_load_store])
|
||||
if(HasExt[ARB_shader_image_load_store] && HasExt[ARB_gpu_shader5])
|
||||
{
|
||||
string defines = "";
|
||||
|
||||
@@ -333,10 +333,13 @@ void GLReplay::InitDebugData()
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCWARN("GL_ARB_shader_image_load_store not supported, disabling quad overdraw feature.");
|
||||
m_pDriver->AddDebugMessage(
|
||||
eDbgCategory_Portability, eDbgSeverity_Medium, eDbgSource_RuntimeWarning,
|
||||
"GL_ARB_shader_image_load_store not supported, disabling quad overdraw feature.");
|
||||
RDCWARN(
|
||||
"GL_ARB_shader_image_load_store/GL_ARB_gpu_shader5 not supported, disabling quad overdraw "
|
||||
"feature.");
|
||||
m_pDriver->AddDebugMessage(eDbgCategory_Portability, eDbgSeverity_Medium,
|
||||
eDbgSource_RuntimeWarning,
|
||||
"GL_ARB_shader_image_load_store/GL_ARB_gpu_shader5 not supported, "
|
||||
"disabling quad overdraw feature.");
|
||||
DebugData.quadoverdrawFSProg = 0;
|
||||
DebugData.quadoverdrawResolveProg = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user