decode/image: Fix typo in assert in GetComponentSize()
This commit is contained in:
parent
b178c9a349
commit
24620bc4ea
|
@ -119,7 +119,7 @@ ComponentType GetComponentType(Tegra::Engines::SamplerDescriptor descriptor,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
UNIMPLEMENTED_MSG("texture format not implement={}", format);
|
UNIMPLEMENTED_MSG("Texture format not implemented={}", format);
|
||||||
return ComponentType::FLOAT;
|
return ComponentType::FLOAT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ u32 GetComponentSize(TextureFormat format, std::size_t component) {
|
||||||
case TextureFormat::G4R4:
|
case TextureFormat::G4R4:
|
||||||
return (component == 0 || component == 1) ? 4 : 0;
|
return (component == 0 || component == 1) ? 4 : 0;
|
||||||
default:
|
default:
|
||||||
UNIMPLEMENTED_MSG("texture format not implement={}", format);
|
UNIMPLEMENTED_MSG("Texture format not implemented={}", format);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ std::size_t GetImageComponentMask(TextureFormat format) {
|
||||||
case TextureFormat::R1:
|
case TextureFormat::R1:
|
||||||
return std::size_t{R};
|
return std::size_t{R};
|
||||||
default:
|
default:
|
||||||
UNIMPLEMENTED_MSG("texture format not implement={}", format);
|
UNIMPLEMENTED_MSG("Texture format not implemented={}", format);
|
||||||
return std::size_t{R | G | B | A};
|
return std::size_t{R | G | B | A};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue