OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::ConstantBuffer< Type > Class Template Reference

定数バッファ(シェーダ) More...

#include <ConstantBuffer.hpp>

Classes

struct  WrapperType
 

Public Member Functions

SIV3D_NODISCARD_CXX20 ConstantBuffer ()
 
SIV3D_NODISCARD_CXX20 ConstantBuffer (const Type &data)
 
 ~ConstantBuffer ()
 
ConstantBufferoperator= (const Type &data)
 
constexpr size_t size () const noexcept
 
const float * data () const noexcept
 
Type & get () noexcept
 
const Type & get () const noexcept
 
bool isDirty () const noexcept
 
bool _update_if_dirty ()
 
const ConstantBufferBasebase () const noexcept
 
Type & operator* () noexcept
 
const Type & operator* () const noexcept
 
Type * operator-> () noexcept
 
const Type * operator-> () const noexcept
 

Static Public Attributes

static constexpr size_t _alignment = Max<size_t>(alignof(Type), 16)
 
static constexpr size_t Size = sizeof(WrapperType)
 
static constexpr size_t NumVectors = (Size / 16)
 
static constexpr size_t Alignment = alignof(WrapperType)
 

Detailed Description

template<class Type>
class s3d::ConstantBuffer< Type >

定数バッファ(シェーダ)

Template Parameters
Type定数バッファ用の型

Constructor & Destructor Documentation

◆ ConstantBuffer() [1/2]

template<class Type >
SIV3D_NODISCARD_CXX20 s3d::ConstantBuffer< Type >::ConstantBuffer ( )

◆ ConstantBuffer() [2/2]

template<class Type >
SIV3D_NODISCARD_CXX20 s3d::ConstantBuffer< Type >::ConstantBuffer ( const Type &  data)

◆ ~ConstantBuffer()

template<class Type >
s3d::ConstantBuffer< Type >::~ConstantBuffer ( )

Member Function Documentation

◆ _update_if_dirty()

template<class Type >
bool s3d::ConstantBuffer< Type >::_update_if_dirty ( )

◆ base()

template<class Type >
const ConstantBufferBase& s3d::ConstantBuffer< Type >::base ( ) const
noexcept

◆ data()

template<class Type >
const float* s3d::ConstantBuffer< Type >::data ( ) const
noexcept

◆ get() [1/2]

template<class Type >
const Type& s3d::ConstantBuffer< Type >::get ( ) const
noexcept

◆ get() [2/2]

template<class Type >
Type& s3d::ConstantBuffer< Type >::get ( )
noexcept

◆ isDirty()

template<class Type >
bool s3d::ConstantBuffer< Type >::isDirty ( ) const
noexcept

◆ operator*() [1/2]

template<class Type >
const Type& s3d::ConstantBuffer< Type >::operator* ( ) const
noexcept

◆ operator*() [2/2]

template<class Type >
Type& s3d::ConstantBuffer< Type >::operator* ( )
noexcept

◆ operator->() [1/2]

template<class Type >
const Type* s3d::ConstantBuffer< Type >::operator-> ( ) const
noexcept

◆ operator->() [2/2]

template<class Type >
Type* s3d::ConstantBuffer< Type >::operator-> ( )
noexcept

◆ operator=()

template<class Type >
ConstantBuffer& s3d::ConstantBuffer< Type >::operator= ( const Type &  data)

◆ size()

template<class Type >
constexpr size_t s3d::ConstantBuffer< Type >::size ( ) const
constexprnoexcept

Member Data Documentation

◆ _alignment

template<class Type >
constexpr size_t s3d::ConstantBuffer< Type >::_alignment = Max<size_t>(alignof(Type), 16)
staticconstexpr

◆ Alignment

template<class Type >
constexpr size_t s3d::ConstantBuffer< Type >::Alignment = alignof(WrapperType)
staticconstexpr

◆ NumVectors

template<class Type >
constexpr size_t s3d::ConstantBuffer< Type >::NumVectors = (Size / 16)
staticconstexpr

◆ Size

template<class Type >
constexpr size_t s3d::ConstantBuffer< Type >::Size = sizeof(WrapperType)
staticconstexpr

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