Blender Git Loki

Git Commits -> Revision 8527d84

Revision 8527d84 by Clément Foucault (master)
August 30, 2020, 11:11 (GMT)
GPUState: Move Scissor and Viewport state to framebuffer

This way it is way clearer what each viewport state is. There is
no more save and reset. The scissor test is also saved per
framebuffer.

The only rule to remember is that the viewport state (size and
origin) is reset for both the viewport and scissor when a texture
is attached or detached from an attachment slot.

Commit Details:

Full Hash: 8527d84d3588563123bfad7ccbdeeff62ee90bdb
Parent Commit: 4f395c8
Lines Changed: +169, -89

13 Modified Paths:

/source/blender/draw/engines/eevee/eevee_lightprobes.c (+7, -3) (Diff)
/source/blender/draw/engines/eevee/eevee_lookdev.c (+2, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_motion_blur.c (+2, -0) (Diff)
/source/blender/gpu/GPU_framebuffer.h (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_framebuffer.cc (+19, -14) (Diff)
/source/blender/gpu/intern/gpu_framebuffer_private.hh (+55, -0) (Diff)
/source/blender/gpu/intern/gpu_state.cc (+9, -28) (Diff)
/source/blender/gpu/intern/gpu_state_private.hh (+1, -13) (Diff)
/source/blender/gpu/opengl/gl_context.cc (+2, -0) (Diff)
/source/blender/gpu/opengl/gl_framebuffer.cc (+46, -13) (Diff)
/source/blender/gpu/opengl/gl_framebuffer.hh (+6, -0) (Diff)
/source/blender/gpu/opengl/gl_state.cc (+8, -16) (Diff)
/source/blender/gpu/opengl/gl_state.hh (+10, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021