diff options
author | rtk0c <[email protected]> | 2022-05-30 15:56:29 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-30 15:56:29 -0700 |
commit | 80afa67d2b9f1c0605696a3fd69058544fe12fe4 (patch) | |
tree | 3dfe2a6f45e4f5ca8ad534baf06d76d9c558333b /source/GraphicsTags.hpp | |
parent | 0d92ecfdbfc875a099d9e83714b3a2209668fca5 (diff) | |
parent | 7d8bca09b3c4bf1418e758bd3bd0d6f85672153e (diff) |
Changeset: 53
Diffstat (limited to 'source/GraphicsTags.hpp')
-rw-r--r-- | source/GraphicsTags.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/GraphicsTags.hpp b/source/GraphicsTags.hpp index 34c0885..f83b99c 100644 --- a/source/GraphicsTags.hpp +++ b/source/GraphicsTags.hpp @@ -5,6 +5,8 @@ #include <string> #include <string_view> +#include <MacrosCodegen.hpp> + namespace Tags { /// Vertex element semantics, used to identify the meaning of vertex buffer contents enum VertexElementSemantic { @@ -32,6 +34,7 @@ enum VertexElementSemantic { VES_Generic, VES_COUNT, }; +BRUSSEL_ENUM(VertexElementSemantic, ToString FromString ExcludeHeuristics); std::string_view NameOf(VertexElementSemantic semantic); VertexElementSemantic FindVertexElementSemantic(std::string_view name); @@ -72,6 +75,8 @@ enum VertexElementType { VET_Ushort4Norm, VET_NORM_END = VET_Ushort4Norm, }; +// TODO this enum isn't continuous, not supported yet +// BRUSSEL_ENUM(VertexElementType, ToString FromString ExcludeHeuristics); int SizeOf(VertexElementType type); int VectorLenOf(VertexElementType type); @@ -96,3 +101,5 @@ GLenum FindGLType(std::string_view name); constexpr GLuint kInvalidLocation = std::numeric_limits<GLuint>::max(); } // namespace Tags + +#include <generated/GraphicsTags.gh.inl> |