File: kPsychUseExternalSinkTextures.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 (20 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function rval = kPsychUseExternalSinkTextures
% rval = kPsychUseExternalSinkTextures
%
% Return a flag that you can pass to the 'imagingmode' parameter of
% Screen('OpenWindow') together with the 'kPsychNeedFinalizedFBOSinks'
% flag. If this kPsychUseExternalSinkTextures flag is given then the
% OpenGL framebuffer objects which are created and attached as final
% output image sinks due to the 'kPsychNeedFinalizedFBOSinks' flag will
% not use Screen() internally created OpenGL textures as color attachments,
% and thereby as final target of the output images. Instead, externally
% created suitable (color render-to-texture capable) non-power-of-two
% OpenGL textures will get dynamically attached as render targets during
% the relevant render pass. Producers of such external target textures can
% be 3rd party SDKs or runtimes, e.g., the Oculus VR 1.x SDK and runtime
% which would send such textures with the final rendered output images to
% a VR compositor for output on a suitable VR headset. Other applications
% are conceivable, but this is the initial target application of this flag.
%
rval = 2^21;
return