diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-07-26 15:16:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-26 15:16:33 +0200 |
| commit | 2d2b85d400e341e9b62a215e7fc2f3f73c075fe7 (patch) | |
| tree | 9c3d269a382f3eef852bf4c65071b6935bdc7d6f /scene/resources/material.h | |
| parent | 1c63fbed4366803f1c63392e8d3f30955bd05736 (diff) | |
| parent | 886c2d9681e83d8e1aed2a793f5d8136c2a98c4e (diff) | |
| download | redot-engine-2d2b85d400e341e9b62a215e7fc2f3f73c075fe7.tar.gz | |
Merge pull request #62972 from Chaosus/shader_groups
Implement shader uniform groups/subgroups
Diffstat (limited to 'scene/resources/material.h')
| -rw-r--r-- | scene/resources/material.h | 11 |
1 files changed, 11 insertions, 0 deletions
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<StringName, Variant> 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; |
