39 FORMAT_R8_UNORM = 0, FORMAT_FIRST = FORMAT_R8_UNORM,
101 FORMAT_RGBA32_SFLOAT,
110 FORMAT_RGB10A2_UNORM,
112 FORMAT_RGB9E5_UFLOAT,
113 FORMAT_RG11B10_UFLOAT,
138 FORMAT_D32_UFLOAT_S8_UNORM,
141 FORMAT_RGB_DXT1_UNORM, FORMAT_COMPRESSED_FIRST = FORMAT_RGB_DXT1_UNORM,
142 FORMAT_RGBA_DXT1_UNORM,
143 FORMAT_RGBA_DXT3_UNORM,
144 FORMAT_RGBA_DXT5_UNORM,
145 FORMAT_R_ATI1N_UNORM,
146 FORMAT_R_ATI1N_SNORM,
147 FORMAT_RG_ATI2N_UNORM,
148 FORMAT_RG_ATI2N_SNORM,
149 FORMAT_RGB_BP_UFLOAT,
150 FORMAT_RGB_BP_SFLOAT,
152 FORMAT_RGB_PVRTC_8X8_UNORM,
153 FORMAT_RGB_PVRTC_16X8_UNORM,
154 FORMAT_RGBA_PVRTC_8X8_UNORM,
155 FORMAT_RGBA_PVRTC_16X8_UNORM,
156 FORMAT_RGBA_PVRTC2_8X8_UNORM,
157 FORMAT_RGBA_PVRTC2_16X8_UNORM,
158 FORMAT_RGB_ATC_UNORM,
159 FORMAT_RGBA_ATC_EXPLICIT_UNORM,
160 FORMAT_RGBA_ATC_INTERPOLATED_UNORM,
161 FORMAT_RGB_ETC_UNORM,
162 FORMAT_RGB_ETC2_UNORM,
163 FORMAT_RGBA_ETC2_PUNCHTHROUGH_UNORM,
164 FORMAT_RGBA_ETC2_UNORM,
165 FORMAT_R11_EAC_UNORM,
166 FORMAT_R11_EAC_SNORM,
167 FORMAT_RG11_EAC_UNORM,
168 FORMAT_RG11_EAC_SNORM,
169 FORMAT_RGBA_ASTC_4X4_UNORM,
170 FORMAT_RGBA_ASTC_5X4_UNORM,
171 FORMAT_RGBA_ASTC_5X5_UNORM,
172 FORMAT_RGBA_ASTC_6X5_UNORM,
173 FORMAT_RGBA_ASTC_6X6_UNORM,
174 FORMAT_RGBA_ASTC_8X5_UNORM,
175 FORMAT_RGBA_ASTC_8X6_UNORM,
176 FORMAT_RGBA_ASTC_8X8_UNORM,
177 FORMAT_RGBA_ASTC_10X5_UNORM,
178 FORMAT_RGBA_ASTC_10X6_UNORM,
179 FORMAT_RGBA_ASTC_10X8_UNORM,
180 FORMAT_RGBA_ASTC_10X10_UNORM,
181 FORMAT_RGBA_ASTC_12X10_UNORM,
182 FORMAT_RGBA_ASTC_12X12_UNORM,
185 FORMAT_RGB_DXT1_SRGB,
186 FORMAT_RGBA_DXT1_SRGB,
187 FORMAT_RGBA_DXT3_SRGB,
188 FORMAT_RGBA_DXT5_SRGB,
190 FORMAT_RGB_PVRTC_8X8_SRGB,
191 FORMAT_RGB_PVRTC_16X8_SRGB,
192 FORMAT_RGBA_PVRTC_8X8_SRGB,
193 FORMAT_RGBA_PVRTC_16X8_SRGB,
194 FORMAT_RGBA_PVRTC2_8X8_SRGB,
195 FORMAT_RGBA_PVRTC2_16X8_SRGB,
197 FORMAT_RGBA_ETC2_PUNCHTHROUGH_SRGB,
198 FORMAT_RGBA_ETC2_SRGB,
199 FORMAT_RGBA_ASTC_4X4_SRGB,
200 FORMAT_RGBA_ASTC_5X4_SRGB,
201 FORMAT_RGBA_ASTC_5X5_SRGB,
202 FORMAT_RGBA_ASTC_6X5_SRGB,
203 FORMAT_RGBA_ASTC_6X6_SRGB,
204 FORMAT_RGBA_ASTC_8X5_SRGB,
205 FORMAT_RGBA_ASTC_8X6_SRGB,
206 FORMAT_RGBA_ASTC_8X8_SRGB,
207 FORMAT_RGBA_ASTC_10X5_SRGB,
208 FORMAT_RGBA_ASTC_10X6_SRGB,
209 FORMAT_RGBA_ASTC_10X8_SRGB,
210 FORMAT_RGBA_ASTC_10X10_SRGB,
211 FORMAT_RGBA_ASTC_12X10_SRGB,
212 FORMAT_RGBA_ASTC_12X12_SRGB, FORMAT_COMPRESSED_LAST = FORMAT_RGBA_ASTC_12X12_SRGB, FORMAT_LAST = FORMAT_RGBA_ASTC_12X12_SRGB
218 FORMAT_COUNT = FORMAT_LAST - FORMAT_FIRST + 1,
219 FORMAT_COMPRESSED_COUNT = FORMAT_COMPRESSED_LAST - FORMAT_COMPRESSED_FIRST + 1
222 inline bool is_compressed(format Format)
224 return Format >= FORMAT_COMPRESSED_FIRST && Format <= FORMAT_COMPRESSED_LAST;
227 inline bool is_valid(format Format)
229 return Format >= FORMAT_FIRST && Format <= FORMAT_LAST;
232 std::uint32_t block_size(format Format);
233 gli::dim3_t block_dimensions(format Format);
234 std::uint32_t component_count(format Format);
237 #include "./core/format.inl"
OpenGL Image (gli.g-truc.net)