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

Binds a constant buffer to a pipeline slot. More...

#include <RenderCommands.hpp>

Inheritance diagram for Sleak::RenderEngine::BindConstantBufferCommand:

Public Member Functions

 BindConstantBufferCommand (RefPtr< BufferBase > buffer, int slot)
void Execute (RenderContext *context) override
 Replays this command into the main forward/deferred pass.
RefPtr< BufferBaseGetBuffer () const
int GetSlot () const
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

Binds a constant buffer to a pipeline slot.

Definition at line 145 of file RenderCommands.hpp.

Constructor & Destructor Documentation

◆ BindConstantBufferCommand()

Sleak::RenderEngine::BindConstantBufferCommand::BindConstantBufferCommand ( RefPtr< BufferBase > buffer,
int slot )

Definition at line 135 of file RenderCommands.cpp.

Member Function Documentation

◆ Execute()

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

Replays this command into the main forward/deferred pass.

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 138 of file RenderCommands.cpp.

◆ GetBuffer()

RefPtr< BufferBase > Sleak::RenderEngine::BindConstantBufferCommand::GetBuffer ( ) const
inline

Definition at line 151 of file RenderCommands.hpp.

◆ GetSlot()

int Sleak::RenderEngine::BindConstantBufferCommand::GetSlot ( ) const
inline

Definition at line 152 of file RenderCommands.hpp.

◆ GetType()

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

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 149 of file RenderCommands.hpp.