More ray tracing changes

This commit is contained in:
Dynamitos
2024-07-10 21:07:10 +02:00
parent acf8dde8fc
commit a9089bd997
46 changed files with 801 additions and 277 deletions
+10 -9
View File
@@ -5,7 +5,6 @@
#include "Graphics/RenderTarget.h"
#include "RenderGraph.h"
using namespace Seele;
UIPass::UIPass(Gfx::PGraphics graphics, PScene scene) : RenderPass(graphics, scene) {}
@@ -80,16 +79,18 @@ void UIPass::publishOutputs() {
}
void UIPass::createRenderPass() {
ShaderCreateInfo createInfo = {
ShaderCompilationInfo createInfo = {
.name = "UIVertex",
.mainModule = "UIPass",
.entryPoint = "vertexMain",
.modules = {"UIPass"},
.entryPoints =
{
{"vertexMain", "UIPass"},
{"fragmentMain", "UIFragment"},
},
};
vertexShader = graphics->createVertexShader(createInfo);
createInfo.name = "UIFragment";
createInfo.entryPoint = "fragmentMain";
fragmentShader = graphics->createFragmentShader(createInfo);
graphics->beginShaderCompilation(createInfo);
vertexShader = graphics->createVertexShader({0});
fragmentShader = graphics->createFragmentShader({1});
descriptorLayout = graphics->createDescriptorLayout("pParams");
descriptorLayout->addDescriptorBinding(Gfx::DescriptorBinding{