opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
color_render_buffer_format.h
Go to the documentation of this file.
1#pragma once
2
3#include <iosfwd>
4
5namespace osc
6{
7 // the underlying, color-renderable, format of a color render buffer
8 //
9 // note: the naming convention and documentation for each format is designed
10 // to be the same as Vulkan's:
11 //
12 // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFormat.html
14
15 // one-component, 8-bit unsigned normalized format that has a single 8-bit R component
17
18 // a four-component, 32-bit unsigned normalized format that has an 8-bit R component in
19 // byte 0, an 8-bit G component in byte 1, an 8-bit B component in byte 2, and an 8-bit A
20 // component in byte 3.
22
23 // a four-component, 32-bit unsigned normalized format that has an 8-bit R component
24 // stored with sRGB nonlinear encoding in byte 0, an 8-bit G component stored with sRGB
25 // nonlinear encoding in byte 1, an 8-bit B component stored with sRGB nonlinear encoding
26 // in byte 2, and an 8-bit A component in byte 3.
28
29 // a two-component, 32-bit signed floating-point format that has a 16-bit R component in
30 // bytes 0..1, and a 16-bit G component in bytes 2..3
32
33 // a three-component, 48-bit signed floating-point format that has a 16-bit R component in
34 // bytes 0..1, a 16-bit G component in bytes 2..3, and a 16-bit B component in bytes 4..5
36
37 // a four-component, 64-bit signed floating-point format that has a 16-bit R component in
38 // bytes 0..1, a 16-bit G component in bytes 2..3, a 16-bit B component in bytes 4..5, and
39 // a 16-bit A component in bytes 6..7
41
42 // a one-component, 32-bit signed floating-point format that has a single 32-bit R component.
44
46
49 };
50
52 {
54 }
55
56 std::ostream& operator<<(std::ostream&, ColorRenderBufferFormat);
57}
Definition custom_decoration_generator.h:5
std::ostream & operator<<(std::ostream &, const Object &)
constexpr bool is_srgb_encoded(ColorRenderBufferFormat format)
Definition color_render_buffer_format.h:51
ColorRenderBufferFormat
Definition color_render_buffer_format.h:13