Results 1 to 3 of 3

Thread: Vulkan glGetShaderInfoLog and printf in shaders

  1. #1

    Vulkan glGetShaderInfoLog and printf in shaders

    I'm going to assume that SPIR-V shaders don't have support for printf. I'm pointing at glGetShaderInfoLog() to help make my question clear - obviously it also doesn't exist in Vulkan.

    It doesn't seem too hard to write a GLSL printf() implementation using atomics and SSBOs. Naturally it doesn't need to be super-optimized.

    Before I spend too much time in that rabbit hole, I wanted to ask everyone's thoughts?
    Last edited by dhubbard; 04-19-2018 at 10:17 AM.

  2. #2
    SPIR-V doesn't have support for text, let alone "printf". And `glGetShaderInfoLog` is nothing like "printf"; the stuff that goes into it are error messages from the compilation, not runtime stuff you'd get in "printf"s.

    So it's not clear what exactly you're talking about here.

  3. #3
    Good response, Alfonse.

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