summaryrefslogtreecommitdiff
path: root/drivers/gles3/storage/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gles3/storage/config.h')
-rw-r--r--drivers/gles3/storage/config.h63
1 files changed, 23 insertions, 40 deletions
diff --git a/drivers/gles3/storage/config.h b/drivers/gles3/storage/config.h
index bb4352ce9a..b83c83f425 100644
--- a/drivers/gles3/storage/config.h
+++ b/drivers/gles3/storage/config.h
@@ -34,7 +34,7 @@
#ifdef GLES3_ENABLED
#include "core/string/ustring.h"
-#include "core/templates/set.h"
+#include "core/templates/hash_set.h"
// This must come first to avoid windows.h mess
#include "platform_config.h"
@@ -51,51 +51,34 @@ private:
static Config *singleton;
public:
- bool use_nearest_mip_filter;
- bool use_skeleton_software;
-
- int max_vertex_texture_image_units;
- int max_texture_image_units;
- int max_texture_size;
- int max_uniform_buffer_size;
+ bool use_nearest_mip_filter = false;
+ bool use_skeleton_software = false;
+ bool use_depth_prepass = true;
+ bool use_rgba_2d_shadows = false;
+
+ int max_vertex_texture_image_units = 0;
+ int max_texture_image_units = 0;
+ int max_texture_size = 0;
+ int max_uniform_buffer_size = 0;
+ int max_renderable_elements = 0;
+ int max_renderable_lights = 0;
+ int max_lights_per_object = 0;
// TODO implement wireframe in OpenGL
// bool generate_wireframes;
- Set<String> extensions;
-
- bool float_texture_supported;
- bool s3tc_supported;
- bool latc_supported;
- bool rgtc_supported;
- bool bptc_supported;
- bool etc_supported;
- bool etc2_supported;
- bool srgb_decode_supported;
-
- bool keep_original_textures;
-
- bool force_vertex_shading;
-
- bool use_rgba_2d_shadows;
- bool use_rgba_3d_shadows;
+ HashSet<String> extensions;
- bool support_32_bits_indices;
- bool support_write_depth;
- bool support_half_float_vertices;
- bool support_npot_repeat_mipmap;
- bool support_depth_cubemaps;
- bool support_shadow_cubemaps;
- bool support_anisotropic_filter;
- float anisotropic_level;
+ bool float_texture_supported = false;
+ bool s3tc_supported = false;
+ bool rgtc_supported = false;
+ bool bptc_supported = false;
+ bool etc2_supported = false;
- GLuint depth_internalformat;
- GLuint depth_type;
- GLuint depth_buffer_internalformat;
+ bool force_vertex_shading = false;
- // in some cases the legacy render didn't orphan. We will mark these
- // so the user can switch orphaning off for them.
- bool should_orphan = true;
+ bool support_anisotropic_filter = false;
+ float anisotropic_level = 0.0f;
static Config *get_singleton() { return singleton; };
@@ -107,4 +90,4 @@ public:
#endif // GLES3_ENABLED
-#endif // !CONFIG_GLES3_H
+#endif // CONFIG_GLES3_H