diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-06-20 13:41:55 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-06-21 04:14:32 +0200 |
commit | 1e65da971bf6edd5611e6e409ba1cc4f99e58655 (patch) | |
tree | c845e59c2b1725fafce706ba7c40230f7e9d159d /src/video_core/renderer_opengl | |
parent | Merge pull request #4099 from MerryMage/macOS-build (diff) | |
download | yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar.gz yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar.bz2 yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar.lz yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar.xz yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar.zst yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 2 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index b31d604e4..1011c7738 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -216,6 +216,7 @@ Device::Device() has_shader_ballot = GLAD_GL_ARB_shader_ballot; has_vertex_viewport_layer = GLAD_GL_ARB_shader_viewport_layer_array; has_image_load_formatted = HasExtension(extensions, "GL_EXT_shader_image_load_formatted"); + has_texture_shadow_lod = HasExtension(extensions, "GL_EXT_texture_shadow_lod"); has_astc = IsASTCSupported(); has_variable_aoffi = TestVariableAoffi(); has_component_indexing_bug = is_amd; @@ -245,6 +246,7 @@ Device::Device(std::nullptr_t) { has_shader_ballot = true; has_vertex_viewport_layer = true; has_image_load_formatted = true; + has_texture_shadow_lod = true; has_variable_aoffi = true; } diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h index 145347943..c86e709b1 100644 --- a/src/video_core/renderer_opengl/gl_device.h +++ b/src/video_core/renderer_opengl/gl_device.h @@ -68,6 +68,10 @@ public: return has_image_load_formatted; } + bool HasTextureShadowLod() const { + return has_texture_shadow_lod; + } + bool HasASTC() const { return has_astc; } @@ -110,6 +114,7 @@ private: bool has_shader_ballot{}; bool has_vertex_viewport_layer{}; bool has_image_load_formatted{}; + bool has_texture_shadow_lod{}; bool has_astc{}; bool has_variable_aoffi{}; bool has_component_indexing_bug{}; |