opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
texture_format.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstddef>
6#include <optional>
7
8namespace osc
9{
10 enum class TextureFormat {
11 R8,
12 RG16,
13 RGB24,
14 RGBA32,
15
16 RGFloat,
19
21 };
22
26 std::optional<TextureFormat> to_texture_format(size_t num_components, TextureComponentFormat);
27}
Definition custom_decoration_generator.h:5
TextureComponentFormat
Definition texture_component_format.h:7
std::optional< TextureFormat > to_texture_format(size_t num_components, TextureComponentFormat)
size_t num_components_in(TextureFormat)
TextureFormat
Definition texture_format.h:10
constexpr U to(T &&value)
Definition conversion.h:56
TextureComponentFormat component_format_of(TextureFormat)
size_t num_bytes_per_pixel_in(TextureFormat)