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.