This commit is contained in:
parent
a1bdb0005f
commit
e204a509d4
4 changed files with 8 additions and 3 deletions
|
@ -8,7 +8,6 @@
|
|||
|
||||
using ::lt::ecs::EntityId;
|
||||
using ::lt::ecs::Registry;
|
||||
using ::lt::surface::SurfaceComponent;
|
||||
|
||||
Suite raii = "surface"_suite = [] {
|
||||
Case { "happy path won't throw" } = [&] {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#include <assets/shader.hpp>
|
||||
#include <renderer/frontend/messenger.hpp>
|
||||
#include <renderer/frontend/renderer/pass.hpp>
|
||||
#include <renderer/test/utils.hpp>
|
||||
|
||||
using ::lt::renderer::IMessenger;
|
||||
|
||||
Suite raii = "pass_raii"_suite = [] {
|
||||
Case { "happy path won't throw" } = [] {
|
||||
auto fixture = Fixture_RendererSystem {};
|
||||
|
@ -14,6 +17,9 @@ Suite raii = "pass_raii"_suite = [] {
|
|||
lt::assets::ShaderAsset { "./data/test_assets/triangle.vert.asset" },
|
||||
lt::assets::ShaderAsset { "./data/test_assets/triangle.frag.asset" }
|
||||
);
|
||||
|
||||
expect_false(fixture.has_any_messages_of(IMessenger ::MessageSeverity::error));
|
||||
expect_false(fixture.has_any_messages_of(IMessenger ::MessageSeverity::warning));
|
||||
};
|
||||
|
||||
Case { "unhappy path throws" } = [] {
|
||||
|
|
|
@ -47,8 +47,7 @@ System::System(CreateInfo info)
|
|||
}
|
||||
|
||||
System::~System()
|
||||
{
|
||||
}
|
||||
= default;
|
||||
|
||||
void System::on_register()
|
||||
{
|
||||
|
|
|
@ -188,6 +188,7 @@ private:
|
|||
std::any &user_data
|
||||
)
|
||||
{
|
||||
std::cout << "VULKAN MESSAGE: " << data.message << std::endl; // NOLINT
|
||||
std::ignore = data;
|
||||
std::ignore = type;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue