From 886c2d9681e83d8e1aed2a793f5d8136c2a98c4e Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Wed, 13 Jul 2022 11:31:27 +0300 Subject: Implement shader uniform groups/subgroups --- scene/resources/material.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'scene/resources/material.h') diff --git a/scene/resources/material.h b/scene/resources/material.h index 905e604e95..8c04817c6b 100644 --- a/scene/resources/material.h +++ b/scene/resources/material.h @@ -84,6 +84,17 @@ class ShaderMaterial : public Material { HashMap param_cache; + struct UniformProp { + String str; + PropertyInfo info; + }; + + struct UniformPropComparator { + bool operator()(const UniformProp &p_a, const UniformProp &p_b) const { + return p_a.str.naturalnocasecmp_to(p_b.str) < 0; + } + }; + protected: bool _set(const StringName &p_name, const Variant &p_value); bool _get(const StringName &p_name, Variant &r_ret) const; -- cgit v1.2.3