|
Blender V5.3
|
#include <vk_vertex_attribute_object.hh>
Public Member Functions | |
| VKVertexAttributeObject () | |
| void | clear () |
| void | update_vertex_input_key (VKVertexInputDescriptionPool &pool) |
| VKVertexAttributeObject & | operator= (const VKVertexAttributeObject &other) |
Bind resources | |
| void | bind (render_graph::VKVertexBufferBindings &r_vertex_buffer_bindings) const |
Debugging | |
| void | debug_print () const |
Update bindings | |
| void | update_bindings (const VKContext &context, VKBatch &batch) |
| void | update_bindings (VKImmediate &immediate) |
Definition at line 29 of file vk_vertex_attribute_object.hh.
| blender::gpu::VKVertexAttributeObject::VKVertexAttributeObject | ( | ) |
Definition at line 29 of file vk_vertex_attribute_object.cc.
References clear().
Referenced by operator=().
| void blender::gpu::VKVertexAttributeObject::bind | ( | render_graph::VKVertexBufferBindings & | r_vertex_buffer_bindings | ) | const |
Definition at line 67 of file vk_vertex_attribute_object.cc.
References attribute, blender::gpu::VKVertexInputDescription::attributes, blender::gpu::VKVertexInputDescription::bindings, blender::gpu::render_graph::VKVertexBufferBindings::buffer, blender::gpu::render_graph::VKVertexBufferBindings::buffer_count, buffers, blender::gpu::VKBackend::device, blender::gpu::VKDevice::dummy_buffer, blender::gpu::VKBackend::get(), blender::max_ii(), blender::gpu::render_graph::VKVertexBufferBindings::offset, blender::gpu::VKBuffer::resource(), blender::gpu::render_graph::VKVertexBufferBindings::resource_handles, lexit::Vector< T >::size(), vertex_input, and blender::gpu::VKResourceWithHandle< HandleType >::vk_handle.
Referenced by blender::gpu::VKBatch::draw(), and blender::gpu::VKBatch::multi_draw_indirect().
| void blender::gpu::VKVertexAttributeObject::clear | ( | ) |
Definition at line 34 of file vk_vertex_attribute_object.cc.
References buffers, blender::gpu::VKVertexInputDescription::clear(), blender::gpu::VKVertexInputDescriptionPool::invalid_key, vbos, vertex_input, and vertex_input_key.
Referenced by update_bindings(), update_bindings(), and VKVertexAttributeObject().
| void blender::gpu::VKVertexAttributeObject::debug_print | ( | ) | const |
Definition at line 263 of file vk_vertex_attribute_object.cc.
References attribute, blender::gpu::VKVertexInputDescription::attributes, blender::gpu::VKVertexInputDescription::bindings, buffers, lexit::Vector< T >::size(), and vertex_input.
| VKVertexAttributeObject & blender::gpu::VKVertexAttributeObject::operator= | ( | const VKVertexAttributeObject & | other | ) |
Copy assignment operator.
Definition at line 47 of file vk_vertex_attribute_object.cc.
References buffers, vbos, vertex_input, vertex_input_key, and VKVertexAttributeObject().
| void blender::gpu::VKVertexAttributeObject::update_bindings | ( | const VKContext & | context, |
| VKBatch & | batch ) |
Definition at line 106 of file vk_vertex_attribute_object.cc.
References blender::gpu::VKVertexInputDescription::bindings, buffers, clear(), blender::gpu::VertBuf::format, interface_get, lexit::Vector< T >::size(), blender::gpu::unwrap(), update_bindings(), blender::v, blender::gpu::VKBatch::vertex_buffer_get(), vertex_input, and blender::gpu::VertBuf::vertex_len.
Referenced by blender::gpu::VKVertexAttributeObjectCache::get_or_create(), update_bindings(), and update_bindings().
| void blender::gpu::VKVertexAttributeObject::update_bindings | ( | VKImmediate & | immediate | ) |
Definition at line 158 of file vk_vertex_attribute_object.cc.
References blender::gpu::VKVertexInputDescription::bindings, buffers, clear(), interface_get, lexit::Vector< T >::size(), blender::gpu::unwrap(), update_bindings(), blender::gpu::Immediate::vertex_format, vertex_input, and blender::gpu::Immediate::vertex_len.
| void blender::gpu::VKVertexAttributeObject::update_vertex_input_key | ( | VKVertexInputDescriptionPool & | pool | ) |
Definition at line 42 of file vk_vertex_attribute_object.cc.
References blender::gpu::VKVertexInputDescriptionPool::get_or_insert(), vertex_input, and vertex_input_key.
Referenced by blender::gpu::VKVertexAttributeObjectCache::get_or_create().
| Vector<VKBufferWithOffset> blender::gpu::VKVertexAttributeObject::buffers |
Definition at line 41 of file vk_vertex_attribute_object.hh.
Referenced by bind(), clear(), debug_print(), operator=(), update_bindings(), and update_bindings().
| Vector<VKVertexBuffer *> blender::gpu::VKVertexAttributeObject::vbos |
Definition at line 39 of file vk_vertex_attribute_object.hh.
Referenced by clear(), and operator=().
| VKVertexInputDescription blender::gpu::VKVertexAttributeObject::vertex_input |
Definition at line 31 of file vk_vertex_attribute_object.hh.
Referenced by bind(), clear(), debug_print(), operator=(), update_bindings(), update_bindings(), and update_vertex_input_key().
| VKVertexInputDescriptionPool::Key blender::gpu::VKVertexAttributeObject::vertex_input_key = VKVertexInputDescriptionPool::invalid_key |
Key from VKVertexInputDescriptionPool, cached to avoid repeated hash/lookup. Invalidated in clear(), populated by VKVertexAttributeObjectCache after update_bindings().
Definition at line 36 of file vk_vertex_attribute_object.hh.
Referenced by clear(), blender::gpu::VKBatch::draw(), blender::gpu::VKBatch::multi_draw_indirect(), operator=(), and update_vertex_input_key().