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/draw/intern/draw_command.hh')
-rw-r--r--source/blender/draw/intern/draw_command.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_command.hh b/source/blender/draw/intern/draw_command.hh
index 03499d07041..ea92b54d2ec 100644
--- a/source/blender/draw/intern/draw_command.hh
+++ b/source/blender/draw/intern/draw_command.hh
@@ -84,6 +84,7 @@ enum class Type : uint8_t {
/** Commands stored as Undetermined in regular command buffer. */
Barrier,
Clear,
+ ClearMulti,
Dispatch,
DispatchIndirect,
Draw,
@@ -323,6 +324,13 @@ struct Clear {
std::string serialize() const;
};
+struct ClearMulti {
+ Span<float4> colors;
+
+ void execute() const;
+ std::string serialize() const;
+};
+
struct StateSet {
DRWState new_state;
int clip_plane_count;
@@ -352,6 +360,7 @@ union Undetermined {
DispatchIndirect dispatch_indirect;
Barrier barrier;
Clear clear;
+ ClearMulti clear_multi;
StateSet state_set;
StencilSet stencil_set;
};