Package glitter :: Package utils :: Module shaderdtypes
[hide private]
[frames] | no frames]

Module shaderdtypes

source code

Datatypes for use with ShaderPrograms.


Author: Stephan Wenger

Date: 2012-02-29

Classes [hide private]
  ShaderDatatype
Variables [hide private]
  shader_float = ShaderDatatype("float", _gl.GL_FLOAT, dtype= fl...
  shader_vec2 = ShaderDatatype("vec2", _gl.GL_FLOAT_VEC2, dtype=...
  shader_vec3 = ShaderDatatype("vec3", _gl.GL_FLOAT_VEC3, dtype=...
  shader_vec4 = ShaderDatatype("vec4", _gl.GL_FLOAT_VEC4, dtype=...
  shader_double = ShaderDatatype("double", _gl.GL_DOUBLE, dtype=...
  shader_dvec2 = ShaderDatatype("dvec2", _gl.GL_DOUBLE_VEC2, dty...
  shader_dvec3 = ShaderDatatype("dvec3", _gl.GL_DOUBLE_VEC3, dty...
  shader_dvec4 = ShaderDatatype("dvec4", _gl.GL_DOUBLE_VEC4, dty...
  shader_int = ShaderDatatype("int", _gl.GL_INT, dtype= int32)
  shader_ivec2 = ShaderDatatype("ivec2", _gl.GL_INT_VEC2, dtype=...
  shader_ivec3 = ShaderDatatype("ivec3", _gl.GL_INT_VEC3, dtype=...
  shader_ivec4 = ShaderDatatype("ivec4", _gl.GL_INT_VEC4, dtype=...
  shader_unsigned_int = ShaderDatatype("unsigned int", _gl.GL_UN...
  shader_uvec2 = ShaderDatatype("uvec2", _gl.GL_UNSIGNED_INT_VEC...
  shader_uvec3 = ShaderDatatype("uvec3", _gl.GL_UNSIGNED_INT_VEC...
  shader_uvec4 = ShaderDatatype("uvec4", _gl.GL_UNSIGNED_INT_VEC...
  shader_bool = ShaderDatatype("bool", _gl.GL_BOOL, dtype= bool8)
  shader_bvec2 = ShaderDatatype("bvec2", _gl.GL_BOOL_VEC2, dtype...
  shader_bvec3 = ShaderDatatype("bvec3", _gl.GL_BOOL_VEC3, dtype...
  shader_bvec4 = ShaderDatatype("bvec4", _gl.GL_BOOL_VEC4, dtype...
  shader_mat2 = ShaderDatatype("mat2", _gl.GL_FLOAT_MAT2, dtype=...
  shader_mat3 = ShaderDatatype("mat3", _gl.GL_FLOAT_MAT3, dtype=...
  shader_mat4 = ShaderDatatype("mat4", _gl.GL_FLOAT_MAT4, dtype=...
  shader_dmat2 = ShaderDatatype("dmat2", _gl.GL_DOUBLE_MAT2, dty...
  shader_dmat3 = ShaderDatatype("dmat3", _gl.GL_DOUBLE_MAT3, dty...
  shader_dmat4 = ShaderDatatype("dmat4", _gl.GL_DOUBLE_MAT4, dty...
  shader_sampler1D = ShaderDatatype("sampler1D", _gl.GL_SAMPLER_...
  shader_sampler2D = ShaderDatatype("sampler2D", _gl.GL_SAMPLER_...
  shader_sampler3D = ShaderDatatype("sampler3D", _gl.GL_SAMPLER_...
  shader_samplerCube = ShaderDatatype("samplerCube", _gl.GL_SAMP...
  shader_sampler1DShadow = ShaderDatatype("sampler1DShadow", _gl...
  shader_sampler2DShadow = ShaderDatatype("sampler2DShadow", _gl...
  shader_sampler1DArray = ShaderDatatype("sampler1DArray", _gl.G...
  shader_sampler2DArray = ShaderDatatype("sampler2DArray", _gl.G...
  shader_sampler1DArrayShadow = ShaderDatatype("sampler1DArraySh...
  shader_sampler2DArrayShadow = ShaderDatatype("sampler2DArraySh...
  shader_sampler2DMS = ShaderDatatype("sampler2DMS", _gl.GL_SAMP...
  shader_sampler2DMSArray = ShaderDatatype("sampler2DMSArray", _...
  shader_samplerCubeShadow = ShaderDatatype("samplerCubeShadow",...
  shader_samplerBuffer = ShaderDatatype("samplerBuffer", _gl.GL_...
  shader_sampler2DRect = ShaderDatatype("sampler2DRect", _gl.GL_...
  shader_sampler2DRectShadow = ShaderDatatype("sampler2DRectShad...
  shader_isampler1D = ShaderDatatype("isampler1D", _gl.GL_INT_SA...
  shader_isampler2D = ShaderDatatype("isampler2D", _gl.GL_INT_SA...
  shader_isampler3D = ShaderDatatype("isampler3D", _gl.GL_INT_SA...
  shader_isamplerCube = ShaderDatatype("isamplerCube", _gl.GL_IN...
  shader_isampler1DArray = ShaderDatatype("isampler1DArray", _gl...
  shader_isampler2DArray = ShaderDatatype("isampler2DArray", _gl...
  shader_isampler2DMS = ShaderDatatype("isampler2DMS", _gl.GL_IN...
  shader_isampler2DMSArray = ShaderDatatype("isampler2DMSArray",...
  shader_isamplerBuffer = ShaderDatatype("isamplerBuffer", _gl.G...
  shader_isampler2DRect = ShaderDatatype("isampler2DRect", _gl.G...
  shader_usampler1D = ShaderDatatype("usampler1D", _gl.GL_UNSIGN...
  shader_usampler2D = ShaderDatatype("usampler2D", _gl.GL_UNSIGN...
  shader_usampler3D = ShaderDatatype("usampler3D", _gl.GL_UNSIGN...
  shader_usamplerCube = ShaderDatatype("usamplerCube", _gl.GL_UN...
  shader_usampler1DArray = ShaderDatatype("usampler1DArray", _gl...
  shader_usampler2DArray = ShaderDatatype("usampler2DArray", _gl...
  shader_usampler2DMS = ShaderDatatype("usampler2DMS", _gl.GL_UN...
  shader_usampler2DMSArray = ShaderDatatype("usampler2DMSArray",...
  shader_usamplerBuffer = ShaderDatatype("usamplerBuffer", _gl.G...
  shader_usampler2DRect = ShaderDatatype("usampler2DRect", _gl.G...
  shader_image1D = ShaderDatatype("image1D", _gl.GL_IMAGE_1D, te...
  shader_image2D = ShaderDatatype("image2D", _gl.GL_IMAGE_2D, te...
  shader_image3D = ShaderDatatype("image3D", _gl.GL_IMAGE_3D, te...
  shader_image2DRect = ShaderDatatype("image2DRect", _gl.GL_IMAG...
  shader_imageCube = ShaderDatatype("imageCube", _gl.GL_IMAGE_CU...
  shader_imageBuffer = ShaderDatatype("imageBuffer", _gl.GL_IMAG...
  shader_image1DArray = ShaderDatatype("image1DArray", _gl.GL_IM...
  shader_image2DArray = ShaderDatatype("image2DArray", _gl.GL_IM...
  shader_image2DMS = ShaderDatatype("image2DMS", _gl.GL_IMAGE_2D...
  shader_image2DMSArray = ShaderDatatype("image2DMSArray", _gl.G...
  shader_iimage1D = ShaderDatatype("iimage1D", _gl.GL_INT_IMAGE_...
  shader_iimage2D = ShaderDatatype("iimage2D", _gl.GL_INT_IMAGE_...
  shader_iimage3D = ShaderDatatype("iimage3D", _gl.GL_INT_IMAGE_...
  shader_iimage2DRect = ShaderDatatype("iimage2DRect", _gl.GL_IN...
  shader_iimageCube = ShaderDatatype("iimageCube", _gl.GL_INT_IM...
  shader_iimageBuffer = ShaderDatatype("iimageBuffer", _gl.GL_IN...
  shader_iimage1DArray = ShaderDatatype("iimage1DArray", _gl.GL_...
  shader_iimage2DArray = ShaderDatatype("iimage2DArray", _gl.GL_...
  shader_iimage2DMS = ShaderDatatype("iimage2DMS", _gl.GL_INT_IM...
  shader_iimage2DMSArray = ShaderDatatype("iimage2DMSArray", _gl...
  shader_uimage1D = ShaderDatatype("uimage1D", _gl.GL_UNSIGNED_I...
  shader_uimage2D = ShaderDatatype("uimage2D", _gl.GL_UNSIGNED_I...
  shader_uimage3D = ShaderDatatype("uimage3D", _gl.GL_UNSIGNED_I...
  shader_uimage2DRect = ShaderDatatype("uimage2DRect", _gl.GL_UN...
  shader_uimageCube = ShaderDatatype("uimageCube", _gl.GL_UNSIGN...
  shader_uimageBuffer = ShaderDatatype("uimageBuffer", _gl.GL_UN...
  shader_uimage1DArray = ShaderDatatype("uimage1DArray", _gl.GL_...
  shader_uimage2DArray = ShaderDatatype("uimage2DArray", _gl.GL_...
  shader_uimage2DMS = ShaderDatatype("uimage2DMS", _gl.GL_UNSIGN...
  shader_uimage2DMSArray = ShaderDatatype("uimage2DMSArray", _gl...
  shader_atomic_uint = ShaderDatatype("atomic_uint", _gl.GL_UNSI...
  __package__ = 'glitter.utils'
Variables Details [hide private]

shader_float

Value:
ShaderDatatype("float", _gl.GL_FLOAT, dtype= float32)

shader_vec2

Value:
ShaderDatatype("vec2", _gl.GL_FLOAT_VEC2, dtype= float32, shape= 2)

shader_vec3

Value:
ShaderDatatype("vec3", _gl.GL_FLOAT_VEC3, dtype= float32, shape= 3)

shader_vec4

Value:
ShaderDatatype("vec4", _gl.GL_FLOAT_VEC4, dtype= float32, shape= 4)

shader_double

Value:
ShaderDatatype("double", _gl.GL_DOUBLE, dtype= float64)

shader_dvec2

Value:
ShaderDatatype("dvec2", _gl.GL_DOUBLE_VEC2, dtype= float64, shape= 2)

shader_dvec3

Value:
ShaderDatatype("dvec3", _gl.GL_DOUBLE_VEC3, dtype= float64, shape= 3)

shader_dvec4

Value:
ShaderDatatype("dvec4", _gl.GL_DOUBLE_VEC4, dtype= float64, shape= 4)

shader_ivec2

Value:
ShaderDatatype("ivec2", _gl.GL_INT_VEC2, dtype= int32, shape= 2)

shader_ivec3

Value:
ShaderDatatype("ivec3", _gl.GL_INT_VEC3, dtype= int32, shape= 3)

shader_ivec4

Value:
ShaderDatatype("ivec4", _gl.GL_INT_VEC4, dtype= int32, shape= 4)

shader_unsigned_int

Value:
ShaderDatatype("unsigned int", _gl.GL_UNSIGNED_INT, dtype= uint32)

shader_uvec2

Value:
ShaderDatatype("uvec2", _gl.GL_UNSIGNED_INT_VEC2, dtype= uint32, shape\
= 2)

shader_uvec3

Value:
ShaderDatatype("uvec3", _gl.GL_UNSIGNED_INT_VEC3, dtype= uint32, shape\
= 3)

shader_uvec4

Value:
ShaderDatatype("uvec4", _gl.GL_UNSIGNED_INT_VEC4, dtype= uint32, shape\
= 4)

shader_bvec2

Value:
ShaderDatatype("bvec2", _gl.GL_BOOL_VEC2, dtype= bool8, shape= 2)

shader_bvec3

Value:
ShaderDatatype("bvec3", _gl.GL_BOOL_VEC3, dtype= bool8, shape= 3)

shader_bvec4

Value:
ShaderDatatype("bvec4", _gl.GL_BOOL_VEC4, dtype= bool8, shape= 4)

shader_mat2

Value:
ShaderDatatype("mat2", _gl.GL_FLOAT_MAT2, dtype= float32, shape= (2, 2\
))

shader_mat3

Value:
ShaderDatatype("mat3", _gl.GL_FLOAT_MAT3, dtype= float32, shape= (3, 3\
))

shader_mat4

Value:
ShaderDatatype("mat4", _gl.GL_FLOAT_MAT4, dtype= float32, shape= (4, 4\
))

shader_dmat2

Value:
ShaderDatatype("dmat2", _gl.GL_DOUBLE_MAT2, dtype= float64, shape= (2,\
 2))

shader_dmat3

Value:
ShaderDatatype("dmat3", _gl.GL_DOUBLE_MAT3, dtype= float64, shape= (3,\
 3))

shader_dmat4

Value:
ShaderDatatype("dmat4", _gl.GL_DOUBLE_MAT4, dtype= float64, shape= (4,\
 4))

shader_sampler1D

Value:
ShaderDatatype("sampler1D", _gl.GL_SAMPLER_1D, texture= True)

shader_sampler2D

Value:
ShaderDatatype("sampler2D", _gl.GL_SAMPLER_2D, texture= True)

shader_sampler3D

Value:
ShaderDatatype("sampler3D", _gl.GL_SAMPLER_3D, texture= True)

shader_samplerCube

Value:
ShaderDatatype("samplerCube", _gl.GL_SAMPLER_CUBE, texture= True)

shader_sampler1DShadow

Value:
ShaderDatatype("sampler1DShadow", _gl.GL_SAMPLER_1D_SHADOW, texture= T\
rue)

shader_sampler2DShadow

Value:
ShaderDatatype("sampler2DShadow", _gl.GL_SAMPLER_2D_SHADOW, texture= T\
rue)

shader_sampler1DArray

Value:
ShaderDatatype("sampler1DArray", _gl.GL_SAMPLER_1D_ARRAY, texture= Tru\
e)

shader_sampler2DArray

Value:
ShaderDatatype("sampler2DArray", _gl.GL_SAMPLER_2D_ARRAY, texture= Tru\
e)

shader_sampler1DArrayShadow

Value:
ShaderDatatype("sampler1DArrayShadow", _gl.GL_SAMPLER_1D_ARRAY_SHADOW,\
 texture= True)

shader_sampler2DArrayShadow

Value:
ShaderDatatype("sampler2DArrayShadow", _gl.GL_SAMPLER_2D_ARRAY_SHADOW,\
 texture= True)

shader_sampler2DMS

Value:
ShaderDatatype("sampler2DMS", _gl.GL_SAMPLER_2D_MULTISAMPLE, texture= \
True)

shader_sampler2DMSArray

Value:
ShaderDatatype("sampler2DMSArray", _gl.GL_SAMPLER_2D_MULTISAMPLE_ARRAY\
, texture= True)

shader_samplerCubeShadow

Value:
ShaderDatatype("samplerCubeShadow", _gl.GL_SAMPLER_CUBE_SHADOW, textur\
e= True)

shader_samplerBuffer

Value:
ShaderDatatype("samplerBuffer", _gl.GL_SAMPLER_BUFFER, texture= True)

shader_sampler2DRect

Value:
ShaderDatatype("sampler2DRect", _gl.GL_SAMPLER_2D_RECT, texture= True)

shader_sampler2DRectShadow

Value:
ShaderDatatype("sampler2DRectShadow", _gl.GL_SAMPLER_2D_RECT_SHADOW, t\
exture= True)

shader_isampler1D

Value:
ShaderDatatype("isampler1D", _gl.GL_INT_SAMPLER_1D, texture= True)

shader_isampler2D

Value:
ShaderDatatype("isampler2D", _gl.GL_INT_SAMPLER_2D, texture= True)

shader_isampler3D

Value:
ShaderDatatype("isampler3D", _gl.GL_INT_SAMPLER_3D, texture= True)

shader_isamplerCube

Value:
ShaderDatatype("isamplerCube", _gl.GL_INT_SAMPLER_CUBE, texture= True)

shader_isampler1DArray

Value:
ShaderDatatype("isampler1DArray", _gl.GL_INT_SAMPLER_1D_ARRAY, texture\
= True)

shader_isampler2DArray

Value:
ShaderDatatype("isampler2DArray", _gl.GL_INT_SAMPLER_2D_ARRAY, texture\
= True)

shader_isampler2DMS

Value:
ShaderDatatype("isampler2DMS", _gl.GL_INT_SAMPLER_2D_MULTISAMPLE, text\
ure= True)

shader_isampler2DMSArray

Value:
ShaderDatatype("isampler2DMSArray", _gl.GL_INT_SAMPLER_2D_MULTISAMPLE_\
ARRAY, texture= True)

shader_isamplerBuffer

Value:
ShaderDatatype("isamplerBuffer", _gl.GL_INT_SAMPLER_BUFFER, texture= T\
rue)

shader_isampler2DRect

Value:
ShaderDatatype("isampler2DRect", _gl.GL_INT_SAMPLER_2D_RECT, texture= \
True)

shader_usampler1D

Value:
ShaderDatatype("usampler1D", _gl.GL_UNSIGNED_INT_SAMPLER_1D, texture= \
True)

shader_usampler2D

Value:
ShaderDatatype("usampler2D", _gl.GL_UNSIGNED_INT_SAMPLER_2D, texture= \
True)

shader_usampler3D

Value:
ShaderDatatype("usampler3D", _gl.GL_UNSIGNED_INT_SAMPLER_3D, texture= \
True)

shader_usamplerCube

Value:
ShaderDatatype("usamplerCube", _gl.GL_UNSIGNED_INT_SAMPLER_CUBE, textu\
re= True)

shader_usampler1DArray

Value:
ShaderDatatype("usampler1DArray", _gl.GL_UNSIGNED_INT_SAMPLER_1D_ARRAY\
, texture= True)

shader_usampler2DArray

Value:
ShaderDatatype("usampler2DArray", _gl.GL_UNSIGNED_INT_SAMPLER_2D_ARRAY\
, texture= True)

shader_usampler2DMS

Value:
ShaderDatatype("usampler2DMS", _gl.GL_UNSIGNED_INT_SAMPLER_2D_MULTISAM\
PLE, texture= True)

shader_usampler2DMSArray

Value:
ShaderDatatype("usampler2DMSArray", _gl.GL_UNSIGNED_INT_SAMPLER_2D_MUL\
TISAMPLE_ARRAY, texture= True)

shader_usamplerBuffer

Value:
ShaderDatatype("usamplerBuffer", _gl.GL_UNSIGNED_INT_SAMPLER_BUFFER, t\
exture= True)

shader_usampler2DRect

Value:
ShaderDatatype("usampler2DRect", _gl.GL_UNSIGNED_INT_SAMPLER_2D_RECT, \
texture= True)

shader_image1D

Value:
ShaderDatatype("image1D", _gl.GL_IMAGE_1D, texture= True)

shader_image2D

Value:
ShaderDatatype("image2D", _gl.GL_IMAGE_2D, texture= True)

shader_image3D

Value:
ShaderDatatype("image3D", _gl.GL_IMAGE_3D, texture= True)

shader_image2DRect

Value:
ShaderDatatype("image2DRect", _gl.GL_IMAGE_2D_RECT, texture= True)

shader_imageCube

Value:
ShaderDatatype("imageCube", _gl.GL_IMAGE_CUBE, texture= True)

shader_imageBuffer

Value:
ShaderDatatype("imageBuffer", _gl.GL_IMAGE_BUFFER, texture= True)

shader_image1DArray

Value:
ShaderDatatype("image1DArray", _gl.GL_IMAGE_1D_ARRAY, texture= True)

shader_image2DArray

Value:
ShaderDatatype("image2DArray", _gl.GL_IMAGE_2D_ARRAY, texture= True)

shader_image2DMS

Value:
ShaderDatatype("image2DMS", _gl.GL_IMAGE_2D_MULTISAMPLE, texture= True\
)

shader_image2DMSArray

Value:
ShaderDatatype("image2DMSArray", _gl.GL_IMAGE_2D_MULTISAMPLE_ARRAY, te\
xture= True)

shader_iimage1D

Value:
ShaderDatatype("iimage1D", _gl.GL_INT_IMAGE_1D, texture= True)

shader_iimage2D

Value:
ShaderDatatype("iimage2D", _gl.GL_INT_IMAGE_2D, texture= True)

shader_iimage3D

Value:
ShaderDatatype("iimage3D", _gl.GL_INT_IMAGE_3D, texture= True)

shader_iimage2DRect

Value:
ShaderDatatype("iimage2DRect", _gl.GL_INT_IMAGE_2D_RECT, texture= True\
)

shader_iimageCube

Value:
ShaderDatatype("iimageCube", _gl.GL_INT_IMAGE_CUBE, texture= True)

shader_iimageBuffer

Value:
ShaderDatatype("iimageBuffer", _gl.GL_INT_IMAGE_BUFFER, texture= True)

shader_iimage1DArray

Value:
ShaderDatatype("iimage1DArray", _gl.GL_INT_IMAGE_1D_ARRAY, texture= Tr\
ue)

shader_iimage2DArray

Value:
ShaderDatatype("iimage2DArray", _gl.GL_INT_IMAGE_2D_ARRAY, texture= Tr\
ue)

shader_iimage2DMS

Value:
ShaderDatatype("iimage2DMS", _gl.GL_INT_IMAGE_2D_MULTISAMPLE, texture=\
 True)

shader_iimage2DMSArray

Value:
ShaderDatatype("iimage2DMSArray", _gl.GL_INT_IMAGE_2D_MULTISAMPLE_ARRA\
Y, texture= True)

shader_uimage1D

Value:
ShaderDatatype("uimage1D", _gl.GL_UNSIGNED_INT_IMAGE_1D, texture= True\
)

shader_uimage2D

Value:
ShaderDatatype("uimage2D", _gl.GL_UNSIGNED_INT_IMAGE_2D, texture= True\
)

shader_uimage3D

Value:
ShaderDatatype("uimage3D", _gl.GL_UNSIGNED_INT_IMAGE_3D, texture= True\
)

shader_uimage2DRect

Value:
ShaderDatatype("uimage2DRect", _gl.GL_UNSIGNED_INT_IMAGE_2D_RECT, text\
ure= True)

shader_uimageCube

Value:
ShaderDatatype("uimageCube", _gl.GL_UNSIGNED_INT_IMAGE_CUBE, texture= \
True)

shader_uimageBuffer

Value:
ShaderDatatype("uimageBuffer", _gl.GL_UNSIGNED_INT_IMAGE_BUFFER, textu\
re= True)

shader_uimage1DArray

Value:
ShaderDatatype("uimage1DArray", _gl.GL_UNSIGNED_INT_IMAGE_1D_ARRAY, te\
xture= True)

shader_uimage2DArray

Value:
ShaderDatatype("uimage2DArray", _gl.GL_UNSIGNED_INT_IMAGE_2D_ARRAY, te\
xture= True)

shader_uimage2DMS

Value:
ShaderDatatype("uimage2DMS", _gl.GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE,\
 texture= True)

shader_uimage2DMSArray

Value:
ShaderDatatype("uimage2DMSArray", _gl.GL_UNSIGNED_INT_IMAGE_2D_MULTISA\
MPLE_ARRAY, texture= True)

shader_atomic_uint

Value:
ShaderDatatype("atomic_uint", _gl.GL_UNSIGNED_INT_ATOMIC_COUNTER, dtyp\
e= uint32, atomic= True)