Function TRAP::Graphics::RenderCommand::Transition#

Function Documentation#

void TRAP::Graphics::RenderCommand::Transition(const Ref<Texture> &texture, RendererAPI::ResourceState oldLayout, RendererAPI::ResourceState newLayout, QueueType queueType = QueueType::Graphics)#

Transition a texture from old layout to the new layout. The transition happens immediately and is guaranteed to be complete when the function returns.

Parameters:
  • textureTexture to transition layout.

  • oldLayout – Current resource state of the given texture.

  • newLayout – New resource state for the given texture.

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