Blender V5.3
vk_vertex_attribute_object_cache.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
13
14namespace blender::gpu {
15
16class VKContext;
17class VKBatch;
18
30 public:
31 static constexpr int CACHE_LEN = 16;
32
40 VKBatch &batch,
41 VKShaderInterface::Key shader_key,
43
45 void clear();
46
47 private:
50 int write_index_ = 0;
51};
52
53} // namespace blender::gpu
Cache of VKVertexAttributeObjects keyed by VKShaderInterface.
const VKVertexAttributeObject & get_or_create(VKContext &context, VKBatch &batch, VKShaderInterface::Key shader_key, VKVertexInputDescriptionPool &pool)
Pool with all used vertex input descriptions.