Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Do GLSL structures any performance overhead?

Threaded View

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    3

    Question Do GLSL structures any performance overhead?

    Do GLSL varying structures any performance overhead? How they are implemented?
    Are the following snippets equivalent in the aspect of performance?

    out MyBlock
    {
    out vec3 var0;
    out vec3 var1;
    out vec3 var2;
    } Out;
    ----------------------------
    struct MyStruct
    {
    vec3 var0;
    vec3 var1;
    vec3 var2;
    };
    out MyBlock
    {
    MyStruct Out;
    };

    Thanks in advance.
    Last edited by plasmacel; 01-19-2014 at 01:11 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •