Open reduz opened 5 years ago
The following code
for (int j = 0; j < program.getNumPipeOutputs(); j++) { if (program.getPipeOutput(i).getType()->getQualifier().hasLocation()) {
crashes on null getType(). For this shader:
layout (location = 0) out vec4 uFragColor; void main() { uFragColor=vec4(1.0); }
I want to obtain the layout locations for the fragment outputs, but seems to be not possible
Sorry, edited issue, if you are reading from mail, re-open on Github.
At least, if you are using two outputs for a GLSL fragment program, I can imagine the number matches program.getNumPipeOutputs() right?
The following code
crashes on null getType(). For this shader:
I want to obtain the layout locations for the fragment outputs, but seems to be not possible