Blender
V3.3
|
#include <DRW_gpu_wrapper.hh>
Public Member Functions | |
StorageArrayBuffer (const char *name=nullptr) | |
~StorageArrayBuffer () | |
void | resize (int64_t new_size) |
T & | get_or_resize (int64_t index) |
![]() | |
StorageCommon (const char *name=nullptr) | |
~StorageCommon () | |
void | push_update (void) |
operator GPUStorageBuf * () const | |
GPUStorageBuf ** | operator& () |
![]() | |
const T & | operator[] (int64_t index) const |
T & | operator[] (int64_t index) |
const T * | data () const |
T * | data () |
const T * | begin () const |
T * | begin () |
const T * | end () const |
T * | end () |
operator Span< T > () const | |
Additional Inherited Members | |
![]() | |
BLI_STATIC_ASSERT (((sizeof(T) *len) % 16)==0, "Buffer size need to be aligned to size of float4.") | |
![]() | |
GPUStorageBuf * | ssbo_ |
const char * | name_ |
![]() | |
T * | data_ |
int64_t | len_ |
Definition at line 310 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 312 of file DRW_gpu_wrapper.hh.
References len, MEM_mallocN_aligned, blender::draw::detail::StorageCommon< T, len, false >::name_, and T.
|
inline |
Definition at line 317 of file DRW_gpu_wrapper.hh.
References MEM_freeN.
|
inline |
Definition at line 340 of file DRW_gpu_wrapper.hh.
References BLI_assert, power_of_2_max_u(), blender::draw::StorageArrayBuffer< T, len, device_only >::resize(), and size().
|
inline |
Definition at line 322 of file DRW_gpu_wrapper.hh.
References BLI_assert, GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_USAGE_DEVICE_ONLY, GPU_USAGE_DYNAMIC, MEM_freeN, MEM_mallocN_aligned, min_uu(), blender::draw::detail::StorageCommon< T, len, false >::name_, blender::draw::detail::StorageCommon< T, len, false >::ssbo_, and T.
Referenced by blender::draw::StorageArrayBuffer< T, len, device_only >::get_or_resize().