Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Falcor 8.0 floods slang warnings #450

Open
Hyiker opened this issue Oct 10, 2024 · 0 comments
Open

Falcor 8.0 floods slang warnings #450

Hyiker opened this issue Oct 10, 2024 · 0 comments

Comments

@Hyiker
Copy link

Hyiker commented Oct 10, 2024

Just get my fork upgraded to Falcor 8.0 aligning with commit 9dc819c162b2070335c65060436041690b7937f8. Running Mogwai with PathTracer.py on cornell box scene leads to flooding slang warnings:

...
warning 41016: use of uninitialized variable 'result'
                    path.setDeltaOnlyPath(result.isLobe(LobeType::DeltaReflection) || result.isLobe(LobeType::DeltaTransmission));
...

More than 1000+ lines of resembling logs are produced.

Checked the slang version 2024.1.34 supports slang::CompilerOptionName::DisableWarning api in deed, but it still floods warnings on my computer even if I create a brand new clone from https://github.com/NVIDIAGameWorks/Falcor and build.

I found adding spOverrideDiagnosticSeverity in createSlangCompileRequest could suppress the warning, but it's definitely not a good practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant