launcher add reflect register
This commit is contained in:
parent
11c4652ddb
commit
3ba604a910
@ -176,11 +176,11 @@ namespace idk
|
|||||||
ImGui::TextDisabled("Values driven by Canvas.");
|
ImGui::TextDisabled("Values driven by Canvas.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (c_rt->GetGameObject()->HasComponent<AspectRatioFitter>())
|
/*if (c_rt->GetGameObject()->HasComponent<AspectRatioFitter>())
|
||||||
{
|
{
|
||||||
ImGui::TextDisabled("Values driven by AspectRatioFitter.");
|
ImGui::TextDisabled("Values driven by AspectRatioFitter.");
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
const float region_width = ImGui::GetWindowContentRegionWidth();
|
const float region_width = ImGui::GetWindowContentRegionWidth();
|
||||||
|
|
||||||
|
|||||||
@ -36,12 +36,14 @@ namespace idk::vkn
|
|||||||
|
|
||||||
auto result = RenderTargetFactory::GenerateDefaultResource();
|
auto result = RenderTargetFactory::GenerateDefaultResource();
|
||||||
|
|
||||||
auto& m = *RscHandle<VknRenderTarget>{};
|
auto pm = RscHandle<VknRenderTarget>{};
|
||||||
|
if (pm) {
|
||||||
m.size = uvec2{ Core::GetSystem<Application>().GetScreenSize() };
|
auto& m = *pm;
|
||||||
if (m.ColorGradingLut == RscHandle<Texture>{})
|
m.size = uvec2{ Core::GetSystem<Application>().GetScreenSize() };
|
||||||
m.ColorGradingLut = RscHandle<Texture>{GetDefaultColorGradeGuid()};
|
if (m.ColorGradingLut == RscHandle<Texture>{})
|
||||||
m.Name("Default RenderTarget");
|
m.ColorGradingLut = RscHandle<Texture>{ GetDefaultColorGradeGuid() };
|
||||||
|
m.Name("Default RenderTarget");
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,15 +2,12 @@
|
|||||||
#include "ReflectReg_Components.inl"
|
#include "ReflectReg_Components.inl"
|
||||||
#include <vulkan/vulkan.hpp>
|
#include <vulkan/vulkan.hpp>
|
||||||
#include <vkn/VulkanView.h>
|
#include <vkn/VulkanView.h>
|
||||||
|
#include <idk/ReflectReg_Resources.inl>
|
||||||
|
#include <res/MetaBundle.h>
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
/*
|
idk::MetaBundle m;
|
||||||
vk::UniqueDevice m_device;
|
serialize_text(m);
|
||||||
vk::GraphicsPipelineCreateInfo pipelineInfo;
|
|
||||||
auto dispatch = vk::DispatchLoaderDynamic{};
|
|
||||||
vk::UniqueHandle<vk::Pipeline, vk::DispatchLoaderDynamic> pipeline1 = m_device->createGraphicsPipelineUnique({}, pipelineInfo, nullptr, dispatch).value;
|
|
||||||
vk::UniquePipeline pipeline2 = m_device->createGraphicsPipelineUnique({}, pipelineInfo, nullptr, {}).value;
|
|
||||||
*/
|
|
||||||
testing::InitGoogleTest(&argc, argv);
|
testing::InitGoogleTest(&argc, argv);
|
||||||
return RUN_ALL_TESTS();
|
return RUN_ALL_TESTS();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,6 +53,7 @@ target("launcher")
|
|||||||
add_defines([[TEST_BIN_DIR=R"($(OutDir))"]])
|
add_defines([[TEST_BIN_DIR=R"($(OutDir))"]])
|
||||||
add_includedirs("engine", "engine/launcher", {public = true})
|
add_includedirs("engine", "engine/launcher", {public = true})
|
||||||
add_files("engine/launcher/*.cpp")
|
add_files("engine/launcher/*.cpp")
|
||||||
|
add_files("engine/game/*.cpp|editor_main.cpp|AddSystems.cpp")
|
||||||
add_headerfiles("engine/launcher/*.h")
|
add_headerfiles("engine/launcher/*.h")
|
||||||
|
|
||||||
target("opengl")
|
target("opengl")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user