vispy.visuals.collections.util.
dtype_reduce
Try to reduce dtype up to a given level when it is possible
(‘normal’, [(‘x’, ‘f4’), (‘y’, ‘f4’), (‘z’, ‘f4’)]), (‘color’, [(‘r’, ‘f4’), (‘g’, ‘f4’), (‘b’, ‘f4’),
(‘a’, ‘f4’)])]
level 0: [‘color,vertex,normal,’, 10, ‘float32’] level 1: [[‘color’, 4, ‘float32’]
[‘normal’, 3, ‘float32’] [‘vertex’, 3, ‘float32’]]
fetchcode
Generate the GLSL code needed to retrieve fake uniform values from a texture.
Texture to fetch uniforms from
Size of texture (width,height,count) where count is the number of float to be fetched.
Attribute giving the index of the uniforms to be fetched. This index
relates to the index in the uniform array from python side.