summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_device.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-07-16 21:02:46 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-07-16 21:02:46 +0200
commita5a72cbd201489319856baaec88f02a6607423ae (patch)
treea260784d8810d6c3f982d77e7c7ebaa5dbf957c7 /src/video_core/renderer_opengl/gl_device.cpp
parentMerge pull request #4342 from lioncash/endian (diff)
downloadyuzu-a5a72cbd201489319856baaec88f02a6607423ae.tar
yuzu-a5a72cbd201489319856baaec88f02a6607423ae.tar.gz
yuzu-a5a72cbd201489319856baaec88f02a6607423ae.tar.bz2
yuzu-a5a72cbd201489319856baaec88f02a6607423ae.tar.lz
yuzu-a5a72cbd201489319856baaec88f02a6607423ae.tar.xz
yuzu-a5a72cbd201489319856baaec88f02a6607423ae.tar.zst
yuzu-a5a72cbd201489319856baaec88f02a6607423ae.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp
index c1f20f0ab..b97c9da15 100644
--- a/src/video_core/renderer_opengl/gl_device.cpp
+++ b/src/video_core/renderer_opengl/gl_device.cpp
@@ -212,6 +212,7 @@ Device::Device()
shader_storage_alignment = GetInteger<std::size_t>(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT);
max_vertex_attributes = GetInteger<u32>(GL_MAX_VERTEX_ATTRIBS);
max_varyings = GetInteger<u32>(GL_MAX_VARYING_VECTORS);
+ max_compute_shared_memory_size = GetInteger<u32>(GL_MAX_COMPUTE_SHARED_MEMORY_SIZE);
has_warp_intrinsics = GLAD_GL_NV_gpu_shader5 && GLAD_GL_NV_shader_thread_group &&
GLAD_GL_NV_shader_thread_shuffle;
has_shader_ballot = GLAD_GL_ARB_shader_ballot;
@@ -248,6 +249,7 @@ Device::Device(std::nullptr_t) {
shader_storage_alignment = 4;
max_vertex_attributes = 16;
max_varyings = 15;
+ max_compute_shared_memory_size = 0x10000;
has_warp_intrinsics = true;
has_shader_ballot = true;
has_vertex_viewport_layer = true;