From 4be8053ba9ec4322b47bd77e2821e2fa74967b08 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 12 Apr 2016 22:38:49 -0400 Subject: [PATCH] Updated documentation. --- Outputs/CRT/CRT.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Outputs/CRT/CRT.hpp b/Outputs/CRT/CRT.hpp index 2f2dadc26..25c2482c9 100644 --- a/Outputs/CRT/CRT.hpp +++ b/Outputs/CRT/CRT.hpp @@ -217,9 +217,12 @@ class CRT { format will be applied. @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 - the source buffer sampling location. - The shader may assume a uniform array of sampler2Ds named `buffers` provides access to all input data. + `vec3 rgb_sample(usampler2D sampler, vec2 coordinate, vec2 icoordinate)` that evaluates to an RGB colour + as a function of: + + * `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) {