Function TRAP::Graphics::RenderCommand::SetPushConstants(std::string_view, std::span<const u8>, QueueType, const Window&)#

Function Documentation#

void TRAP::Graphics::RenderCommand::SetPushConstants(std::string_view name, std::span<const u8> 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.