50 static constexpr uint32_t default_instances = 1024;
75 Entry acquire(QRhi& rhi, QRhiResourceUpdateBatch& batch,
87 bool ensureInstances(QRhi& rhi, QRhiResourceUpdateBatch& batch,
88 QRhiBuffer* buffer, uint32_t instance_count);
95 std::size_t size() const noexcept {
return m_entries.size(); }
102 uint64_t payload_hash{};
104 bool operator==(
const Key& o)
const noexcept
106 return format == o.format && stride == o.stride
107 && payload_hash == o.payload_hash;
112 std::size_t operator()(
const Key& k)
const noexcept
115 return (std::size_t)(k.payload_hash
116 ^ ((uint64_t)k.format << 32)
117 ^ (uint64_t)k.stride);
127 VertexFallbackSpec spec;
133 bool grow(QRhi& rhi, QRhiResourceUpdateBatch& batch, Record& rec,
136 ossia::hash_map<Key, Record, KeyHash> m_entries;
Definition VertexFallbackPool.hpp:53