Add statically disabled geometry shaders on mobile

This commit is contained in:
Wojtek Figat
2024-03-30 22:08:44 +01:00
parent 369c19bd5d
commit e1944bce96
17 changed files with 74 additions and 8 deletions

View File

@@ -1691,10 +1691,10 @@ bool GPUDeviceVulkan::Init()
#else
limits.HasTessellation = false;
#endif
#if PLATFORM_ANDROID || PLATFORM_IOS
limits.HasGeometryShaders = false; // Don't even try GS on mobile
#if GPU_ALLOW_GEOMETRY_SHADERS
limits.HasGeometryShaders = !!PhysicalDeviceFeatures.geometryShader && PhysicalDeviceLimits.maxBoundDescriptorSets > (uint32_t)DescriptorSet::Geometry;
#else
limits.HasGeometryShaders = !!PhysicalDeviceFeatures.geometryShader;
limits.HasGeometryShaders = false;
#endif
limits.HasInstancing = true;
limits.HasVolumeTextureRendering = true;