|
Blender V4.5
|
#include <DRW_gpu_wrapper.hh>
Inherits blender::draw::StorageArrayBuffer< T, len, device_only >.
Public Member Functions | |
| StorageVectorBuffer (const char *name=nullptr) | |
| ~StorageVectorBuffer ()=default | |
| void | clear () |
| void | clear_and_trim () |
| void | append (const T &value) |
| void | append (T &&value) |
| template<typename... ForwardT> | |
| void | append_as (ForwardT &&...value) |
| void | extend (const Span< T > values) |
| int64_t | size () const |
| bool | is_empty () const |
| void | clear_to_zero ()=delete |
| Public Member Functions inherited from blender::draw::StorageArrayBuffer< T, len, device_only > | |
| StorageArrayBuffer (const char *name=nullptr) | |
| ~StorageArrayBuffer () | |
| void | resize (int64_t new_size) |
| T & | get_or_resize (int64_t index) |
| void | trim_to_next_power_of_2 (int64_t required_size) |
| int64_t | size () const |
| MutableSpan< T > | as_span () const |
| Public Member Functions inherited from blender::draw::detail::StorageCommon< T, len, device_only > | |
| StorageCommon (const char *name=nullptr) | |
| ~StorageCommon () | |
| void | push_update () |
| void | clear_to_zero () |
| void | async_flush_to_host () |
| void | read () |
| operator GPUStorageBuf * () const | |
| GPUStorageBuf ** | operator& () |
| Public Member Functions inherited from blender::draw::detail::DataBuffer< T, len, false > | |
| const T & | operator[] (int64_t index) const |
| const T * | data () const |
| const T * | begin () const |
| const T * | end () const |
| operator Span< T > () const | |
Static Public Member Functions | |
| static void | swap (StorageVectorBuffer &a, StorageVectorBuffer &b) |
| Static Public Member Functions inherited from blender::draw::StorageArrayBuffer< T, len, device_only > | |
| static void | swap (StorageArrayBuffer &a, StorageArrayBuffer &b) |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::draw::detail::DataBuffer< T, len, false > | |
| BLI_STATIC_ASSERT (((sizeof(T) *len) % 16)==0, "Buffer size need to be aligned to size of float4.") | |
| Protected Attributes inherited from blender::draw::detail::StorageCommon< T, len, device_only > | |
| GPUStorageBuf * | ssbo_ |
| const char * | name_ = typeid(T).name() |
| Protected Attributes inherited from blender::draw::detail::DataBuffer< T, len, false > | |
| T * | data_ |
| int64_t | len_ |
| T | Type of the values stored in this uniform buffer. |
| len | The number of values that can be stored in this storage buffer at creation. |
Definition at line 413 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 419 of file DRW_gpu_wrapper.hh.
|
default |
|
inline |
Insert a new element at the end of the vector. This might cause a reallocation with the capacity is exceeded.
This is similar to std::vector::push_back.
Definition at line 446 of file DRW_gpu_wrapper.hh.
Referenced by blender::eevee::ShadowPunctual::end_sync(), blender::draw::StorageVectorBuffer< IrradianceBrickPacked, 16 >::extend(), blender::draw::test_eevee_shadow_finalize(), blender::draw::test_eevee_shadow_free(), blender::draw::test_eevee_shadow_page_mask_ex(), blender::draw::test_eevee_shadow_shift(), blender::draw::test_eevee_shadow_shift_clear(), blender::draw::test_eevee_shadow_tag_update(), and blender::draw::test_eevee_surfel_list().
|
inline |
Definition at line 450 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 454 of file DRW_gpu_wrapper.hh.
Referenced by blender::draw::StorageVectorBuffer< IrradianceBrickPacked, 16 >::append(), and blender::draw::StorageVectorBuffer< IrradianceBrickPacked, 16 >::append().
|
inline |
Set item count to zero but does not free memory or resize the buffer.
Definition at line 425 of file DRW_gpu_wrapper.hh.
Referenced by blender::draw::overlay::ShapeInstanceBuf< ExtraInstanceData >::clear(), and blender::draw::StorageVectorBuffer< IrradianceBrickPacked, 16 >::clear_and_trim().
|
inline |
Set item count to zero and trim the buffer if current size is much larger than the current item count.
Definition at line 434 of file DRW_gpu_wrapper.hh.
|
delete |
|
inline |
Definition at line 464 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 477 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 472 of file DRW_gpu_wrapper.hh.
Referenced by blender::eevee::ShadowDirectional::end_sync(), blender::eevee::ShadowPunctual::end_sync(), blender::draw::StorageVectorBuffer< IrradianceBrickPacked, 16 >::is_empty(), blender::draw::test_eevee_shadow_finalize(), blender::draw::test_eevee_shadow_free(), blender::draw::test_eevee_shadow_page_mask_ex(), blender::draw::test_eevee_shadow_shift(), blender::draw::test_eevee_shadow_shift_clear(), blender::draw::test_eevee_shadow_tag_update(), and blender::draw::test_eevee_surfel_list().
|
inlinestatic |
Definition at line 485 of file DRW_gpu_wrapper.hh.