slang icon indicating copy to clipboard operation
slang copied to clipboard

Remove or allow disabling warning 39001

Open ignaci opened this issue 5 years ago • 1 comments

When targetting SPIR-V we see this warning too frequently, and it is not really necessary because what we do is allowed.

"warning 39001: explicit binding for parameter 'Float4TextureCubes' overlaps with parameter 'Float4Texture2Ds'"

Please provide a way to disable this warning, and remove it.

ignaci avatar Jul 21 '19 19:07 ignaci

This is an old issue but in case anyone else comes across it, the warning can be disabled by putting the attribute [[allow("parameterBindingsOverlap")]] on each of the overlapping bindings. It seems that this was added shortly after this issue in #1005 but not documented anywhere as far as I can tell.

s1sw avatar Sep 03 '22 11:09 s1sw

We have implemented compiler options to disable warnings.

csyonghe avatar Apr 04 '23 21:04 csyonghe