ReflectionInfo in Asset
Some checks failed
Bigfoot / Build & Test Debug with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 16m41s
Bigfoot / Build & Test Debug with ./ConanProfiles/clang (Unity Build: OFF) (push) Successful in 17m21s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd (Unity Build: ON) (push) Successful in 11m4s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd (Unity Build: OFF) (push) Successful in 11m44s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd_asan (Unity Build: ON) (push) Failing after 5m30s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd_asan (Unity Build: OFF) (push) Failing after 5m34s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 24m10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: OFF) (push) Successful in 25m10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd (Unity Build: OFF) (push) Successful in 13m13s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd (Unity Build: ON) (push) Successful in 12m56s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd_asan (Unity Build: ON) (push) Failing after 10m32s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd_asan (Unity Build: OFF) (push) Failing after 11m17s
Bigfoot / Build & Test Release with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 11m3s
Bigfoot / Build & Test Release with ./ConanProfiles/clang (Unity Build: OFF) (push) Failing after 11m9s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd (Unity Build: OFF) (push) Failing after 7m46s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd (Unity Build: ON) (push) Failing after 7m42s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd_asan (Unity Build: ON) (push) Failing after 8m8s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd_asan (Unity Build: OFF) (push) Failing after 8m9s
Bigfoot / Clang Format Checks (push) Failing after 10s
Some checks failed
Bigfoot / Build & Test Debug with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 16m41s
Bigfoot / Build & Test Debug with ./ConanProfiles/clang (Unity Build: OFF) (push) Successful in 17m21s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd (Unity Build: ON) (push) Successful in 11m4s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd (Unity Build: OFF) (push) Successful in 11m44s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd_asan (Unity Build: ON) (push) Failing after 5m30s
Bigfoot / Build & Test Debug with ./ConanProfiles/clangd_asan (Unity Build: OFF) (push) Failing after 5m34s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 24m10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: OFF) (push) Successful in 25m10s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd (Unity Build: OFF) (push) Successful in 13m13s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd (Unity Build: ON) (push) Successful in 12m56s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd_asan (Unity Build: ON) (push) Failing after 10m32s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clangd_asan (Unity Build: OFF) (push) Failing after 11m17s
Bigfoot / Build & Test Release with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 11m3s
Bigfoot / Build & Test Release with ./ConanProfiles/clang (Unity Build: OFF) (push) Failing after 11m9s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd (Unity Build: OFF) (push) Failing after 7m46s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd (Unity Build: ON) (push) Failing after 7m42s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd_asan (Unity Build: ON) (push) Failing after 8m8s
Bigfoot / Build & Test Release with ./ConanProfiles/clangd_asan (Unity Build: OFF) (push) Failing after 8m9s
Bigfoot / Clang Format Checks (push) Failing after 10s
This commit is contained in:
@@ -15,8 +15,9 @@ namespace Bigfoot
|
|||||||
{
|
{
|
||||||
template<typename ASSET>
|
template<typename ASSET>
|
||||||
concept BigfootAssetConcept = requires(ASSET p_asset, const ASSET p_constAsset) {
|
concept BigfootAssetConcept = requires(ASSET p_asset, const ASSET p_constAsset) {
|
||||||
requires FlatAssetConcept<typename ASSET::FLAT_ASSET> &&
|
requires FlatAssetConcept<typename ASSET::FLAT_ASSET>;
|
||||||
std::constructible_from<ASSET, FlatAssetWrapper<typename ASSET::FLAT_ASSET>*>;
|
requires std::constructible_from<ASSET, FlatAssetWrapper<typename ASSET::FLAT_ASSET>*>;
|
||||||
|
{ ASSET::ReflectionInfo() } -> std::convertible_to<eastl::span<const std::byte>>;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<BigfootAssetConcept ASSET>
|
template<BigfootAssetConcept ASSET>
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include <Utils/Singleton.hpp>
|
#include <Utils/Singleton.hpp>
|
||||||
#include <Utils/TargetMacros.h>
|
#include <Utils/TargetMacros.h>
|
||||||
|
|
||||||
#include <EngineTests/BigFile/Asset/AssetA.bfbs_generated.hpp>
|
|
||||||
#include <EngineTests/BigFile/Asset/AssetA.hpp>
|
#include <EngineTests/BigFile/Asset/AssetA.hpp>
|
||||||
#include <EngineTests/BigFileInfo_generated.hpp>
|
#include <EngineTests/BigFileInfo_generated.hpp>
|
||||||
|
|
||||||
@@ -283,7 +282,7 @@ TEST_F(BigFileFixture, Lol)
|
|||||||
TEST_F(BigFileFixture, Reflection)
|
TEST_F(BigFileFixture, Reflection)
|
||||||
{
|
{
|
||||||
[[maybe_unused]]
|
[[maybe_unused]]
|
||||||
const reflection::Schema* reflection = reflection::GetSchema(g_AssetA_bfbs.data());
|
const reflection::Schema* reflection = reflection::GetSchema(AssetA::ReflectionInfo().data());
|
||||||
|
|
||||||
auto IsRef = [](const reflection::Object* obj) -> bool
|
auto IsRef = [](const reflection::Object* obj) -> bool
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#define BIGFOOT_ENGINETESTS_ASSETA_HPP
|
#define BIGFOOT_ENGINETESTS_ASSETA_HPP
|
||||||
#include <Engine/BigFile/Asset/AssetContainer.hpp>
|
#include <Engine/BigFile/Asset/AssetContainer.hpp>
|
||||||
|
|
||||||
|
#include <EngineTests/BigFile/Asset/AssetA.bfbs_generated.hpp>
|
||||||
#include <EngineTests/BigFile/Asset/AssetA_generated.hpp>
|
#include <EngineTests/BigFile/Asset/AssetA_generated.hpp>
|
||||||
|
|
||||||
namespace Bigfoot
|
namespace Bigfoot
|
||||||
@@ -54,6 +55,12 @@ class AssetA
|
|||||||
return m_flatAsset->Asset().asset_header.get();
|
return m_flatAsset->Asset().asset_header.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[nodiscard]]
|
||||||
|
static constexpr eastl::span<const std::byte> ReflectionInfo()
|
||||||
|
{
|
||||||
|
return g_AssetA_bfbs;
|
||||||
|
}
|
||||||
|
|
||||||
~AssetA() = default;
|
~AssetA() = default;
|
||||||
|
|
||||||
AssetA& operator=(const AssetA& p_assetA) = default;
|
AssetA& operator=(const AssetA& p_assetA) = default;
|
||||||
|
|||||||
Reference in New Issue
Block a user