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:
authorClément Foucault <foucault.clem@gmail.com>2022-11-13 18:08:33 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-11-13 18:16:26 +0300
commit930d14cc6203bf52f7a4f122336994bf47d2765b (patch)
tree7c5456c35de37c8da357339ae5ace4a5f917e587 /source/blender/draw/intern/draw_command.hh
parentf1466ce9a8e64606d0709b554937733dc3fb6ad9 (diff)
DRW: Manager: Finish / change implementation of `framebuffer_set` command
Use reference instead of direct pointer. This is because framebuffers often use temp textures and are configured later just before submission.
Diffstat (limited to 'source/blender/draw/intern/draw_command.hh')
-rw-r--r--source/blender/draw/intern/draw_command.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_command.hh b/source/blender/draw/intern/draw_command.hh
index 12c9916ee6d..03499d07041 100644
--- a/source/blender/draw/intern/draw_command.hh
+++ b/source/blender/draw/intern/draw_command.hh
@@ -120,7 +120,7 @@ struct ShaderBind {
};
struct FramebufferBind {
- GPUFrameBuffer *framebuffer;
+ GPUFrameBuffer **framebuffer;
void execute() const;
std::string serialize() const;
@@ -343,6 +343,7 @@ struct StencilSet {
union Undetermined {
ShaderBind shader_bind;
ResourceBind resource_bind;
+ FramebufferBind framebuffer_bind;
PushConstant push_constant;
Draw draw;
DrawMulti draw_multi;