Template Function TRAP::Graphics::RenderCommand::SetPushConstants(std::string_view, const T&, QueueType, const Window&)#

Function Documentation#

template<typename T>
void TRAP::Graphics::RenderCommand::SetPushConstants(std::string_view name, const T &data, QueueType queueType = QueueType::Graphics, const Window &window = *TRAP::Application::GetWindow())#

Set push constant for the given window.

Remark

Headless mode: This function is not available in headless mode.

Warning

: The minimum guaranteed size from the specification is 128 bytes, everything beyond is hardware dependent.

Parameters:
  • name – Name of the push constant.

  • data – Data to set push constant to.

  • queueTypeQueue type on which to perform the operation. Default: Graphics.

  • windowWindow to set push constant for. Default: Main Window.