Skip to content

Commit 1f3ae26

Browse files
committed
Temporary format promotion code discard formats other than RGB8
1 parent 237389b commit 1f3ae26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/nbl/video/utilities/IGPUObjectFromAssetConverter.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,8 +1574,12 @@ inline created_gpu_object_array<asset::ICPUImageView> IGPUObjectFromAssetConvert
15741574
requiredFormatUsages.attachment = 1;
15751575
if ((imageUsageFlags & asset::IImage::EUF_DEPTH_STENCIL_ATTACHMENT_BIT).value)
15761576
requiredFormatUsages.attachment = 1;
1577-
1577+
15781578
const auto format = imageCreationParams.format;
1579+
1580+
if(format != asset::EF_R8G8B8_SRGB)
1581+
continue; // This Temporary format promotion code only works for this format
1582+
15791583
bool formatSupported = false;
15801584
if (imageCreationParams.tiling == asset::IImage::ET_OPTIMAL)
15811585
{

0 commit comments

Comments
 (0)