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
+16 -16

No files matched your search

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