Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
Hi!Question regarding shaders compilation. Say, we have multiple shaders and some common code blocks, that are included in most of them.Is there a difference in terms of shader compilation performance between following cases:- glShaderSource is always called with one string (concatenation of common parts and shader source)- glShaderSource is called with multiple string (common part, shader source)Regards,Aleksei
Shouldn't make any difference - compared the cost of compile and link, any difference here will be in the noise.
Cheers, Pete
Thx for the answer.Just to verfiy - there is no internal caching happening on per string level on the driver side, caching happening only per contents of result of concatenated strings?
Yes - shader cache needs the whole shader.