Ver Fonte

Merge pull request #89277 from RandomShaper/rdd_public_shader_desc

Make `ShaderDescription` and related types public
Rémi Verschelde há 1 ano atrás
pai
commit
ffc41fb76d
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      servers/rendering/rendering_device_commons.h

+ 2 - 0
servers/rendering/rendering_device_commons.h

@@ -878,6 +878,7 @@ protected:
 
 
 	static const char *SHADER_STAGE_NAMES[SHADER_STAGE_MAX];
 	static const char *SHADER_STAGE_NAMES[SHADER_STAGE_MAX];
 
 
+public:
 	struct ShaderUniform {
 	struct ShaderUniform {
 		UniformType type = UniformType::UNIFORM_TYPE_MAX;
 		UniformType type = UniformType::UNIFORM_TYPE_MAX;
 		bool writable = false;
 		bool writable = false;
@@ -925,6 +926,7 @@ protected:
 		Vector<ShaderStage> stages;
 		Vector<ShaderStage> stages;
 	};
 	};
 
 
+protected:
 	struct ShaderReflection : public ShaderDescription {
 	struct ShaderReflection : public ShaderDescription {
 		BitField<ShaderStage> stages;
 		BitField<ShaderStage> stages;
 		BitField<ShaderStage> push_constant_stages;
 		BitField<ShaderStage> push_constant_stages;