Re-enable ray tracing and adding inspector view to editor for testing
This commit is contained in:
1 parent
908b52441f
commit
ca69fc7dbc
2 files changed
+21
-21
No files matched your search
+20
-20
@@ -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();
|
||||
|
||||
@@ -980,7 +980,7 @@ void Graphics::pickPhysicalDevice() {
|
||||
shaderFloatControls = true;
|
||||
}
|
||||
}
|
||||
rayTracingEnabled = false &&rayTracingPipelineSupport && accelerationStructureSupport && hostOperationsSupport && deviceAddressSupport &&
|
||||
rayTracingEnabled = rayTracingPipelineSupport && accelerationStructureSupport && hostOperationsSupport && deviceAddressSupport &&
|
||||
descriptorIndexingSupport && spirv14Support && shaderFloatControls;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user