Results 1 to 2 of 2

Thread: fragment shader hanging

  1. #1
    Member Contributor
    Join Date
    Jul 2018

    fragment shader hanging


    I have a simple fragment shader that outputs color values green and red.

    layout(location = 0, index = 0) out vec4 Color0;
    layout(location = 1, index = 0) out vec4 Color1;


    However, when I build my visual studio solution it seems to hang on such a simple fragment shader. I am not sure how to debug this any better since this is the simplest possible scenerio.

  2. #2
    Newbie Frequent Contributor
    Join Date
    Mar 2016
    That does not make sense to me. Visual Studio compiles your application code not your shaders (those are compiled at runtime by the OpenGL implementation, aka the graphics driver). What you posted is also not a complete fragment shader, it does not contain a function with signature
    Code :
    void main(void){ }
    Are you checking for OpenGL errors with glGetError or KHR_debug and do you check if your shaders compile and link successfully?

Similar Threads

  1. Replies: 7
    Last Post: 06-06-2018, 06:35 AM
  2. Replies: 4
    Last Post: 08-03-2017, 01:01 PM
  3. Replies: 7
    Last Post: 09-15-2015, 04:00 AM
  4. Replies: 1
    Last Post: 08-02-2015, 07:45 PM
  5. Replies: 5
    Last Post: 06-23-2013, 01:13 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
Proudly hosted by Digital Ocean