-
Notifications
You must be signed in to change notification settings - Fork 65
Ex builtin archives #896
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
base: master
Are you sure you want to change the base?
Ex builtin archives #896
Conversation
…s, update examples_tests
…s_tests submodule
…e options, get rid of FXC entries for VS generators with VS_TOOL_OVERRIDE property, update examples_tests submodules. TODO: I need to make it more generic and allow to embed additional files next to precompiled SPIRV to share the same mount point
…RING_RESOLVER_TU_DEBUG_OPTIMISATION enabled by default and force threading=0 for wave - combined gives over 3x compilation boost in Debug and its almost perf-like RWDI now, update docker/compiler-explorer submodule
|
||
namespace nbl::wave | ||
{ | ||
std::string resolveString(std::string& code, const nbl::asset::IShaderCompiler::SPreprocessorOptions& preprocessOptions, bool withCaching, std::function<void(nbl::wave::context&)> post) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the name from resolveString
to just preprocess
or preprocessString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved in following commit
{ | ||
nbl::wave::context context(code.begin(), code.end(), preprocessOptions.sourceIdentifier.data(), { preprocessOptions }); | ||
context.set_caching(withCaching); | ||
context.add_macro_definition("__HLSL_VERSION"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add defines for __SPIRV_MAJOR_VERSION__
and __SPIRV_MINOR_VERSION__
(requires moving of E_SPIRV_VERSION targetSpirvVersion = E_SPIRV_VERSION::ESV_1_6;
from SCompilerOptions
to SPreprocessorOptions
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
…make it more general purpose, update examples_tests submodule
…, define `__SPIRV_MAJOR_VERSION__` and `__SPIRV_MINOR_VERSION__`, update examples_tests submodules
…e incremental updates for NSC rules and single step for registering archive
Description
Testing
TODO list: