Blender
V3.3
|
#include <DRW_gpu_wrapper.hh>
Public Member Functions | |
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 | |
Protected Attributes | |
GPUStorageBuf * | ssbo_ |
const char * | name_ = "StorageBuffer" |
![]() | |
T * | data_ |
int64_t | len_ |
Additional Inherited Members | |
![]() | |
BLI_STATIC_ASSERT (((sizeof(T) *len) % 16)==0, "Buffer size need to be aligned to size of float4.") | |
Definition at line 204 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 215 of file DRW_gpu_wrapper.hh.
References GPU_storagebuf_create_ex(), GPU_USAGE_DEVICE_ONLY, GPU_USAGE_DYNAMIC, len, blender::draw::detail::StorageCommon< T, len, device_only >::name_, blender::draw::detail::StorageCommon< T, len, device_only >::ssbo_, and T.
|
inline |
Definition at line 225 of file DRW_gpu_wrapper.hh.
References GPU_storagebuf_free(), and blender::draw::detail::StorageCommon< T, len, device_only >::ssbo_.
|
inline |
Definition at line 236 of file DRW_gpu_wrapper.hh.
References blender::draw::detail::StorageCommon< T, len, device_only >::ssbo_.
|
inline |
Definition at line 241 of file DRW_gpu_wrapper.hh.
References blender::draw::detail::StorageCommon< T, len, device_only >::ssbo_.
|
inline |
Definition at line 230 of file DRW_gpu_wrapper.hh.
References BLI_assert, GPU_storagebuf_update(), and blender::draw::detail::StorageCommon< T, len, device_only >::ssbo_.
|
protected |
Definition at line 211 of file DRW_gpu_wrapper.hh.
Referenced by blender::draw::detail::StorageCommon< T, len, device_only >::StorageCommon().
|
protected |
Definition at line 206 of file DRW_gpu_wrapper.hh.
Referenced by blender::draw::detail::StorageCommon< T, len, device_only >::operator GPUStorageBuf *(), blender::draw::detail::StorageCommon< T, len, device_only >::operator&(), blender::draw::detail::StorageCommon< T, len, device_only >::push_update(), blender::draw::detail::StorageCommon< T, len, device_only >::StorageCommon(), and blender::draw::detail::StorageCommon< T, len, device_only >::~StorageCommon().