Cleanup project

- To prepare being able to instead create games in a different
  repository
This commit is contained in:
Thraix
2024-10-01 19:42:44 +02:00
parent df59dc3f3f
commit 7cfb38163b
68 changed files with 204 additions and 2612 deletions
@@ -13,6 +13,8 @@ namespace Copium
minFilter = GetFilterFromString(metaClass.GetValue("min-filter"));
if (metaClass.HasValue("mag-filter"))
magFilter = GetFilterFromString(metaClass.GetValue("mag-filter"));
if (metaClass.HasValue("address-mode"))
addressMode = GetAddressModeFromString(metaClass.GetValue("address-mode"));
}
void SamplerCreator::SetMinFilter(VkFilter minFilter)
@@ -34,4 +36,14 @@ namespace Copium
else
CP_ABORT("Invalid texture filtering: %s", str.c_str());
}
VkSamplerAddressMode SamplerCreator::GetAddressModeFromString(const std::string& str) const
{
if (str == "clamp-to-edge")
return VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
else if (str == "repeat")
return VK_SAMPLER_ADDRESS_MODE_REPEAT;
else
CP_ABORT("Invalid texture address mode: %s", str.c_str());
}
}