Add flags to ResourceFormat to replace bgraOrder/srgbCorrected

* Allows for future expansion as well
This commit is contained in:
baldurk
2018-12-11 19:57:20 +00:00
parent 2db56c2a86
commit 2411ce70ea
25 changed files with 192 additions and 152 deletions
+2 -2
View File
@@ -457,12 +457,12 @@ void ImageViewer::RefreshFile()
rgba8_unorm.compCount = 4;
rgba8_unorm.compType = CompType::UNorm;
rgba8_unorm.type = ResourceFormatType::Regular;
rgba8_unorm.srgbCorrected = true;
rgba8_unorm.setSrgbCorrected(true);
ResourceFormat rgba32_float = rgba8_unorm;
rgba32_float.compByteWidth = 4;
rgba32_float.compType = CompType::Float;
rgba32_float.srgbCorrected = false;
rgba32_float.setSrgbCorrected(false);
texDetails.creationFlags = TextureCategory::SwapBuffer | TextureCategory::ColorTarget;
texDetails.cubemap = false;