ezEngine  Release 25.03
ezConstantBufferStorageBase Class Reference

Wrapper around ezGALBufferHandle that automates buffer updates. Created via ezRenderContext::CreateConstantBufferStorage. Retrived via ezRenderContext::TryGetConstantBufferStorage, updated lazily via ezRenderContext::UploadConstants. More...

#include <ConstantBufferStorage.h>

Inheritance diagram for ezConstantBufferStorageBase:

Public Member Functions

ezArrayPtr< ezUInt8 > GetRawDataForWriting ()
 
ezArrayPtr< const ezUInt8 > GetRawDataForReading () const
 
void MarkDirty ()
 
void BeforeBeginFrame ()
 
void UploadData (ezGALCommandEncoder *pCommandEncoder)
 
EZ_ALWAYS_INLINE ezGALBufferHandle GetGALBufferHandle () const
 

Protected Member Functions

 ezConstantBufferStorageBase (ezUInt32 uiSizeInBytes)
 

Protected Attributes

bool m_bHasBeenModified = false
 
bool m_bStartOfFrame = true
 
ezUInt32 m_uiLastHash = 0
 
ezGALBufferHandle m_hGALConstantBuffer
 
ezArrayPtr< ezUInt8 > m_Data
 

Friends

class ezRenderContext
 
class ezMemoryUtils
 

Detailed Description

Wrapper around ezGALBufferHandle that automates buffer updates. Created via ezRenderContext::CreateConstantBufferStorage. Retrived via ezRenderContext::TryGetConstantBufferStorage, updated lazily via ezRenderContext::UploadConstants.


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