[GPU] Add IsSRGBCapable default case.

This commit is contained in:
gibbed 2018-05-20 12:18:31 -05:00
parent c233eabeda
commit cddfa26bae
1 changed files with 2 additions and 1 deletions

View File

@ -211,9 +211,10 @@ inline bool IsSRGBCapable(TextureFormat format) {
case TextureFormat::k_10_11_11_AS_16_16_16_16: case TextureFormat::k_10_11_11_AS_16_16_16_16:
case TextureFormat::k_11_11_10_AS_16_16_16_16: case TextureFormat::k_11_11_10_AS_16_16_16_16:
return true; return true;
} default:
return false; return false;
} }
}
inline TextureFormat ColorFormatToTextureFormat(ColorFormat color_format) { inline TextureFormat ColorFormatToTextureFormat(ColorFormat color_format) {
return static_cast<TextureFormat>(color_format); return static_cast<TextureFormat>(color_format);