diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-10-01 21:55:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-10-01 22:25:21 +0300 |
commit | 4847bcdbe10b4f7f84657749a651c3af3a430b1c (patch) | |
tree | 6355f26e441708d362d5599635ba30122faee5f2 /source/blender/draw/intern/draw_manager.h | |
parent | 520d111eca55941dd0924998927ec1a994895f54 (diff) |
DRW: Split ViewProjectionMatrix in order to increase precisiontmp-drw-split-matrix
This also removes the need to compute the persmat and saves some memory
from the `ViewInfos` struct. This is needed to allow multiview support.
Initial testing found no major performance regression during vertex
heavy workload.
Differential Revision: https://developer.blender.org/D16125
Diffstat (limited to 'source/blender/draw/intern/draw_manager.h')
-rw-r--r-- | source/blender/draw/intern/draw_manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h index 67d0f79b83e..056f93d5d77 100644 --- a/source/blender/draw/intern/draw_manager.h +++ b/source/blender/draw/intern/draw_manager.h @@ -442,6 +442,9 @@ struct DRWView { struct DRWView *parent; ViewInfos storage; + + float4x4 persmat; + float4x4 persinv; /** Number of active clip planes. */ int clip_planes_len; /** Does culling result needs to be updated. */ |