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 10
10
11
11
12
12
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
-
28
13
class ShaderCompiler final : public system::IApplicationFramework
29
14
{
30
15
using base_t = system::IApplicationFramework;
@@ -41,7 +26,14 @@ class ShaderCompiler final : public system::IApplicationFramework
41
26
42
27
core::vector<std::string> arguments (argv + 1 , argv + argc);
43
28
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
+ }
45
37
46
38
std::string command = " dxc.exe" ;
47
39
for (std::string arg : arguments)
@@ -61,4 +53,8 @@ class ShaderCompiler final : public system::IApplicationFramework
61
53
void workLoopBody () override {}
62
54
63
55
bool keepRunning () override { return false ; }
56
+
57
+
58
+ private:
59
+ bool no_nbl_builtins{false };
64
60
};
You can’t perform that action at this time.
0 commit comments