docs/sphinx: Document SRGB changes

master
jpark37 2020-12-28 00:50:43 -08:00
parent 66259560e0
commit edbad7e93d
3 changed files with 13 additions and 0 deletions

View File

@ -77,6 +77,7 @@ Then the uniforms are set through the following functions:
- :c:func:`gs_effect_set_vec3()`
- :c:func:`gs_effect_set_vec4()`
- :c:func:`gs_effect_set_texture()`
- :c:func:`gs_effect_set_texture_srgb()`
There are two "universal" effect parameters that may be expected of
effects: **ViewProj**, and **image**. The **ViewProj** parameter

View File

@ -337,6 +337,15 @@ HLSL format.
---------------------
.. function:: void gs_effect_set_texture_srgb(gs_eparam_t *param, gs_texture_t *val)
Sets a texture parameter using SRGB view if available.
:param param: Effect parameter
:param val: Texture
---------------------
.. function:: void gs_effect_set_val(gs_eparam_t *param, const void *val, size_t size)
Sets a parameter with data manually.

View File

@ -42,6 +42,9 @@ Graphics Enumerations
- GS_DXT1 - Compressed DXT1
- GS_DXT3 - Compressed DXT3
- GS_DXT5 - Compressed DXT5
- GS_RGBA_UNORM - RGBA, 8 bits per channel, no SRGB aliasing
- GS_BGRX_UNORM - BGRX, 8 bits per channel, no SRGB aliasing
- GS_BGRA_UNORM - BGRA, 8 bits per channel, no SRGB aliasing
.. type:: enum gs_zstencil_format