+ Graphics::CommandBuffer& GetCommandBuffer(Graphics::Controller& controller)
+ {
+ if(!mGraphicsCommandBuffer)
+ {
+ mGraphicsCommandBuffer = controller.CreateCommandBuffer(
+ Graphics::CommandBufferCreateInfo().SetLevel(Graphics::CommandBufferLevel::SECONDARY), nullptr);
+ }
+ return *mGraphicsCommandBuffer.get();
+ }