In the GLSL spec, and other sources about GLSL, sampler types are available in 3 dimensions: sampler1D
, sampler2D
, and sampler3D
.
However when I try to compile GLSL programs using WebGL in Chrome (both regular, and also in Canary), sampler2D
and sampler3D
are accepted but sampler1D gives a syntax error. Code:
uniform sampler1D tex1;
Error:
FS ERROR: ERROR: 0:9: 'sampler1D' : syntax error
This error occurs even if I give Canary the command line argument --use-gl=desktop
.
I am running Chrome 12.0.742.68 beta-m, and Canary 13.0.782.1. The chipset I have is Nvidia Quadro NVS 160M.
Is it possible that Nvidia allows 2- and 3-dimensional texture samplers, but not 1D? I've tried searching for information to that effect, but have not found anything.