Let's take the following 6 VkFormats
for example:
VK_FORMAT_R8_UNORM
VK_FORMAT_R8_SNORM
VK_FORMAT_R8_USCALED
VK_FORMAT_R8_SSCALED
VK_FORMAT_R8_UINT
VK_FORMAT_R8_SINT
All of these specify a one-component 8-bit format that has a single 8-bit R component.
The formats differ in whether they are (a) normalized, (b) scaled; or (c) integer. What does that mean? What are the differences between those three things? Where is that specified?
Are all 256 possible values of 8-bits meaningful and valid in all six formats?
(They also differ in whether they are signed or unsigned. I assume this means whether their underlying types are like the C types int8_t
or uint8_t
?)