glsl: Use textureGrad fallback when EXT_texture_shadow_lod is unsupported
This commit is contained in:
parent
d12f2b8ccf
commit
747b8556a4
4 changed files with 42 additions and 8 deletions
|
@ -282,8 +282,10 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
|
|||
void EmitContext::SetupExtensions(std::string&) {
|
||||
// TODO: track this usage
|
||||
header += "#extension GL_ARB_sparse_texture2 : enable\n"
|
||||
"#extension GL_EXT_texture_shadow_lod : enable\n"
|
||||
"#extension GL_EXT_shader_image_load_formatted : enable\n";
|
||||
if (profile.support_gl_texture_shadow_lod) {
|
||||
header += "#extension GL_EXT_texture_shadow_lod : enable\n";
|
||||
}
|
||||
if (info.uses_int64) {
|
||||
header += "#extension GL_ARB_gpu_shader_int64 : enable\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue