File: kPsychNeedOtherStreamInput.m

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (24 lines) | stat: -rw-r--r-- 1,280 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function rval = kPsychNeedOtherStreamInput
% rval = kPsychNeedOtherStreamInput
%
% Return a flag that you can pass to the 'imagingmode' parameter of
% Screen('OpenWindow') in order to allow shaders in stereo configurations
% to access both eyes input images.
%
% Normally only the stereo compositing chain of the pipeline can access
% both image buffers for left-eye and right-eye view. This flag also enables
% access during the per-view image processing chain, and during the per
% view output formatting/post-processing chain. Logic for these chains is
% that the primary image channel is bound to texture unit 0 as usual, but
% additionally now the other channel (right channel for left view processing,
% and left channel for right view processing) is bound to texture unit 1.
%
% Caution: The secondary channel is bound with nearest neighbour filtering.
% Caution: The shaders in one of these chains will only have access to the
% secondary channels initial input image for their chains (inputimageFBO in case
% of the image processing chain, preConversionFBO in case of output conversion
% / final formatting). Multi-Pass chains have to take this into account that the
% secondary channel won't update during multi-stage processing, but stays static.
%
rval = 2^17;
return