25 lines
408 B
C
25 lines
408 B
C
// =============================================
|
|
// Aster: size.h
|
|
// Copyright (c) 2020-2024 Anish Bhobe
|
|
// =============================================
|
|
|
|
#pragma once
|
|
|
|
#include "global.h"
|
|
|
|
struct Size
|
|
{
|
|
u32 m_Width;
|
|
u32 m_Height;
|
|
|
|
operator vk::Extent2D() const
|
|
{
|
|
return {m_Width, m_Height};
|
|
}
|
|
|
|
glm::vec<2, u32>
|
|
ToVec()
|
|
{
|
|
return {m_Width, m_Height};
|
|
}
|
|
}; |