|
Blender V5.3
|
#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 |
Container for storing viewport and scissor data used for draw nodes.
Definition at line 57 of file vk_pipeline_data.hh.
|
inline |
Definition at line 80 of file vk_pipeline_data.hh.
|
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.
|
inline |
Definition at line 61 of file vk_pipeline_data.hh.
References lexit::Vector< T >::data(), scissors, lexit::Vector< T >::size(), and viewports.
|
inline |
Definition at line 85 of file vk_pipeline_data.hh.
References scissors, and viewports.
Referenced by blender::gpu::render_graph::VKPipelineDataGraphics::reset().
| Vector<VkRect2D, GPU_MAX_VIEWPORTS> blender::gpu::render_graph::VKViewportData::scissors |
Definition at line 59 of file vk_pipeline_data.hh.
Referenced by operator=(), operator==(), reset(), blender::gpu::VKContext::update_pipeline_data(), and blender::gpu::render_graph::vk_pipeline_dynamic_graphics_build_commands().
| Vector<VkViewport, GPU_MAX_VIEWPORTS> blender::gpu::render_graph::VKViewportData::viewports |
Definition at line 58 of file vk_pipeline_data.hh.
Referenced by operator=(), operator==(), reset(), blender::gpu::VKContext::update_pipeline_data(), and blender::gpu::render_graph::vk_pipeline_dynamic_graphics_build_commands().