ezEngine Release 26.3
Loading...
Searching...
No Matches
ezConstantBufferStorage< T > Class Template Reference

#include <ConstantBufferStorage.h>

Inheritance diagram for ezConstantBufferStorage< T >:

Public Member Functions

EZ_FORCE_INLINE T & GetDataForWriting ()
 
EZ_FORCE_INLINE const T & GetDataForReading () const
 Returns a typed const reference for reading from the constant buffer.
 
- Public Member Functions inherited from ezConstantBufferStorageBase
ezArrayPtr< ezUInt8 > GetRawDataForWriting ()
 
ezArrayPtr< const ezUInt8 > GetRawDataForReading () const
 Returns read-only access to the buffer data.
 
void BeforeBeginFrame ()
 Called at the beginning of each frame to reset per-frame state.
 
void UploadData (ezGALCommandEncoder *pCommandEncoder)
 
EZ_ALWAYS_INLINE ezGALBufferHandle GetGALBufferHandle () const
 

Additional Inherited Members

- Protected Member Functions inherited from ezConstantBufferStorageBase
 ezConstantBufferStorageBase (ezUInt32 uiSizeInBytes)
 
- Protected Attributes inherited from ezConstantBufferStorageBase
bool m_bHasBeenModified = false
 
bool m_bStartOfFrame = true
 
ezUInt32 m_uiLastHash = 0
 
ezGALBufferHandle m_hGALConstantBuffer
 
ezArrayPtr< ezUInt8 > m_Data
 

Detailed Description

template<typename T>
class ezConstantBufferStorage< T >

Typed wrapper for constant buffer storage.

Provides type-safe access to constant buffer data of type T.

Member Function Documentation

◆ GetDataForWriting()

template<typename T >
EZ_FORCE_INLINE T & ezConstantBufferStorage< T >::GetDataForWriting ( )
inline

Returns a typed reference for writing to the constant buffer.

Marks the buffer as modified for upload.


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