Adding in tracy profiler
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <algorithm>
|
||||
#include <sophia/components.hpp>
|
||||
#include <sophia/util/assert.hpp>
|
||||
#include <tracy/Tracy.hpp>
|
||||
#include <tuple>
|
||||
|
||||
namespace sophia {
|
||||
@@ -15,11 +16,13 @@ SceneRenderer::SceneRenderer(const SceneRegistry& sceneRegistry,
|
||||
spriteRenderSystem{device, colorFormat, resources} {}
|
||||
|
||||
void SceneRenderer::beginFrame(u32 frameIndex) {
|
||||
ZoneScoped;
|
||||
this->spriteRenderSystem.beginFrame(frameIndex);
|
||||
}
|
||||
|
||||
void SceneRenderer::render(vk::CommandBuffer commandBuffer,
|
||||
const SceneView& sceneView, Entity camera) {
|
||||
ZoneScoped;
|
||||
SOPHIA_ASSERT(camera.hasComponent<CameraComponent>(),
|
||||
"camera does not have camera component!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user