|
Blender V5.0
|
#include <DRW_gpu_wrapper.hh>
Public Member Functions | |
| const T & | operator[] (int64_t index) const |
| T & | operator[] (int64_t index) |
| const T * | data () const |
| T * | data () |
| const T * | begin () const |
| const T * | end () const |
| T * | begin () |
| T * | end () |
| operator Span< T > () const | |
Protected Member Functions | |
| BLI_STATIC_ASSERT (((sizeof(T) *len) % 16)==0, "Buffer size need to be aligned to size of float4.") | |
Protected Attributes | |
| T * | data_ = nullptr |
| int64_t | len_ = len |
| T | Type of the values stored in this uniform buffer. |
| len | The number of values that can be stored in this uniform buffer. |
| device_only | True if the buffer only resides on GPU memory and cannot be accessed. |
Definition at line 92 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 149 of file DRW_gpu_wrapper.hh.
References blender::draw::BLI_STATIC_ASSERT(), data_, and T.
|
inline |
Iterator
Definition at line 138 of file DRW_gpu_wrapper.hh.
References blender::draw::BLI_STATIC_ASSERT(), data_, and T.
|
inline |
Definition at line 129 of file DRW_gpu_wrapper.hh.
References blender::draw::BLI_STATIC_ASSERT(), data_, and T.
|
inline |
Get a pointer to the beginning of the array.
Definition at line 124 of file DRW_gpu_wrapper.hh.
References blender::draw::BLI_STATIC_ASSERT(), data_, and T.
Referenced by blender::draw::test_eevee_surfel_list().
|
inline |
Definition at line 154 of file DRW_gpu_wrapper.hh.
References blender::draw::BLI_STATIC_ASSERT(), data_, len_, and T.
|
inline |
Definition at line 143 of file DRW_gpu_wrapper.hh.
References blender::draw::BLI_STATIC_ASSERT(), data_, len_, and T.
|
inline |
Definition at line 160 of file DRW_gpu_wrapper.hh.
|
inline |
Definition at line 113 of file DRW_gpu_wrapper.hh.
References BLI_assert, blender::draw::BLI_STATIC_ASSERT(), data_, len_, and T.
|
inline |
Get the value at the given index. This invokes undefined behavior when the index is out of bounds.
Definition at line 105 of file DRW_gpu_wrapper.hh.
References BLI_assert, blender::draw::BLI_STATIC_ASSERT(), data_, len_, and T.
|
protected |
Definition at line 94 of file DRW_gpu_wrapper.hh.
Referenced by begin(), begin(), data(), data(), end(), end(), operator[](), operator[](), and blender::draw::StorageArrayBuffer< float2, 16 >::swap().
|
protected |
Definition at line 95 of file DRW_gpu_wrapper.hh.
Referenced by end(), end(), operator[](), operator[](), and blender::draw::StorageArrayBuffer< float2, 16 >::swap().