mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
finxing memory usages
This commit is contained in:
@@ -12,7 +12,9 @@ namespace mlx
|
||||
alignas(16) Vec2f uv = Vec2f{ 0.0f, 0.0f };
|
||||
|
||||
Vertex() = default;
|
||||
Vertex(Vec4f p, Vec2f u) : position(std::move(p)), uv(std::move(u)) {}
|
||||
inline Vertex(Vec4f p, Vec2f u) : position(std::move(p)), uv(std::move(u)) {}
|
||||
|
||||
[[nodiscard]] inline bool operator==(const Vertex& rhs) const noexcept;
|
||||
|
||||
[[nodiscard]] inline static VkVertexInputBindingDescription GetBindingDescription();
|
||||
[[nodiscard]] inline static std::array<VkVertexInputAttributeDescription, 2> GetAttributeDescriptions();
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
bool Vertex::operator==(const Vertex& rhs) const noexcept
|
||||
{
|
||||
return position == rhs.position && uv == rhs.uv;
|
||||
}
|
||||
|
||||
VkVertexInputBindingDescription Vertex::GetBindingDescription()
|
||||
{
|
||||
VkVertexInputBindingDescription binding_description{};
|
||||
|
||||
Reference in New Issue
Block a user