Re-enable ray tracing and adding inspector view to editor for testing

This commit is contained in:
Dynamitos committed 2026-10-13 22:12:30 +02:00
1 parent 908b52441f
commit ca69fc7dbc
2 files changed
+21 -21

No files matched your search

+20 -20
View File
@@ -12,6 +12,7 @@
#include "Graphics/StaticMeshVertexData.h"
#include "Window/PlayView.h"
#include "Window/WindowManager.h"
#include "Window/InspectorView.h"
#include <fmt/core.h>
using namespace Seele;
@@ -76,26 +77,25 @@ int main() {
.preferredFormat = Gfx::SE_FORMAT_B8G8R8A8_SRGB,
};
auto window = windowManager->addWindow(graphics, mainWindowInfo);
ViewportCreateInfo sceneViewInfo = {
.dimensions =
{
.size = {1920, 1080},
.offset = {0, 0},
},
};
OGameView sceneView = new Editor::PlayView(graphics, window, sceneViewInfo, binaryPath);
sceneView->setFocused();
// OInspectorView inspectorView = new Editor::InspectorView(graphics, window,
// ViewportCreateInfo{
// .dimensions =
// {
// .size = {1920, 1080},
// .offset = {0, 0},
// },
// .fieldOfView = 0,
// .numSamples = Gfx::SE_SAMPLE_COUNT_1_BIT,
// });
//
// ViewportCreateInfo sceneViewInfo = {
// .dimensions =
// {
// .size = {1920, 1080},
// .offset = {0, 0},
// },
// };
// OGameView sceneView = new Editor::PlayView(graphics, window, sceneViewInfo, binaryPath);
// sceneView->setFocused();
OInspectorView inspectorView = new Editor::InspectorView(graphics, window,
ViewportCreateInfo{
.dimensions =
{
.size = {1920, 1080},
.offset = {0, 0},
},
});
inspectorView->setFocused();
window->show();
while (windowManager->isActive() && getGlobals().running) {
windowManager->render();
+1 -1
View File
@@ -980,7 +980,7 @@ void Graphics::pickPhysicalDevice() {
shaderFloatControls = true;
}
}
rayTracingEnabled = false &&rayTracingPipelineSupport && accelerationStructureSupport && hostOperationsSupport && deviceAddressSupport &&
rayTracingEnabled = rayTracingPipelineSupport && accelerationStructureSupport && hostOperationsSupport && deviceAddressSupport &&
descriptorIndexingSupport && spirv14Support && shaderFloatControls;
}