Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_shader_private.hh12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_private.hh b/source/blender/gpu/intern/gpu_shader_private.hh
index 65720e457d8..06e0b99b276 100644
--- a/source/blender/gpu/intern/gpu_shader_private.hh
+++ b/source/blender/gpu/intern/gpu_shader_private.hh
@@ -24,9 +24,13 @@
#include "BLI_string_ref.hh"
#include "GPU_shader.h"
+#include "GPU_uniform_buffer_types.h"
#include "gpu_shader_interface.hh"
+#include "gpu_uniform_buffer_private.hh"
#include "gpu_vertex_buffer_private.hh"
+#include <optional>
+
namespace blender {
namespace gpu {
@@ -45,6 +49,8 @@ class Shader {
/** For debugging purpose. */
char name[64];
+ std::optional<UniformBuiltinStruct> shader_struct;
+
public:
Shader(const char *name);
virtual ~Shader();
@@ -76,6 +82,12 @@ class Shader {
return name;
};
+ UniformBuiltinStruct *m_shader_struct;
+ void set_shader_struct(GPUUniformBuiltinStructType struct_type)
+ {
+ m_shader_struct = new UniformBuiltinStruct(struct_type);
+ }
+
protected:
void print_log(Span<const char *> sources,
char *log,