aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/renderer_opengl/gl_device.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-23 01:39:21 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:39 -0400
commitfb166b5ff4b42279b2c63c69f5b5a35feafa259e (patch)
tree16c302ad248d949b76add9a12be62fe2cbb675e0 /src/video_core/renderer_opengl/gl_device.h
parentd8d5501459d6c8b4c39307d293b0f40834dce8f3 (diff)
shader: Emulate 64-bit integers when not supported
Useful for mobile and Intel Xe devices.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.h')
-rw-r--r--src/video_core/renderer_opengl/gl_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h
index 0c9d6fe31..0bd277d38 100644
--- a/src/video_core/renderer_opengl/gl_device.h
+++ b/src/video_core/renderer_opengl/gl_device.h
@@ -124,6 +124,10 @@ public:
return has_nv_gpu_shader_5;
}
+ bool HasShaderInt64() const {
+ return has_shader_int64;
+ }
+
bool HasAmdShaderHalfFloat() const {
return has_amd_shader_half_float;
}
@@ -172,6 +176,7 @@ private:
bool use_driver_cache{};
bool has_depth_buffer_float{};
bool has_nv_gpu_shader_5{};
+ bool has_shader_int64{};
bool has_amd_shader_half_float{};
bool has_sparse_texture_2{};
bool warp_size_potentially_larger_than_guest{};