Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: GClements

Search: Search took 0.00 seconds.

  1. position needs to start at a multiple of 4N from...

    position needs to start at a multiple of 4N from the beginning of the block, which is why there's padding before it. intensity doesn't have any alignment requirement, so there's no padding inserted...
  2. A vec3 will be aligned to a 4N boundary (where N...

    A vec3 will be aligned to a 4N boundary (where N is the size of a float). So there's a single float of padding between colour and position to ensure that position has the correct alignment. The...
  3. The size of a uniform array must be known when...

    The size of a uniform array must be known when the shader is linked. You can declare the array with the maximum required size then use a uniform int variable to indicate the number of valid elements...
Results 1 to 3 of 3