Blender V5.0
GPUViewport Struct Reference

Public Attributes

blender::int2 size
int flag
int active_view
DRWDatadraw_data
blender::gpu::Texturecolor_render_tx [2]
blender::gpu::Texturecolor_overlay_tx [2]
blender::gpu::Texturedepth_tx
blender::gpu::FrameBufferstereo_comp_fb
blender::gpu::FrameBufferrender_fb
blender::gpu::FrameBufferoverlay_fb
ColorManagedViewSettings view_settings
ColorManagedDisplaySettings display_settings
bool use_hdr_display
CurveMappingorig_curve_mapping
float dither
bool do_color_management
GPUViewportBatch batch

Detailed Description

Definition at line 54 of file gpu_viewport.cc.

Member Data Documentation

◆ active_view

int GPUViewport::active_view

◆ batch

GPUViewportBatch GPUViewport::batch

Definition at line 87 of file gpu_viewport.cc.

Referenced by gpu_viewport_batch_free(), and gpu_viewport_batch_get().

◆ color_overlay_tx

◆ color_render_tx

blender::gpu::Texture* GPUViewport::color_render_tx[2]

◆ depth_tx

blender::gpu::Texture* GPUViewport::depth_tx

◆ display_settings

ColorManagedDisplaySettings GPUViewport::display_settings

Definition at line 80 of file gpu_viewport.cc.

Referenced by GPU_viewport_colorspace_set(), and gpu_viewport_draw_colormanaged().

◆ dither

float GPUViewport::dither

Definition at line 83 of file gpu_viewport.cc.

Referenced by GPU_viewport_colorspace_set(), and gpu_viewport_draw_colormanaged().

◆ do_color_management

bool GPUViewport::do_color_management

◆ draw_data

DRWData* GPUViewport::draw_data

Definition at line 62 of file gpu_viewport.cc.

Referenced by GPU_viewport_data_get(), and GPU_viewport_free().

◆ flag

◆ orig_curve_mapping

CurveMapping* GPUViewport::orig_curve_mapping

Definition at line 82 of file gpu_viewport.cc.

Referenced by GPU_viewport_colorspace_set().

◆ overlay_fb

blender::gpu::FrameBuffer* GPUViewport::overlay_fb

◆ render_fb

blender::gpu::FrameBuffer* GPUViewport::render_fb

Color render and overlay frame-buffers for drawing outside of DRW module. The render framebuffer is expected to be in the linear space and viewport will perform color management on it to bring it to the display space. The overlay frame-buffer is expected to be in the display space and viewport does not do any color management on it.

Definition at line 75 of file gpu_viewport.cc.

Referenced by GPU_viewport_framebuffer_render_get(), and gpu_viewport_textures_free().

◆ size

◆ stereo_comp_fb

blender::gpu::FrameBuffer* GPUViewport::stereo_comp_fb

Compositing framebuffer for stereo viewport.

Definition at line 69 of file gpu_viewport.cc.

Referenced by GPU_viewport_stereo_composite(), and gpu_viewport_textures_free().

◆ use_hdr_display

bool GPUViewport::use_hdr_display

Definition at line 81 of file gpu_viewport.cc.

Referenced by GPU_viewport_colorspace_set(), and gpu_viewport_draw_colormanaged().

◆ view_settings

ColorManagedViewSettings GPUViewport::view_settings

The documentation for this struct was generated from the following file: