Search code examples
glslvulkan

Accessing Fragment Area in shader


The vulkan spec defines Fragment Area as The width and height, in pixels, of a fragment. Is there a way to access this width and height in the fragment shader.


Solution

  • Trivial fulltext search of the specification gives me FragSizeEXT. Perhaps that one is applicable?