.. _program_listing_file_Src_GraphicsEngineVulkan_scene_Vertex.ixx: Program Listing for File Vertex.ixx =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``Src/GraphicsEngineVulkan/scene/Vertex.ixx``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp module; #include "scene/Vertex.hpp" #define GLM_ENABLE_EXPERIMENTAL #include #include #include #include #include #include export module kataglyphis.vulkan.vertex; export using ::Vertex; export namespace vertex { std::array getVertexInputAttributeDesc(); } export namespace std { template<> struct hash { size_t operator()(Vertex const &vertex) const { size_t h1 = hash()(vertex.pos); size_t h2 = hash()(vertex.color); size_t h3 = hash()(vertex.texture_coords); size_t h4 = hash()(vertex.normal); return (((((((h2 << 1) ^ h1) >> 1) ^ h3) << 1) ^ h4)); } }; }// namespace std