You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile slang to GLSL via the commandline and I'm getting a warning that I can't make sense of:
1>shaders.slang(40): warning 41012: entry point 'fragmentMain' uses additional capabilities that are not part of the specified profile 'glsl_450'. The profile setting is automatically updated to include these capabilities: 'GL_EXT_texture_query_lod + GL_ARB_sparse_texture_clamp'
1>float4 fragmentMain(CoarseVertex coarseVertex : CoarseVertex) : SV_Target
1> ^~~~~~~~~~~~
Both my GLSL and slang is a bit rusty, but it looks basic to me. Why would I need the extensions GL_EXT_texture_query_lod and GL_ARB_sparse_texture_clamp here?
The text was updated successfully, but these errors were encountered:
To get rid of the warning, remove -profile glsl_450 in your commandline to slangc. If you specified a profile, slang will try to verify you don't use anything not covered by glsl_450 profile. And it seems that the capability definition for texture.Sample method isn't correct.
I'm trying to compile slang to GLSL via the commandline and I'm getting a warning that I can't make sense of:
Command line arguments:
shaders.slang:
The generated shaders.frag:
Both my GLSL and slang is a bit rusty, but it looks basic to me. Why would I need the extensions GL_EXT_texture_query_lod and GL_ARB_sparse_texture_clamp here?
The text was updated successfully, but these errors were encountered: