summaryrefslogtreecommitdiffstats
path: root/servers/rendering/rendering_device_commons.h
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2024-03-12 14:42:01 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2024-03-12 14:42:01 +0100
commit49625beac257e868a30a3d7b41665f7d1419b2c0 (patch)
treedb5de7fcc94300f3795bd7c0d6dff849a2caacd0 /servers/rendering/rendering_device_commons.h
parentb18942d429c23112c3e01aa1649c1704eaf86d0d (diff)
downloadredot-engine-49625beac257e868a30a3d7b41665f7d1419b2c0.tar.gz
Ensure specialization constants come sorted from reflection
Diffstat (limited to 'servers/rendering/rendering_device_commons.h')
-rw-r--r--servers/rendering/rendering_device_commons.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/rendering_device_commons.h b/servers/rendering/rendering_device_commons.h
index 591752bc0e..28d641c879 100644
--- a/servers/rendering/rendering_device_commons.h
+++ b/servers/rendering/rendering_device_commons.h
@@ -912,6 +912,8 @@ public:
struct ShaderSpecializationConstant : public PipelineSpecializationConstant {
BitField<ShaderStage> stages;
+
+ bool operator<(const ShaderSpecializationConstant &p_other) const { return constant_id < p_other.constant_id; }
};
struct ShaderDescription {