File: kPsychUse32BPCFloatAsap.m

package info (click to toggle)
psychtoolbox-3 3.0.14.20170103%2Bgit6-g605ff5c.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 103,044 kB
  • ctags: 69,483
  • sloc: ansic: 167,371; cpp: 11,232; objc: 4,708; sh: 1,875; python: 383; php: 344; makefile: 207; java: 113
file content (25 lines) | stat: -rw-r--r-- 1,268 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function rval = kPsychUse32BPCFloatAsap
% rval = kPsychUse32BPCFloatAsap
%
% Return a flag that you can pass to the 'imagingmode' parameter of
% Screen('OpenWindow') in order to request support for internal
% framebuffers that store color information with 32 bits per color
% component in floating point format if this is supported by the graphics
% hardware without any restrictions.
%
% If you hardware is able to support all its functions (especially
% framebuffer blending) without restrictions then all framebuffers will be
% configured to 32 bpc precision. This should be the case on ATI Radeon HD
% 2000 and NVidia Geforce 8000 hardware. On older hardware, which is limited
% in its functionality when using 32 bpc framebuffers (e.g., the very
% useful framebuffer blending doesn't work), PTB will allocate a lower
% precision 16 bpc float framebuffer as initial framebuffer for user code
% drawing. All further processing of the content of that 16 bpc framebuffer
% will be carried out using 32 bpc precision framebuffers.
%
% This function is a workaround for old hardware. If you intend to do lots
% of serious work with HDR imagery or high contrast precision displays, do
% yourself a favor and buy a current generation graphics card.
%
rval = 4096;
return