Skip to content

Commit da5fec0

Browse files
nahiimAnastaZIuk
authored andcommitted
remove function
1 parent 455e5c6 commit da5fec0

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

tools/ndt/main.cpp

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@
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-
2813
class 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
};

0 commit comments

Comments
 (0)