1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-11 04:28:58 +00:00

Updated documentation.

This commit is contained in:
Thomas Harte 2016-04-12 22:38:49 -04:00
parent 4d889d9c7f
commit 4be8053ba9

View File

@ -217,9 +217,12 @@ class CRT {
format will be applied. format will be applied.
@param shader A GLSL fragent including a function with the signature @param shader A GLSL fragent including a function with the signature
`vec4 rgb_sample(vec2 coordinate)` that evaluates to an RGBA colour as a function of `vec3 rgb_sample(usampler2D sampler, vec2 coordinate, vec2 icoordinate)` that evaluates to an RGB colour
the source buffer sampling location. as a function of:
The shader may assume a uniform array of sampler2Ds named `buffers` provides access to all input data.
* `usampler2D sampler` representing the source buffer;
* `vec2 coordinate` representing the source buffer location to sample from in the range [0, 1); and
* `vec2 icoordinate` representing the source buffer location to sample from as a pixel count, for easier multiple-pixels-per-byte unpacking.
*/ */
inline void set_rgb_sampling_function(const char *shader) inline void set_rgb_sampling_function(const char *shader)
{ {