SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::RenderEngine::UpdateConstantBufferCommand Class Reference

Constant buffer write, captured by value into inline storage or a heap fallback for larger payloads. More...

#include <RenderCommands.hpp>

Inheritance diagram for Sleak::RenderEngine::UpdateConstantBufferCommand:

Public Member Functions

 UpdateConstantBufferCommand (RefPtr< BufferBase > buffer, void *Data, uint16_t Size)
 Copies the payload into inline storage, falling back to a heap allocation past INLINE_CAPACITY.
 ~UpdateConstantBufferCommand () override
void Execute (RenderContext *context) override
 Replays this command into the main forward/deferred pass.
void * GetData () const
 Returns a pointer to the captured payload, inline or heap-backed.
CommandType GetType () const override
Public Member Functions inherited from Sleak::RenderEngine::RenderCommandBase
virtual ~RenderCommandBase ()=default
bool CastsShadow () const
virtual void ExecuteShadow (RenderContext *context)
uint32_t GetOwnerObjectID () const
virtual bool IsSkinned () const
void SetCastsShadow (bool v)
void SetOwnerObjectID (uint32_t id)

Detailed Description

Constant buffer write, captured by value into inline storage or a heap fallback for larger payloads.

Definition at line 118 of file RenderCommands.hpp.

Constructor & Destructor Documentation

◆ UpdateConstantBufferCommand()

Sleak::RenderEngine::UpdateConstantBufferCommand::UpdateConstantBufferCommand ( RefPtr< BufferBase > buffer,
void * Data,
uint16_t Size )

Copies the payload into inline storage, falling back to a heap allocation past INLINE_CAPACITY.

Definition at line 111 of file RenderCommands.cpp.

◆ ~UpdateConstantBufferCommand()

Sleak::RenderEngine::UpdateConstantBufferCommand::~UpdateConstantBufferCommand ( )
inlineoverride

Definition at line 121 of file RenderCommands.hpp.

Member Function Documentation

◆ Execute()

void Sleak::RenderEngine::UpdateConstantBufferCommand::Execute ( RenderContext * context)
overridevirtual

Replays this command into the main forward/deferred pass.

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 130 of file RenderCommands.cpp.

◆ GetData()

void * Sleak::RenderEngine::UpdateConstantBufferCommand::GetData ( ) const
inline

Returns a pointer to the captured payload, inline or heap-backed.

Definition at line 128 of file RenderCommands.hpp.

◆ GetType()

CommandType Sleak::RenderEngine::UpdateConstantBufferCommand::GetType ( ) const
inlineoverridevirtual

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 125 of file RenderCommands.hpp.