diff options
| author | 2020-06-20 07:41:55 -0400 | |
|---|---|---|
| committer | 2020-06-20 22:14:32 -0400 | |
| commit | 1e65da971bf6edd5611e6e409ba1cc4f99e58655 (patch) | |
| tree | c845e59c2b1725fafce706ba7c40230f7e9d159d /src | |
| parent | Merge pull request #4099 from MerryMage/macOS-build (diff) | |
| download | yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar.gz yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.tar.xz yuzu-1e65da971bf6edd5611e6e409ba1cc4f99e58655.zip | |
gl_device: Check for GL_EXT_texture_shadow_lod
Diffstat (limited to 'src')
| -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() | |||
| 216 | has_shader_ballot = GLAD_GL_ARB_shader_ballot; | 216 | has_shader_ballot = GLAD_GL_ARB_shader_ballot; |
| 217 | has_vertex_viewport_layer = GLAD_GL_ARB_shader_viewport_layer_array; | 217 | has_vertex_viewport_layer = GLAD_GL_ARB_shader_viewport_layer_array; |
| 218 | has_image_load_formatted = HasExtension(extensions, "GL_EXT_shader_image_load_formatted"); | 218 | has_image_load_formatted = HasExtension(extensions, "GL_EXT_shader_image_load_formatted"); |
| 219 | has_texture_shadow_lod = HasExtension(extensions, "GL_EXT_texture_shadow_lod"); | ||
| 219 | has_astc = IsASTCSupported(); | 220 | has_astc = IsASTCSupported(); |
| 220 | has_variable_aoffi = TestVariableAoffi(); | 221 | has_variable_aoffi = TestVariableAoffi(); |
| 221 | has_component_indexing_bug = is_amd; | 222 | has_component_indexing_bug = is_amd; |
| @@ -245,6 +246,7 @@ Device::Device(std::nullptr_t) { | |||
| 245 | has_shader_ballot = true; | 246 | has_shader_ballot = true; |
| 246 | has_vertex_viewport_layer = true; | 247 | has_vertex_viewport_layer = true; |
| 247 | has_image_load_formatted = true; | 248 | has_image_load_formatted = true; |
| 249 | has_texture_shadow_lod = true; | ||
| 248 | has_variable_aoffi = true; | 250 | has_variable_aoffi = true; |
| 249 | } | 251 | } |
| 250 | 252 | ||
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: | |||
| 68 | return has_image_load_formatted; | 68 | return has_image_load_formatted; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | bool HasTextureShadowLod() const { | ||
| 72 | return has_texture_shadow_lod; | ||
| 73 | } | ||
| 74 | |||
| 71 | bool HasASTC() const { | 75 | bool HasASTC() const { |
| 72 | return has_astc; | 76 | return has_astc; |
| 73 | } | 77 | } |
| @@ -110,6 +114,7 @@ private: | |||
| 110 | bool has_shader_ballot{}; | 114 | bool has_shader_ballot{}; |
| 111 | bool has_vertex_viewport_layer{}; | 115 | bool has_vertex_viewport_layer{}; |
| 112 | bool has_image_load_formatted{}; | 116 | bool has_image_load_formatted{}; |
| 117 | bool has_texture_shadow_lod{}; | ||
| 113 | bool has_astc{}; | 118 | bool has_astc{}; |
| 114 | bool has_variable_aoffi{}; | 119 | bool has_variable_aoffi{}; |
| 115 | bool has_component_indexing_bug{}; | 120 | bool has_component_indexing_bug{}; |