diff options
author | Peter Kim <pk15950@gmail.com> | 2021-07-23 18:11:22 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2021-07-23 18:12:17 +0300 |
commit | c41b93bda5328ce13faf7048dfd38708e6486b6a (patch) | |
tree | f544026d65acfaf3e4923ae2182ea374c5ae67af /intern/ghost/GHOST_Types.h | |
parent | eb434778511070238ec189c8929c9b267842606a (diff) |
XR: Fix for Viewport Denoising Artifacts
Addresses T76003. When using VR with Eevee and viewport denoising,
scene geometry could sometimes be occluded for one eye. Solution is
to use a separate GPUViewport/GPUOffscreen for each VR view instead
of reusing a single one for rendering.
Reviewed By: Julian Eisel, Clément Foucault
Differential Revision: http://developer.blender.org/D11858
Diffstat (limited to 'intern/ghost/GHOST_Types.h')
-rw-r--r-- | intern/ghost/GHOST_Types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h index ff93de4f203..ddebfa7e816 100644 --- a/intern/ghost/GHOST_Types.h +++ b/intern/ghost/GHOST_Types.h @@ -683,6 +683,10 @@ typedef struct GHOST_XrDrawViewInfo { /** Set if the buffer should be submitted with a SRGB transfer applied. */ char expects_srgb_buffer; + + /** The view that this info represents. Not necessarily the "eye index" (e.g. for quad view + * systems, etc). */ + char view_idx; } GHOST_XrDrawViewInfo; typedef struct GHOST_XrError { |