mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 22:39:58 +00:00
glsl: Conditionally add GL_ARB_sparse_texture2
This commit is contained in:
parent
970fc39d98
commit
2a504b4765
1 changed files with 3 additions and 2 deletions
|
@ -294,8 +294,6 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitContext::SetupExtensions(std::string&) {
|
void EmitContext::SetupExtensions(std::string&) {
|
||||||
// TODO: track this usage
|
|
||||||
header += "#extension GL_ARB_sparse_texture2 : enable\n";
|
|
||||||
if (profile.support_gl_texture_shadow_lod) {
|
if (profile.support_gl_texture_shadow_lod) {
|
||||||
header += "#extension GL_EXT_texture_shadow_lod : enable\n";
|
header += "#extension GL_EXT_texture_shadow_lod : enable\n";
|
||||||
}
|
}
|
||||||
|
@ -331,6 +329,9 @@ void EmitContext::SetupExtensions(std::string&) {
|
||||||
stage != Stage::Geometry) {
|
stage != Stage::Geometry) {
|
||||||
header += "#extension GL_ARB_shader_viewport_layer_array : enable\n";
|
header += "#extension GL_ARB_shader_viewport_layer_array : enable\n";
|
||||||
}
|
}
|
||||||
|
if (info.uses_sparse_residency) {
|
||||||
|
header += "#extension GL_ARB_sparse_texture2 : enable\n";
|
||||||
|
}
|
||||||
if (UsesTyplessImage(info)) {
|
if (UsesTyplessImage(info)) {
|
||||||
header += "#extension GL_EXT_shader_image_load_formatted : enable\n";
|
header += "#extension GL_EXT_shader_image_load_formatted : enable\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue