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