Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/xr/intern/wm_xr_intern.h
| Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | typedef struct wmXrRuntimeData { | ||||
| wmWindow *session_root_win; | wmWindow *session_root_win; | ||||
| /** Although this struct is internal, RNA gets a handle to this for state information queries. */ | /** Although this struct is internal, RNA gets a handle to this for state information queries. */ | ||||
| wmXrSessionState session_state; | wmXrSessionState session_state; | ||||
| wmXrSessionExitFn exit_fn; | wmXrSessionExitFn exit_fn; | ||||
| } wmXrRuntimeData; | } wmXrRuntimeData; | ||||
| typedef struct { | typedef struct { | ||||
| struct GPUOffScreen *offscreen; | /* Offscreen buffers/viewports for each view. */ | ||||
| struct GPUViewport *viewport; | struct GPUOffScreen *offscreen[2]; | ||||
| struct GPUViewport *viewport[2]; | |||||
Severin: The only thing that bothers me about this patch is that this array size is fixed. Couldn't we… | |||||
muxed-realityAuthorUnsubmitted Done Inline ActionsNow using ListBase for surface viewports. muxed-reality: Now using ListBase for surface viewports. | |||||
| } wmXrSurfaceData; | } wmXrSurfaceData; | ||||
| typedef struct wmXrDrawData { | typedef struct wmXrDrawData { | ||||
| struct Scene *scene; | struct Scene *scene; | ||||
| struct Depsgraph *depsgraph; | struct Depsgraph *depsgraph; | ||||
| wmXrData *xr_data; | wmXrData *xr_data; | ||||
| wmXrSurfaceData *surface_data; | wmXrSurfaceData *surface_data; | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||
The only thing that bothers me about this patch is that this array size is fixed. Couldn't we just allocate a dynamic array in wm_xr_session_surface_offscreen_ensure()?