Difference between revisions of "Template:Glapi glsltypetable"

From OpenGL Wiki
Jump to navigation Jump to search
(Adding styling parameter.)
(Table fix.)
Line 1: Line 1:
 
{| class="wikitable" style="{{{1|}}}"
 
{| class="wikitable" style="{{{1|}}}"
|+
+
|-
 
! '''Returned Symbolic Contant'''
 
! '''Returned Symbolic Contant'''
 
! '''Shader Uniform Type'''
 
! '''Shader Uniform Type'''
|+
+
|-
 
| {{enum|GL_FLOAT}}
 
| {{enum|GL_FLOAT}}
 
| {{enum|float}}
 
| {{enum|float}}
|+
+
|-
 
| {{enum|GL_FLOAT_VEC2}}
 
| {{enum|GL_FLOAT_VEC2}}
 
| {{enum|vec2}}
 
| {{enum|vec2}}
|+
+
|-
 
| {{enum|GL_FLOAT_VEC3}}
 
| {{enum|GL_FLOAT_VEC3}}
 
| {{enum|vec3}}
 
| {{enum|vec3}}
|+
+
|-
 
| {{enum|GL_FLOAT_VEC4}}
 
| {{enum|GL_FLOAT_VEC4}}
 
| {{enum|vec4}}
 
| {{enum|vec4}}
|+
+
|-
 
| {{enum|GL_DOUBLE}}
 
| {{enum|GL_DOUBLE}}
 
| {{enum|double}}
 
| {{enum|double}}
|+
+
|-
 
| {{enum|GL_DOUBLE_VEC2}}
 
| {{enum|GL_DOUBLE_VEC2}}
 
| {{enum|dvec2}}
 
| {{enum|dvec2}}
|+
+
|-
 
| {{enum|GL_DOUBLE_VEC3}}
 
| {{enum|GL_DOUBLE_VEC3}}
 
| {{enum|dvec3}}
 
| {{enum|dvec3}}
|+
+
|-
 
| {{enum|GL_DOUBLE_VEC4}}
 
| {{enum|GL_DOUBLE_VEC4}}
 
| {{enum|dvec4}}
 
| {{enum|dvec4}}
|+
+
|-
 
| {{enum|GL_INT}}
 
| {{enum|GL_INT}}
 
| {{enum|int}}
 
| {{enum|int}}
|+
+
|-
 
| {{enum|GL_INT_VEC2}}
 
| {{enum|GL_INT_VEC2}}
 
| {{enum|ivec2}}
 
| {{enum|ivec2}}
|+
+
|-
 
| {{enum|GL_INT_VEC3}}
 
| {{enum|GL_INT_VEC3}}
 
| {{enum|ivec3}}
 
| {{enum|ivec3}}
|+
+
|-
 
| {{enum|GL_INT_VEC4}}
 
| {{enum|GL_INT_VEC4}}
 
| {{enum|ivec4}}
 
| {{enum|ivec4}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT}}
 
| {{enum|GL_UNSIGNED_INT}}
 
| {{enum|unsigned int}}
 
| {{enum|unsigned int}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_VEC2}}
 
| {{enum|GL_UNSIGNED_INT_VEC2}}
 
| {{enum|uvec2}}
 
| {{enum|uvec2}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_VEC3}}
 
| {{enum|GL_UNSIGNED_INT_VEC3}}
 
| {{enum|uvec3}}
 
| {{enum|uvec3}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_VEC4}}
 
| {{enum|GL_UNSIGNED_INT_VEC4}}
 
| {{enum|uvec4}}
 
| {{enum|uvec4}}
|+
+
|-
 
| {{enum|GL_BOOL}}
 
| {{enum|GL_BOOL}}
 
| {{enum|bool}}
 
| {{enum|bool}}
|+
+
|-
 
| {{enum|GL_BOOL_VEC2}}
 
| {{enum|GL_BOOL_VEC2}}
 
| {{enum|bvec2}}
 
| {{enum|bvec2}}
|+
+
|-
 
| {{enum|GL_BOOL_VEC3}}
 
| {{enum|GL_BOOL_VEC3}}
 
| {{enum|bvec3}}
 
| {{enum|bvec3}}
|+
+
|-
 
| {{enum|GL_BOOL_VEC4}}
 
| {{enum|GL_BOOL_VEC4}}
 
| {{enum|bvec4}}
 
| {{enum|bvec4}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT2}}
 
| {{enum|GL_FLOAT_MAT2}}
 
| {{enum|mat2}}
 
| {{enum|mat2}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT3}}
 
| {{enum|GL_FLOAT_MAT3}}
 
| {{enum|mat3}}
 
