File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -264,18 +264,7 @@ class NBL_API2 IShaderCompiler : public core::IReferenceCounted
264
264
265
265
virtual void insertIntoStart (std::string& code, std::ostringstream&& ins) const = 0;
266
266
267
- void insertExtraDefines (std::string& code, const core::SRange<const char * const >& defines) const
268
- {
269
- if (defines.empty ())
270
- return ;
271
-
272
- std::ostringstream insertion;
273
- for (auto def : defines)
274
- {
275
- insertion << " #define " << def << " \n " ;
276
- }
277
- insertIntoStart (code, std::move (insertion));
278
- }
267
+ void insertExtraDefines (std::string& code, const core::SRange<const char * const >& defines) const ;
279
268
280
269
core::smart_refctd_ptr<system::ISystem> m_system;
281
270
private:
Original file line number Diff line number Diff line change @@ -207,3 +207,16 @@ std::string IShaderCompiler::CIncludeFinder::tryIncludeGenerators(const std::str
207
207
208
208
return " " ;
209
209
}
210
+
211
+ void IShaderCompiler::insertExtraDefines (std::string& code, const core::SRange<const char * const >& defines) const
212
+ {
213
+ if (defines.empty ())
214
+ return ;
215
+
216
+ std::ostringstream insertion;
217
+ for (auto i = 0u ; i < defines.size (); ++i)
218
+ {
219
+ insertion << " #define " << defines[i] << " \r\n " ;
220
+ }
221
+ insertIntoStart (code, std::move (insertion));
222
+ }
You can’t perform that action at this time.
0 commit comments