#include "impl.hpp" #include "compat/assert.hpp" #include #include #include #include namespace floormat::loader_detail { Trade::ImageData2D loader_impl::make_error_texture(Vector2ui size) { fm_assert(size.product() != 0); constexpr auto magenta = Vector4ub{255, 0, 255, 255}; auto array = Array{DirectInit, size.product(), magenta}; auto img = Trade::ImageData2D{PixelFormat::RGBA8Unorm, Vector2i(size), {}, std::move(array), {}, {}}; return img; } } // namespace floormat::loader_detail