Cleanup descriptor layout handling

This commit is contained in:
2023-09-03 17:07:23 +02:00
parent b328db0075
commit 446e11e3b8
7 changed files with 49 additions and 20 deletions

View File

@@ -162,6 +162,21 @@ namespace openVulkanoCpp::Math
return { r / factor, g / factor, b / factor, a * 255 / MAX_ALPHA_VALUE };
}
operator Math::Vector4i() const
{
return { r, g, b, a };
}
operator Math::Vector3i_SIMD() const
{
return { r, g, b };
}
operator Math::Vector3i() const
{
return { r, g, b };
}
RGB10A2& operator =(const RGB10A2& rhs)
{
this->value = rhs.value;