summaryrefslogtreecommitdiffstats
path: root/source/slang/options.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2018-11-01 13:23:45 -0700
committerGitHub <noreply@github.com>2018-11-01 13:23:45 -0700
commit82f57ae3561e9f9e8ece8ab6c12c2b318580bc38 (patch)
tree56ad0a6b0c47ddc5b3f866bf2a60bd6e074ba49e /source/slang/options.cpp
parente55d8dcb9fc5607b429f7120d8f5373cecf93e1f (diff)
Disable warnings when compiling through dxc (#710)
I had hoped to just disable certain warnings (false positives that trigger based on how Slang outputs HLSL code), but dxc doesn't support fine-grained control over warnings from the command line (we might investigate `#pragma`-based options later). There are enough user complaints about how downstream compiler errors come mixed with tons of distracting warnings that disabling them will lead to a better user experience for now. This change also fixes a long-standing bug where apparently dxc does *not* guaranteee that the diagnostic blob it returns is nul-terminated (despite this convention being established by fxc), so that we need to nul-terminate it ourselves before emitting any diagnostic messages produced by dxc.
Diffstat (limited to 'source/slang/options.cpp')
0 files changed, 0 insertions, 0 deletions