Blender V5.3
blender::gpu::VKVertexInputDescriptionPool Class Reference

Pool with all used vertex input descriptions. More...

#include <vk_vertex_input_description.hh>

Public Types

using Key = int64_t

Public Member Functions

Key get_or_insert (VKVertexInputDescription &description)
 Get the key of the given description. Will insert the description when it wasn't known.
const VKVertexInputDescription & get (Key key)
 Get the vertex input description of the given key.

Static Public Attributes

static constexpr Key invalid_key = INT64_MIN

Detailed Description

Pool with all used vertex input descriptions.

The pool is index based to ensure direct lookup.

Definition at line 63 of file vk_vertex_input_description.hh.

Member Typedef Documentation

◆ Key

Key is indexed based.

Definition at line 66 of file vk_vertex_input_description.hh.

Member Function Documentation

◆ get()

const VKVertexInputDescription & blender::gpu::VKVertexInputDescriptionPool::get ( Key key)
inline

Get the vertex input description of the given key.

Will assert when the key isn't known or invalid.

Definition at line 99 of file vk_vertex_input_description.hh.

References lock.

Referenced by blender::gpu::render_graph::vk_pipeline_dynamic_graphics_build_commands().

◆ get_or_insert()

Key blender::gpu::VKVertexInputDescriptionPool::get_or_insert ( VKVertexInputDescription & description)
inline

Get the key of the given description. Will insert the description when it wasn't known.

Definition at line 80 of file vk_vertex_input_description.hh.

References lock, and blender::result.

Referenced by blender::gpu::VKVertexAttributeObject::update_vertex_input_key().

Member Data Documentation

◆ invalid_key

Key blender::gpu::VKVertexInputDescriptionPool::invalid_key = INT64_MIN
staticconstexpr

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