VK-GL-CTS icon indicating copy to clipboard operation
VK-GL-CTS copied to clipboard

stringification not allowed in GLSL spec but in CTS

Open chaocNV opened this issue 1 year ago • 1 comments

I notice there are tests in CTS that specifically test the stringification in GLSL language. For example:

KHR-GL33.shaders.preprocessor.basic.stringification_vertex
KHR-GL33.shaders.preprocessor.basic.stringification_fragement 

There are other variants for this test for other GL version.

However, this seems to be disallowed according to all GLSL specs. For instance, according to page 7 of GLSL3.3 : There are no other number sign based operators (e.g., no # or #@), nor is there a sizeof operator

This issue becomes apparent when this glslang commit starts to enforce the spec.

chaocNV avatar Feb 14 '24 01:02 chaocNV

As far as I see, these are negative tests, ie the implementation is expected to report an error.

AlexGalazin-IMG avatar Feb 14 '24 09:02 AlexGalazin-IMG