Blender V5.3
blender::gpu::render_graph::VKViewportData Struct Reference

#include <vk_pipeline_data.hh>

Public Member Functions

bool operator== (const VKViewportData &other) const
bool operator!= (const VKViewportData &other) const
void reset ()
VKViewportData & operator= (const VKViewportData &other)

Public Attributes

Vector< VkViewport, GPU_MAX_VIEWPORTS > viewports
Vector< VkRect2D, GPU_MAX_VIEWPORTS > scissors

Detailed Description

Container for storing viewport and scissor data used for draw nodes.

Definition at line 57 of file vk_pipeline_data.hh.

Member Function Documentation

◆ operator!=()

bool blender::gpu::render_graph::VKViewportData::operator!= ( const VKViewportData & other) const
inline

Definition at line 80 of file vk_pipeline_data.hh.

◆ operator=()

VKViewportData & blender::gpu::render_graph::VKViewportData::operator= ( const VKViewportData & other)
inline

Assign operator to reuse memory.

Has been added to improve the performance of larger scenes where the viewport is often switched. Without a custom assign operator calling assign_if_different inside vk_pipeline_dynamic_graphics_build_commands would construct a temp VKViewportData with unneeded frees/allocs and reallocs.

Definition at line 99 of file vk_pipeline_data.hh.

References scissors, and viewports.

◆ operator==()

bool blender::gpu::render_graph::VKViewportData::operator== ( const VKViewportData & other) const
inline

◆ reset()

void blender::gpu::render_graph::VKViewportData::reset ( )
inline

Definition at line 85 of file vk_pipeline_data.hh.

References scissors, and viewports.

Referenced by blender::gpu::render_graph::VKPipelineDataGraphics::reset().

Member Data Documentation

◆ scissors

Vector<VkRect2D, GPU_MAX_VIEWPORTS> blender::gpu::render_graph::VKViewportData::scissors

◆ viewports

Vector<VkViewport, GPU_MAX_VIEWPORTS> blender::gpu::render_graph::VKViewportData::viewports

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