| {{enum|mat3}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT4}}
 
| {{enum|GL_FLOAT_MAT4}}
 
| {{enum|mat4}}
 
| {{enum|mat4}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT2x3}}
 
| {{enum|GL_FLOAT_MAT2x3}}
 
| {{enum|mat2x3}}
 
| {{enum|mat2x3}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT2x4}}
 
| {{enum|GL_FLOAT_MAT2x4}}
 
| {{enum|mat2x4}}
 
| {{enum|mat2x4}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT3x2}}
 
| {{enum|GL_FLOAT_MAT3x2}}
 
| {{enum|mat3x2}}
 
| {{enum|mat3x2}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT3x4}}
 
| {{enum|GL_FLOAT_MAT3x4}}
 
| {{enum|mat3x4}}
 
| {{enum|mat3x4}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT4x2}}
 
| {{enum|GL_FLOAT_MAT4x2}}
 
| {{enum|mat4x2}}
 
| {{enum|mat4x2}}
|+
+
|-
 
| {{enum|GL_FLOAT_MAT4x3}}
 
| {{enum|GL_FLOAT_MAT4x3}}
 
| {{enum|mat4x3}}
 
| {{enum|mat4x3}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT2}}
 
| {{enum|GL_DOUBLE_MAT2}}
 
| {{enum|dmat2}}
 
| {{enum|dmat2}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT3}}
 
| {{enum|GL_DOUBLE_MAT3}}
 
| {{enum|dmat3}}
 
| {{enum|dmat3}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT4}}
 
| {{enum|GL_DOUBLE_MAT4}}
 
| {{enum|dmat4}}
 
| {{enum|dmat4}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT2x3}}
 
| {{enum|GL_DOUBLE_MAT2x3}}
 
| {{enum|dmat2x3}}
 
| {{enum|dmat2x3}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT2x4}}
 
| {{enum|GL_DOUBLE_MAT2x4}}
 
| {{enum|dmat2x4}}
 
| {{enum|dmat2x4}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT3x2}}
 
| {{enum|GL_DOUBLE_MAT3x2}}
 
| {{enum|dmat3x2}}
 
| {{enum|dmat3x2}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT3x4}}
 
| {{enum|GL_DOUBLE_MAT3x4}}
 
| {{enum|dmat3x4}}
 
| {{enum|dmat3x4}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT4x2}}
 
| {{enum|GL_DOUBLE_MAT4x2}}
 
| {{enum|dmat4x2}}
 
| {{enum|dmat4x2}}
|+
+
|-
 
| {{enum|GL_DOUBLE_MAT4x3}}
 
| {{enum|GL_DOUBLE_MAT4x3}}
 
| {{enum|dmat4x3}}
 
| {{enum|dmat4x3}}
|+
+
|-
 
| {{enum|GL_SAMPLER_1D}}
 
| {{enum|GL_SAMPLER_1D}}
 
| {{enum|sampler1D}}
 
| {{enum|sampler1D}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D}}
 
| {{enum|GL_SAMPLER_2D}}
 
| {{enum|sampler2D}}
 
| {{enum|sampler2D}}
|+
+
|-
 
| {{enum|GL_SAMPLER_3D}}
 
| {{enum|GL_SAMPLER_3D}}
 
| {{enum|sampler3D}}
 
| {{enum|sampler3D}}
|+
+
|-
 
| {{enum|GL_SAMPLER_CUBE}}
 
| {{enum|GL_SAMPLER_CUBE}}
 
| {{enum|samplerCube}}
 
| {{enum|samplerCube}}
|+
+
|-
 
| {{enum|GL_SAMPLER_1D_SHADOW}}
 
| {{enum|GL_SAMPLER_1D_SHADOW}}
 
| {{enum|sampler1DShadow}}
 
| {{enum|sampler1DShadow}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D_SHADOW}}
 
| {{enum|GL_SAMPLER_2D_SHADOW}}
 
| {{enum|sampler2DShadow}}
 
| {{enum|sampler2DShadow}}
|+
+
|-
 
| {{enum|GL_SAMPLER_1D_ARRAY}}
 
| {{enum|GL_SAMPLER_1D_ARRAY}}
 
| {{enum|sampler1DArray}}
 
| {{enum|sampler1DArray}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D_ARRAY}}
 
| {{enum|GL_SAMPLER_2D_ARRAY}}
 
| {{enum|sampler2DArray}}
 
| {{enum|sampler2DArray}}
|+
+
|-
 
| {{enum|GL_SAMPLER_1D_ARRAY_SHADOW}}
 
| {{enum|GL_SAMPLER_1D_ARRAY_SHADOW}}
 
| {{enum|sampler1DArrayShadow}}
 
