mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-14 06:58:56 +02:00
[vk] SanitizeComponent Adjustment
This commit is contained in:
parent
ae48fe0a13
commit
822d485e18
1 changed files with 3 additions and 2 deletions
|
|
@ -32,9 +32,10 @@ constexpr TextureFormat SanitizeFormat(TextureFormat format) {
|
|||
}
|
||||
|
||||
constexpr ComponentType SanitizeComponent(ComponentType component) {
|
||||
switch (component) {
|
||||
case static_cast<ComponentType>(0):
|
||||
if (component == static_cast<ComponentType>(0)) {
|
||||
return ComponentType::UNORM;
|
||||
}
|
||||
switch (component) {
|
||||
case ComponentType::SNORM_FORCE_FP16:
|
||||
return ComponentType::SNORM;
|
||||
case ComponentType::UNORM_FORCE_FP16:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue