PsychGPURasterizerOffsets

>Psychtoolbox>PsychHardware

PsychGPURasterizerOffsets - Test GPU drivers for spatial misplacement of content.

The function tests if the GPU places content where it is told
to place it. It warns if this isn’t the case and returns corrective
offsets to compensate for the problem.

Different postioning methods are tested and potentially different
offsets are reported for the different methods.

Input args:
‘win’ Window handle to open onscreen window.
‘drivername’ driver name string to prefix to output messages.

Returns args: (x,y) offsets created by driver inaccuracy. You will need
to apply the negation of these to correct for driver misplacement!

(rpfx, rpfy) Corrective offsets for glRasterPos2f()
(rpix, rpiy) Corrective offsets for glRasterPos2i()
(vix, viy) Corrective offsets for glVertex2i()
(vfx, vfy) Corrective offsets for glVertex2f()

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychHardware/PsychGPURasterizerOffsets.m