Commit 25e21f9f by Brian Osman Committed by Commit Bot

Suppress HLSL warnings 3556 and 3571

These are both fairly common, and rarely actionable. Bug: chromium:765576 Change-Id: Ib067fcbb1d4ffe7fcd47b69dbe5defac81430a70 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2188952Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 555de000
......@@ -650,6 +650,12 @@ void OutputHLSL::header(TInfoSinkBase &out,
mappedStructs = generateStructMapping(std140Structs);
}
// Suppress some common warnings:
// 3556 : Integer divides might be much slower, try using uints if possible.
// 3571 : The pow(f, e) intrinsic function won't work for negative f, use abs(f) or
// conditionally handle negative values if you expect them.
out << "#pragma warning( disable: 3556 3571 )\n";
out << mStructureHLSL->structsHeader();
mResourcesHLSL->uniformsHeader(out, mOutputType, mReferencedUniforms, mSymbolTable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment