Blender V4.3
blender::draw::detail::DataBuffer< T, len, device_only > Class Template Reference

#include <DRW_gpu_wrapper.hh>

Public Member Functions

const Toperator[] (int64_t index) const
 
Toperator[] (int64_t index)
 
const Tdata () const
 
Tdata ()
 
const Tbegin () const
 
const Tend () const
 
Tbegin ()
 
Tend ()
 
 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

Tdata_ = nullptr
 
int64_t len_ = len
 

Detailed Description

template<typename T, int64_t len, bool device_only>
class blender::draw::detail::DataBuffer< T, len, device_only >

Definition at line 95 of file DRW_gpu_wrapper.hh.

Member Function Documentation

◆ begin() [1/2]

template<typename T , int64_t len, bool device_only>
T * blender::draw::detail::DataBuffer< T, len, device_only >::begin ( )
inline

◆ begin() [2/2]

template<typename T , int64_t len, bool device_only>
const T * blender::draw::detail::DataBuffer< T, len, device_only >::begin ( ) const
inline

◆ BLI_STATIC_ASSERT()

template<typename T , int64_t len, bool device_only>
blender::draw::detail::DataBuffer< T, len, device_only >::BLI_STATIC_ASSERT ( ((sizeof(T) *len) % 16) = =0,
"Buffer size need to be aligned to size of float4."  )
protected

◆ data() [1/2]

template<typename T , int64_t len, bool device_only>
T * blender::draw::detail::DataBuffer< T, len, device_only >::data ( )
inline

◆ data() [2/2]

template<typename T , int64_t len, bool device_only>
const T * blender::draw::detail::DataBuffer< T, len, device_only >::data ( ) const
inline

◆ end() [1/2]

◆ end() [2/2]

◆ operator Span< T >()

template<typename T , int64_t len, bool device_only>
blender::draw::detail::DataBuffer< T, len, device_only >::operator Span< T > ( ) const
inline

Definition at line 163 of file DRW_gpu_wrapper.hh.

◆ operator[]() [1/2]

◆ operator[]() [2/2]

template<typename T , int64_t len, bool device_only>
const T & blender::draw::detail::DataBuffer< T, len, device_only >::operator[] ( int64_t index) const
inline

Get the value at the given index. This invokes undefined behavior when the index is out of bounds.

Definition at line 108 of file DRW_gpu_wrapper.hh.

References BLI_assert, blender::draw::BLI_STATIC_ASSERT(), blender::draw::detail::DataBuffer< T, len, device_only >::data_, and blender::draw::detail::DataBuffer< T, len, device_only >::len_.

Member Data Documentation

◆ data_

◆ len_


The documentation for this class was generated from the following file: