From 246ea70e936bc21de35569ca2c4f78c78b8c852f Mon Sep 17 00:00:00 2001 From: Romain BOULLARD Date: Tue, 8 Sep 2026 23:36:37 +0200 Subject: [PATCH] GraphicsAPI --- .../Include/GraphicsInterface/GraphicsAPI.fbs | 6 ++ .../GraphicsAPI_generated.hpp | 71 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI.fbs create mode 100644 Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI_generated.hpp diff --git a/Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI.fbs b/Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI.fbs new file mode 100644 index 0000000..eec5ea6 --- /dev/null +++ b/Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI.fbs @@ -0,0 +1,6 @@ +namespace Bigfoot; + +enum GraphicsAPI: byte +{ + Vulkan +} diff --git a/Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI_generated.hpp b/Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI_generated.hpp new file mode 100644 index 0000000..a9dc2d5 --- /dev/null +++ b/Bigfoot/Libs/Graphics/GraphicsInterface/Include/GraphicsInterface/GraphicsAPI_generated.hpp @@ -0,0 +1,71 @@ +// automatically generated by the FlatBuffers compiler, do not modify + + +#ifndef FLATBUFFERS_GENERATED_GRAPHICSAPI_BIGFOOT_H_ +#define FLATBUFFERS_GENERATED_GRAPHICSAPI_BIGFOOT_H_ + +#include "flatbuffers/flatbuffers.h" + +// Ensure the included flatbuffers.h is the same version as when this file was +// generated, otherwise it may not be compatible. +static_assert(FLATBUFFERS_VERSION_MAJOR == 25 && + FLATBUFFERS_VERSION_MINOR == 12 && + FLATBUFFERS_VERSION_REVISION == 19, + "Non-compatible flatbuffers version included"); +// Ensure the included flatbuffers.h is Bigfoot's fork - stock +// flatbuffers (or a differently versioned Bigfoot fork) is not compatible. +#ifndef FLATBUFFERS_BIGFOOT_VERSION +#error "This file requires Bigfoot's flatbuffers fork - stock flatbuffers is not compatible" +#endif +static_assert(FLATBUFFERS_BIGFOOT_VERSION == 1, + "Non-compatible Bigfoot flatbuffers fork version included"); + +#include "EASTL/unique_ptr.h" +#include "EASTL/string.h" +#include "EASTL/vector.h" + +namespace Bigfoot { + +enum class GraphicsAPI : int8_t { + Vulkan = 0, + MIN = Vulkan, + MAX = Vulkan +}; + +inline const GraphicsAPI (&EnumValuesGraphicsAPI())[1] { + static const GraphicsAPI values[] = { + GraphicsAPI::Vulkan + }; + return values; +} + +inline const char * const *EnumNamesGraphicsAPI() { + static const char * const names[2] = { + "Vulkan", + nullptr + }; + return names; +} + +inline const char *EnumNameGraphicsAPI(GraphicsAPI e) { + if (::flatbuffers::IsOutRange(e, GraphicsAPI::Vulkan, GraphicsAPI::Vulkan)) return ""; + const size_t index = static_cast(e); + return EnumNamesGraphicsAPI()[index]; +} + +inline const ::flatbuffers::TypeTable *GraphicsAPITypeTable() { + static const ::flatbuffers::TypeCode type_codes[] = { + { ::flatbuffers::ET_CHAR, 0, 0 } + }; + static const ::flatbuffers::TypeFunction type_refs[] = { + Bigfoot::GraphicsAPITypeTable + }; + static const ::flatbuffers::TypeTable tt = { + ::flatbuffers::ST_ENUM, 1, type_codes, type_refs, nullptr, nullptr, nullptr + }; + return &tt; +} + +} // namespace Bigfoot + +#endif // FLATBUFFERS_GENERATED_GRAPHICSAPI_BIGFOOT_H_