Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: layout qualifier with ivec4

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Regular Contributor
    Join Date
    Apr 2006

    layout location qualifier with ivec4

    I am having a little trouble with my shader:

    This doesn't work, I get a linker error

    Code :
    #version 420 core
    layout(location = 0)    in vec4 inVertex;
    layout(location = 1)    in vec4 inColour;
    layout(location = 2)    in vec3 inNormal;
    layout(location = 3)    in vec4 inJointWeight;
    layout(location = 4)    in ivec4 inJointIdx;
    // of the shader omitted, but i don't even use inJointIdx

    these two both work:
    changing the ivec4 to a vec4:
    Code :
    #version 420 core
    //..same at above...
    layout(location = 4)    in vec4 inJointIdx;
    and removing the layout qualifier but keep it an ivec4:
    Code :
    #version 420 core
    //..same at above...
    in ivec4 inJointIdx;

    Any ideas what the cause could be? I am using Windows 7, GTX 460 with 306.23 drivers.

    Thanks for any help
    Last edited by James A.; 09-27-2012 at 08:53 PM.

Posting Permissions

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