|
Blender V5.3
|
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 |
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.
Key is indexed based.
Definition at line 66 of file vk_vertex_input_description.hh.
|
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().
|
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().
Invalid key will assert in debug modes when used.
Definition at line 68 of file vk_vertex_input_description.hh.
Referenced by blender::gpu::VKVertexAttributeObject::clear(), blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), and blender::gpu::VKShader::ensure_graphics_pipelines().