File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 1010
1111
1212
13- bool no_nbl_builtins;
14-
15-
16- bool noNblBuiltinsEnabled (const core::vector<std::string>& args)
17- {
18- for (auto i=0 ; i<args.size (); i++)
19- {
20- if (args[i] == " -no-nbl-builtins" )
21- return true ;
22- }
23- return false ;
24- }
25-
26-
27-
2813class ShaderCompiler final : public system::IApplicationFramework
2914{
3015 using base_t = system::IApplicationFramework;
@@ -41,7 +26,14 @@ class ShaderCompiler final : public system::IApplicationFramework
4126
4227 core::vector<std::string> arguments (argv + 1 , argv + argc);
4328
44- no_nbl_builtins = noNblBuiltinsEnabled (arguments);
29+ for (auto i=0 ; i<argc; i++)
30+ {
31+ if (argv[i] == " -no-nbl-builtins" )
32+ {
33+ no_nbl_builtins = true ;
34+ break ;
35+ }
36+ }
4537
4638 std::string command = " dxc.exe" ;
4739 for (std::string arg : arguments)
@@ -61,4 +53,8 @@ class ShaderCompiler final : public system::IApplicationFramework
6153 void workLoopBody () override {}
6254
6355 bool keepRunning () override { return false ; }
56+
57+
58+ private:
59+ bool no_nbl_builtins{false };
6460};
You can’t perform that action at this time.
0 commit comments