| {{enum|sampler1DArrayShadow}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D_ARRAY_SHADOW}}
 
| {{enum|GL_SAMPLER_2D_ARRAY_SHADOW}}
 
| {{enum|sampler2DArrayShadow}}
 
| {{enum|sampler2DArrayShadow}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D_MULTISAMPLE}}
 
| {{enum|GL_SAMPLER_2D_MULTISAMPLE}}
 
| {{enum|sampler2DMS}}
 
| {{enum|sampler2DMS}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D_MULTISAMPLE_ARRAY}}
 
| {{enum|GL_SAMPLER_2D_MULTISAMPLE_ARRAY}}
 
| {{enum|sampler2DMSArray}}
 
| {{enum|sampler2DMSArray}}
|+
+
|-
 
| {{enum|GL_SAMPLER_CUBE_SHADOW}}
 
| {{enum|GL_SAMPLER_CUBE_SHADOW}}
 
| {{enum|samplerCubeShadow}}
 
| {{enum|samplerCubeShadow}}
|+
+
|-
 
| {{enum|GL_SAMPLER_BUFFER}}
 
| {{enum|GL_SAMPLER_BUFFER}}
 
| {{enum|samplerBuffer}}
 
| {{enum|samplerBuffer}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D_RECT}}
 
| {{enum|GL_SAMPLER_2D_RECT}}
 
| {{enum|sampler2DRect}}
 
| {{enum|sampler2DRect}}
|+
+
|-
 
| {{enum|GL_SAMPLER_2D_RECT_SHADOW}}
 
| {{enum|GL_SAMPLER_2D_RECT_SHADOW}}
 
| {{enum|sampler2DRectShadow}}
 
| {{enum|sampler2DRectShadow}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_1D}}
 
| {{enum|GL_INT_SAMPLER_1D}}
 
| {{enum|isampler1D}}
 
| {{enum|isampler1D}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_2D}}
 
| {{enum|GL_INT_SAMPLER_2D}}
 
| {{enum|isampler2D}}
 
| {{enum|isampler2D}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_3D}}
 
| {{enum|GL_INT_SAMPLER_3D}}
 
| {{enum|isampler3D}}
 
| {{enum|isampler3D}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_CUBE}}
 
| {{enum|GL_INT_SAMPLER_CUBE}}
 
| {{enum|isamplerCube}}
 
| {{enum|isamplerCube}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_1D_ARRAY}}
 
| {{enum|GL_INT_SAMPLER_1D_ARRAY}}
 
| {{enum|isampler1DArray}}
 
| {{enum|isampler1DArray}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_2D_ARRAY}}
 
| {{enum|GL_INT_SAMPLER_2D_ARRAY}}
 
| {{enum|isampler2DArray}}
 
| {{enum|isampler2DArray}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_2D_MULTISAMPLE}}
 
| {{enum|GL_INT_SAMPLER_2D_MULTISAMPLE}}
 
| {{enum|isampler2DMS}}
 
| {{enum|isampler2DMS}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY}}
 
| {{enum|GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY}}
 
| {{enum|isampler2DMSArray}}
 
| {{enum|isampler2DMSArray}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_BUFFER}}
 
| {{enum|GL_INT_SAMPLER_BUFFER}}
 
| {{enum|isamplerBuffer}}
 
| {{enum|isamplerBuffer}}
|+
+
|-
 
| {{enum|GL_INT_SAMPLER_2D_RECT}}
 
| {{enum|GL_INT_SAMPLER_2D_RECT}}
 
| {{enum|isampler2DRect}}
 
| {{enum|isampler2DRect}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_1D}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_1D}}
 
| {{enum|usampler1D}}
 
| {{enum|usampler1D}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D}}
 
| {{enum|usampler2D}}
 
| {{enum|usampler2D}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_3D}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_3D}}
 
| {{enum|usampler3D}}
 
| {{enum|usampler3D}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_CUBE}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_CUBE}}
 
| {{enum|usamplerCube}}
 
| {{enum|usamplerCube}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_1D_ARRAY}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_1D_ARRAY}}
 
| {{enum|usampler2DArray}}
 
| {{enum|usampler2DArray}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_ARRAY}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_ARRAY}}
 
| {{enum|usampler2DArray}}
 
| {{enum|usampler2DArray}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE}}
 
| {{enum|usampler2DMS}}
 
| {{enum|usampler2DMS}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY}}
 
| {{enum|usampler2DMSArray}}
 
| {{enum|usampler2DMSArray}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_BUFFER}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_BUFFER}}
 
| {{enum|usamplerBuffer}}
 
| {{enum|usamplerBuffer}}
|+
+
|-
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_RECT}}
 
