mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-06 06:00:12 +00:00
[vk] SanitizeComponent Adjustment
This commit is contained in:
committed by
Caio Oliveira
parent
35501741ae
commit
955b3befa9
@@ -32,9 +32,10 @@ constexpr TextureFormat SanitizeFormat(TextureFormat format) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constexpr ComponentType SanitizeComponent(ComponentType component) {
|
constexpr ComponentType SanitizeComponent(ComponentType component) {
|
||||||
switch (component) {
|
if (component == static_cast<ComponentType>(0)) {
|
||||||
case static_cast<ComponentType>(0):
|
|
||||||
return ComponentType::UNORM;
|
return ComponentType::UNORM;
|
||||||
|
}
|
||||||
|
switch (component) {
|
||||||
case ComponentType::SNORM_FORCE_FP16:
|
case ComponentType::SNORM_FORCE_FP16:
|
||||||
return ComponentType::SNORM;
|
return ComponentType::SNORM;
|
||||||
case ComponentType::UNORM_FORCE_FP16:
|
case ComponentType::UNORM_FORCE_FP16:
|
||||||
|
|||||||
Reference in New Issue
Block a user