ReShade
A generic post-processing injector for games and video software.
Namespaces | Enumerations | Functions
reshade_api_format.hpp File Reference
#include <cfloat>
#include <cstdint>

Go to the source code of this file.

Namespaces

 reshade
 
 reshade::api
 

Enumerations

enum class  reshade::api::format : uint32_t {
  reshade::api::unknown , reshade::api::r1_unorm , reshade::api::l8_unorm , reshade::api::a8_unorm ,
  reshade::api::r8_typeless , reshade::api::r8_uint , reshade::api::r8_sint , reshade::api::r8_unorm ,
  reshade::api::r8_snorm , reshade::api::l8a8_unorm , reshade::api::r8g8_typeless , reshade::api::r8g8_uint ,
  reshade::api::r8g8_sint , reshade::api::r8g8_unorm , reshade::api::r8g8_snorm , reshade::api::r8g8b8a8_typeless ,
  reshade::api::r8g8b8a8_uint , reshade::api::r8g8b8a8_sint , reshade::api::r8g8b8a8_unorm , reshade::api::r8g8b8a8_unorm_srgb ,
  reshade::api::r8g8b8a8_snorm , reshade::api::r8g8b8x8_unorm , reshade::api::r8g8b8x8_unorm_srgb , reshade::api::b8g8r8a8_typeless ,
  reshade::api::b8g8r8a8_unorm , reshade::api::b8g8r8a8_unorm_srgb , reshade::api::b8g8r8x8_typeless , reshade::api::b8g8r8x8_unorm ,
  reshade::api::b8g8r8x8_unorm_srgb , reshade::api::r10g10b10a2_typeless , reshade::api::r10g10b10a2_uint , reshade::api::r10g10b10a2_unorm ,
  reshade::api::r10g10b10a2_xr_bias , reshade::api::b10g10r10a2_typeless , reshade::api::b10g10r10a2_uint , reshade::api::b10g10r10a2_unorm ,
  reshade::api::l16_unorm , reshade::api::r16_typeless , reshade::api::r16_uint , reshade::api::r16_sint ,
  reshade::api::r16_unorm , reshade::api::r16_snorm , reshade::api::r16_float , reshade::api::l16a16_unorm ,
  reshade::api::r16g16_typeless , reshade::api::r16g16_uint , reshade::api::r16g16_sint , reshade::api::r16g16_unorm ,
  reshade::api::r16g16_snorm , reshade::api::r16g16_float , reshade::api::r16g16b16a16_typeless , reshade::api::r16g16b16a16_uint ,
  reshade::api::r16g16b16a16_sint , reshade::api::r16g16b16a16_unorm , reshade::api::r16g16b16a16_snorm , reshade::api::r16g16b16a16_float ,
  reshade::api::r32_typeless , reshade::api::r32_uint , reshade::api::r32_sint , reshade::api::r32_float ,
  reshade::api::r32g32_typeless , reshade::api::r32g32_uint , reshade::api::r32g32_sint , reshade::api::r32g32_float ,
  reshade::api::r32g32b32_typeless , reshade::api::r32g32b32_uint , reshade::api::r32g32b32_sint , reshade::api::r32g32b32_float ,
  reshade::api::r32g32b32a32_typeless , reshade::api::r32g32b32a32_uint , reshade::api::r32g32b32a32_sint , reshade::api::r32g32b32a32_float ,
  reshade::api::r9g9b9e5 , reshade::api::r11g11b10_float , reshade::api::b5g6r5_unorm , reshade::api::b5g5r5a1_unorm ,
  reshade::api::b5g5r5x1_unorm , reshade::api::b4g4r4a4_unorm , reshade::api::a4b4g4r4_unorm , reshade::api::s8_uint ,
  reshade::api::d16_unorm , reshade::api::d16_unorm_s8_uint , reshade::api::d24_unorm_x8_uint , reshade::api::d24_unorm_s8_uint ,
  reshade::api::d32_float , reshade::api::d32_float_s8_uint , reshade::api::r24_g8_typeless , reshade::api::r24_unorm_x8_uint ,
  reshade::api::x24_unorm_g8_uint , reshade::api::r32_g8_typeless , reshade::api::r32_float_x8_uint , reshade::api::x32_float_g8_uint ,
  reshade::api::bc1_typeless , reshade::api::bc1_unorm , reshade::api::bc1_unorm_srgb , reshade::api::bc2_typeless ,
  reshade::api::bc2_unorm , reshade::api::bc2_unorm_srgb , reshade::api::bc3_typeless , reshade::api::bc3_unorm ,
  reshade::api::bc3_unorm_srgb , reshade::api::bc4_typeless , reshade::api::bc4_unorm , reshade::api::bc4_snorm ,
  reshade::api::bc5_typeless , reshade::api::bc5_unorm , reshade::api::bc5_snorm , reshade::api::bc6h_typeless ,
  reshade::api::bc6h_ufloat , reshade::api::bc6h_sfloat , reshade::api::bc7_typeless , reshade::api::bc7_unorm ,
  reshade::api::bc7_unorm_srgb , reshade::api::r8g8_b8g8_unorm , reshade::api::g8r8_g8b8_unorm , reshade::api::intz
}
 The available data and texture formats. This is mostly compatible with 'DXGI_FORMAT'. More...
 
enum class  reshade::api::color_space : uint32_t {
  reshade::api::unknown , reshade::api::srgb_nonlinear , reshade::api::extended_srgb_linear , reshade::api::hdr10_st2084 ,
  reshade::api::hdr10_hlg
}
 The available color space types for presentation. More...
 

Functions

format reshade::api::format_to_typeless (format value)
 Converts the specified format value to its equivalent typeless variant. More...
 
format reshade::api::format_to_default_typed (format value, int srgb_variant=-1)
 Converts the specified format value to its equivalent typed variant ("unorm" or "float"). More...
 
format reshade::api::format_to_depth_stencil_typed (format value)
 Converts the specified format value to its equivalent depth-stencil variant. More...
 
const uint32_t reshade::api::format_row_pitch (format value, uint32_t width)
 Gets the number of bytes a texture row of the specified format value occupies. More...
 
const uint32_t reshade::api::format_slice_pitch (format value, uint32_t row_pitch, uint32_t height)
 Gets the number of bytes a texture slice of the specified format value occupies. More...