Actually fixing pipeline cache

This commit is contained in:
Dynamitos committed 2025-07-12 13:50:31 +02:00
1 parent 750dcf8318
commit 106dfe0423
5 files changed
+35 -28

No files matched your search

+2 -2
View File
@@ -136,9 +136,9 @@ EnvironmentLoader::EnvironmentLoader(Gfx::PGraphics graphics) : graphics(graphic
{Gfx::SubPassDependency{
.srcSubpass = 0,
.dstSubpass = ~0U,
.srcStage = Gfx::SE_PIPELINE_STAGE_TOP_OF_PIPE_BIT,
.srcStage = Gfx::SE_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
.dstStage = Gfx::SE_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,
.srcAccess = Gfx::SE_ACCESS_NONE,
.srcAccess = Gfx::SE_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
.dstAccess = Gfx::SE_ACCESS_SHADER_READ_BIT,
}},
URect{{512, 512}, {0, 0}}, "LUTGeneration");
+6
View File
@@ -1,5 +1,7 @@
#include "PlayView.h"
#include "Component/Mesh.h"
#include "Graphics/Enums.h"
#include "MinimalEngine.h"
#include "Window/Window.h"
using namespace Seele;
@@ -34,6 +36,10 @@ void PlayView::keyCallback(KeyCode code, InputAction action, KeyModifier modifie
getGlobals().useLightCulling = !getGlobals().useLightCulling;
std::cout << "Use Light Culling " << getGlobals().useLightCulling << std::endl;
}
if(code == KeyCode::KEY_K && action == InputAction::RELEASE) {
getGlobals().useImagebasedLighting = !getGlobals().useImagebasedLighting;
std::cout << "Use IBL " << getGlobals().useImagebasedLighting << std::endl;
}
if (code == KeyCode::KEY_G && action == InputAction::RELEASE) {
Component::Camera cam;
Component::Transform tra;