wip
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
light7734 2025-10-09 14:24:04 +03:30
parent 762ea62b2c
commit 2714afb464
Signed by: light7734
GPG key ID: 8C30176798F1A6BA
2 changed files with 22 additions and 22 deletions

View file

@ -5,12 +5,12 @@
Suite raii = "renderer_raii"_suite = [] {
Case { "happy path won't throw" } = [] {
auto fixture = FixtureDeviceSwapchain {};
ignore = lt::renderer::IRenderer::create(
constants::api,
fixture.device(),
fixture.swapchain(),
constants::frames_in_flight
);
// ignore = lt::renderer::IRenderer::create(
// constants::api,
// fixture.device(),
// fixture.swapchain(),
// constants::frames_in_flight
// );
};
// Case { "unhappy path throws" } = [] {

View file

@ -131,21 +131,21 @@ public:
{
return m_device.get();
}
[[nodiscard]] auto swapchain() -> lt::renderer::ISwapchain *
{
return m_swapchain.get();
}
//
// [[nodiscard]] auto swapchain() -> lt::renderer::ISwapchain *
// {
// return m_swapchain.get();
// }
void recreate_swapchain()
{
m_swapchain.reset();
m_swapchain = lt::renderer::ISwapchain::create(
constants::api,
surface(),
gpu(),
m_device.get()
);
// m_swapchain.reset();
// m_swapchain = lt::renderer::ISwapchain::create(
// constants::api,
// surface(),
// gpu(),
// m_device.get()
// );
}
@ -201,10 +201,10 @@ private:
lt::memory::Scope<lt::renderer::IDevice> m_device {
lt::renderer::IDevice::create(constants::api, gpu(), surface())
};
lt::memory::Scope<lt::renderer::ISwapchain> m_swapchain {
lt::renderer::ISwapchain::create(constants::api, surface(), gpu(), m_device.get())
};
//
// lt::memory::Scope<lt::renderer::ISwapchain> m_swapchain {
// lt::renderer::ISwapchain::create(constants::api, surface(), gpu(), m_device.get())
// };
};
class Fixture_RendererSystem: public Fixture_SurfaceSystem