Przeglądaj źródła

Minor shader limit fix

Panagiotis Christopoulos Charitos 4 lat temu
rodzic
commit
c9be58d07d
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      AnKi/Shaders/Include/ClusteredShadingTypes.h

+ 6 - 0
AnKi/Shaders/Include/ClusteredShadingTypes.h

@@ -21,9 +21,15 @@ const U32 CLUSTER_OBJECT_TYPE_GLOBAL_ILLUMINATION_PROBE = 5u;
 const U32 CLUSTER_OBJECT_TYPE_COUNT = 6u; ///< Point and spot lights, refl and GI probes, decals and fog volumes.
 
 // Limits
+#if ANKI_CLUSTERED_SHADING_USE_64BIT
 const U32 MAX_VISIBLE_POINT_LIGHTS = 64u;
 const U32 MAX_VISIBLE_SPOT_LIGHTS = 64u;
 const U32 MAX_VISIBLE_DECALS = 64u;
+#else
+const U32 MAX_VISIBLE_POINT_LIGHTS = 32u;
+const U32 MAX_VISIBLE_SPOT_LIGHTS = 32u;
+const U32 MAX_VISIBLE_DECALS = 32u;
+#endif
 const U32 MAX_VISIBLE_FOG_DENSITY_VOLUMES = 16u;
 const U32 MAX_VISIBLE_REFLECTION_PROBES = 16u;
 const U32 MAX_VISIBLE_GLOBAL_ILLUMINATION_PROBES = 8u;