| {{enum|GL_UNSIGNED_INT_SAMPLER_2D_RECT}}
 
| {{enum|usampler2DRect}}
 
| {{enum|usampler2DRect}}
 
|}
 
|}
 +
<noinclude>[[Category:Template Tables]]</noinclude>

Revision as of 07:14, 16 February 2013

Returned Symbolic Contant Shader Uniform Type
GL_FLOAT float
GL_FLOAT_VEC2 vec2
GL_FLOAT_VEC3 vec3
GL_FLOAT_VEC4 vec4
GL_DOUBLE double
GL_DOUBLE_VEC2 dvec2
GL_DOUBLE_VEC3 dvec3
GL_DOUBLE_VEC4 dvec4
GL_INT int
GL_INT_VEC2 ivec2
GL_INT_VEC3 ivec3
GL_INT_VEC4 ivec4
GL_UNSIGNED_INT unsigned int
GL_UNSIGNED_INT_VEC2 uvec2
GL_UNSIGNED_INT_VEC3 uvec3
GL_UNSIGNED_INT_VEC4 uvec4
GL_BOOL bool
GL_BOOL_VEC2 bvec2
GL_BOOL_VEC3 bvec3
GL_BOOL_VEC4 bvec4
GL_FLOAT_MAT2 mat2
GL_FLOAT_MAT3 mat3
GL_FLOAT_MAT4 mat4
GL_FLOAT_MAT2x3 mat2x3
GL_FLOAT_MAT2x4 mat2x4
GL_FLOAT_MAT3x2 mat3x2
GL_FLOAT_MAT3x4 mat3x4
GL_FLOAT_MAT4x2 mat4x2
GL_FLOAT_MAT4x3 mat4x3
GL_DOUBLE_MAT2 dmat2
GL_DOUBLE_MAT3 dmat3
GL_DOUBLE_MAT4 dmat4
GL_DOUBLE_MAT2x3 dmat2x3
GL_DOUBLE_MAT2x4 dmat2x4
GL_DOUBLE_MAT3x2 dmat3x2
GL_DOUBLE_MAT3x4 dmat3x4
GL_DOUBLE_MAT4x2 dmat4x2
GL_DOUBLE_MAT4x3 dmat4x3
GL_SAMPLER_1D sampler1D
GL_SAMPLER_2D sampler2D
GL_SAMPLER_3D sampler3D
GL_SAMPLER_CUBE samplerCube
GL_SAMPLER_1D_SHADOW sampler1DShadow
GL_SAMPLER_2D_SHADOW sampler2DShadow
GL_SAMPLER_1D_ARRAY sampler1DArray
GL_SAMPLER_2D_ARRAY sampler2DArray
GL_SAMPLER_1D_ARRAY_SHADOW sampler1DArrayShadow
GL_SAMPLER_2D_ARRAY_SHADOW sampler2DArrayShadow
GL_SAMPLER_2D_MULTISAMPLE sampler2DMS
GL_SAMPLER_2D_MULTISAMPLE_ARRAY sampler2DMSArray
GL_SAMPLER_CUBE_SHADOW samplerCubeShadow
GL_SAMPLER_BUFFER samplerBuffer
GL_SAMPLER_2D_RECT sampler2DRect
GL_SAMPLER_2D_RECT_SHADOW sampler2DRectShadow
GL_INT_SAMPLER_1D isampler1D
GL_INT_SAMPLER_2D isampler2D
GL_INT_SAMPLER_3D isampler3D
GL_INT_SAMPLER_CUBE isamplerCube
GL_INT_SAMPLER_1D_ARRAY isampler1DArray
GL_INT_SAMPLER_2D_ARRAY isampler2DArray
GL_INT_SAMPLER_2D_MULTISAMPLE isampler2DMS
GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY isampler2DMSArray
GL_INT_SAMPLER_BUFFER isamplerBuffer
GL_INT_SAMPLER_2D_RECT isampler2DRect
GL_UNSIGNED_INT_SAMPLER_1D usampler1D
GL_UNSIGNED_INT_SAMPLER_2D usampler2D
GL_UNSIGNED_INT_SAMPLER_3D usampler3D
GL_UNSIGNED_INT_SAMPLER_CUBE usamplerCube
GL_UNSIGNED_INT_SAMPLER_1D_ARRAY usampler2DArray
GL_UNSIGNED_INT_SAMPLER_2D_ARRAY usampler2DArray
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE usampler2DMS
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY usampler2DMSArray
GL_UNSIGNED_INT_SAMPLER_BUFFER usamplerBuffer
GL_UNSIGNED_INT_SAMPLER_2D_RECT usampler2DRect