MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / isConvertibleToRGBA32Float

Function isConvertibleToRGBA32Float

Source/Falcor/Utils/Image/Bitmap.cpp:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static bool isConvertibleToRGBA32Float(ResourceFormat format)
109{
110 FormatType type = getFormatType(format);
111 bool isHalfFormat = (type == FormatType::Float && getNumChannelBits(format, 0) == 16);
112 bool isLargeIntFormat = ((type == FormatType::Uint || type == FormatType::Sint) && getNumChannelBits(format, 0) >= 16);
113 return isHalfFormat || isLargeIntFormat;
114}
115
116/**
117 * Converts half float image to RGBA float image.

Callers 3

convertToRGBA32FloatFunction · 0.85
getFileDialogFiltersMethod · 0.85
saveImageMethod · 0.85

Calls 2

getFormatTypeFunction · 0.85
getNumChannelBitsFunction · 0.85

Tested by

no test coverage detected