9 enum struct FormatFlags : uint32_t
13 VertexFormat = 1 << 1,
19 COGS_RENDERING_ENABLE_ENUM_FLAGS(FormatFlags);
21 enum class Format : uint16_t
154 BC6H_SIGNED_FLOAT_RGB,
155 BC6H_UNSIGNED_FLOAT_RGB,
160 PVRTC1_2BPP_UNORM_RGB,
161 PVRTC1_4BPP_UNORM_RGB,
162 PVRTC1_2BPP_UNORM_RGBA,
163 PVRTC1_4BPP_UNORM_RGBA,
166 EAC_BLOCK8_UNSIGNED_FLOAT_R,
167 EAC_BLOCK8_SIGNED_FLOAT_R,
168 EAC_BLOCK16_UNSIGNED_FLOAT_RG,
169 EAC_BLOCK16_SIGNED_FLOAT_RG,
171 ETC2_BLOCK8_UNORM_RGB,
172 ETC2_BLOCK8_UNORM_SRGB,
173 ETC2_BLOCK16_UNORM_RGBA,
174 ETC2_BLOCK16_UNORM_SRGBA,
185 ASTC_10x5_UNORM_RGBA,
186 ASTC_10x6_UNORM_RGBA,
187 ASTC_10x8_UNORM_RGBA,
188 ASTC_10x10_UNORM_RGBA,
189 ASTC_12x10_UNORM_RGBA,
190 ASTC_12x12_UNORM_RGBA,
192 ASTC_4x4_UNORM_SRGBA,
193 ASTC_5x4_UNORM_SRGBA,
194 ASTC_5x5_UNORM_SRGBA,
195 ASTC_6x5_UNORM_SRGBA,
196 ASTC_6x6_UNORM_SRGBA,
197 ASTC_8x5_UNORM_SRGBA,
198 ASTC_8x6_UNORM_SRGBA,
199 ASTC_8x8_UNORM_SRGBA,
200 ASTC_10x5_UNORM_SRGBA,
201 ASTC_10x6_UNORM_SRGBA,
202 ASTC_10x8_UNORM_SRGBA,
203 ASTC_10x10_UNORM_SRGBA,
204 ASTC_12x10_UNORM_SRGBA,
205 ASTC_12x12_UNORM_SRGBA,
214 R10G10B10A2_TYPELESS,
230 TextureFormat_Size = Format_Size,
234 X16_FLOAT = R16_FLOAT,
235 X16Y16_FLOAT = R16G16_FLOAT,
236 X16Y16Z16_FLOAT = R16G16B16_FLOAT,
237 X16Y16Z16W16_FLOAT = R16G16B16A16_FLOAT,
239 X32_FLOAT = R32_FLOAT,
240 X32Y32_FLOAT = R32G32_FLOAT,
241 X32Y32Z32_FLOAT = R32G32B32_FLOAT,
242 X32Y32Z32W32_FLOAT = R32G32B32A32_FLOAT,
245 using DataFormat = Format;
246 using TextureFormat = Format;
262 FormatFlags
flags = FormatFlags::None;
265 COGSRENDERING_DLL_API
const FormatInfo * getFormatInfo(Format format);
267 COGSRENDERING_DLL_API DataFormat parseDataFormat(
const StringView& format);
Provides a weakly referenced view over the contents of a string.
@ Depth
Render world-space distance from eye, scaled by 1/100 (so a value of 1 equals a distance of 100 units...
@ Alpha
Fetch elevation from alpha channel of elevation texture.
Contains all Cogs related functionality.