diff options
Diffstat (limited to 'servers/rendering/rendering_device_commons.h')
-rw-r--r-- | servers/rendering/rendering_device_commons.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/rendering_device_commons.h b/servers/rendering/rendering_device_commons.h index 688a6441a7..28d641c879 100644 --- a/servers/rendering/rendering_device_commons.h +++ b/servers/rendering/rendering_device_commons.h @@ -878,6 +878,7 @@ protected: static const char *SHADER_STAGE_NAMES[SHADER_STAGE_MAX]; +public: struct ShaderUniform { UniformType type = UniformType::UNIFORM_TYPE_MAX; bool writable = false; @@ -911,6 +912,8 @@ protected: struct ShaderSpecializationConstant : public PipelineSpecializationConstant { BitField<ShaderStage> stages; + + bool operator<(const ShaderSpecializationConstant &p_other) const { return constant_id < p_other.constant_id; } }; struct ShaderDescription { @@ -925,6 +928,7 @@ protected: Vector<ShaderStage> stages; }; +protected: struct ShaderReflection : public ShaderDescription { BitField<ShaderStage> stages; BitField<ShaderStage> push_constant_stages; |