Data Types are types of variables useable in shaders.
I found those at Data Types page on OpenGL Wiki.
-
bool
1 bit (true / false)-
bvec2
2D vector -
bvec3
3D vector -
bvec4
4D vector
-
-
int
32-bit integer-
ivec2
2D vector -
ivec3
3D vector -
ivec4
4D vector
-
-
uint
32-bit unsigned integer-
uvec2
2D vector -
uvec3
3D vector -
uvec4
4D vector
-
-
float
single-precision floating point number-
vec2
2D vector -
vec3
3D vector -
vec4
4D vector
-
mat2
2x2 matrix -
mat3
3x3 matrix -
mat4
4x4 matrix -
mat2x3
2x3 matrix -
mat2x4
2x4 matrix -
mat3x2
3x2 matrix -
mat3x4
3x4 matrix -
mat4x2
4x2 matrix -
mat4x3
4x3 matrix
-
-
double
double-precision floating point number-
dvec2
2D vector -
dvec3
3D vector -
dvec4
4D vector
-
dmat2
2x2 matrix -
dmat3
3x3 matrix -
dmat4
4x4 matrix -
dmat2x3
2x3 matrix -
dmat2x4
2x4 matrix -
dmat3x2
3x2 matrix -
dmat3x4
3x4 matrix -
dmat4x2
4x2 matrix -
dmat4x3
4x3 matrix
-
-
Textures:
-
sampler1D
(GL_TEXTURE_1D
) -
sampler2D
(GL_TEXTURE_2D
) -
sampler3D
(GL_TEXTURE_3D
) -
samplerCube
(GL_TEXTURE_CUBE_MAP
) -
sampler2DRect
(GL_TEXTURE_RECTANGLE
) -
sampler1DArray
(GL_TEXTURE_1D_ARRAY
) -
sampler2DArray
(GL_TEXTURE_2D_ARRAY
) -
samplerCubeArray
(GL_TEXTURE_CUBE_MAP_ARRAY
) -
samplerBuffer
(GL_TEXTURE_BUFFER
) -
sampler2DMS
(GL_TEXTURE_2D_MULTISAMPLE
) -
sampler2DMSArray
(GL_TEXTURE_2D_MULTISAMPLE_ARRAY
)
-
-
Shadow Textures:
-
sampler1DShadow
(GL_TEXTURE_1D
) -
sampler2DShadow
(GL_TEXTURE_2D
) -
samplerCubeShadow
(GL_TEXTURE_CUBE_MAP
) -
sampler2DRectShadow
(GL_TEXTURE_RECTANGLE
) -
sampler1DArrayShadow
(GL_TEXTURE_1D_ARRAY
) -
sampler2DArrayShadow
(GL_TEXTURE_2D_ARRAY
) -
samplerCubeArrayShadow
(GL_TEXTURE_CUBE_MAP_ARRAY
)
-