What is gvec4?

As already mentioned, https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/imageLoad.xhtml , it is assumed that there is a gvec4 type. But there is nothing I can do about it. What is this data type?

+4
source share
1 answer

The term is gvec4used as universal for all types of vectors: floats, signed integers, unsigned integers and doubles. "G" is replaced by the actual type:

  • Nothing for floats. ( vec4)
  • ifor signed int. ( ivec4)
  • ufor unsigned ints. ( uvec4)
  • dfor doubles. ( dvec4)

imageLoad . "G" "g" . (, image2d) imageLoad return vec4. (, iimage2d) imageLoad return ivec4. .

+9

Source: https://habr.com/ru/post/1682039/


All Articles