You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set_target_properties(imtestsuitePROPERTIESCXX_STANDARD14) # NOTE! THOSE TESTS DO NOT COMPILE WITH HIGHER STANDARDS SO WE WRAP SOURCES INTO LIBRARY COMPILED WITH LOWER ONE
std::span<const std::string> dxcOptions;// TODO: span is a VIEW to memory, so to something which we should treat immutable - why not span of string_view then? Since its span we force users to keep those std::strings alive anyway but now we cannnot even make nice constexpr & pass such expression here directly
staticconstexprautogetRequiredArguments() //! returns required arguments for the compiler's backend
59
+
{
60
+
returnstd::span(RequiredArguments);
61
+
}
69
62
70
63
protected:
71
64
// This can't be a unique_ptr due to it being an undefined type
@@ -81,6 +74,23 @@ class NBL_API2 CHLSLCompiler final : public IShaderCompiler
81
74
ret.setCommonData(options);
82
75
return ret;
83
76
}
77
+
78
+
private:
79
+
// we cannot have PUBLIC data symbol in header we do export - endpoint application will fail on linker with delayed DLL loading mechanism (thats why we trick it with private member hidden from the export + provide exported getter)
constexprstaticinlineauto RequiredArguments = std::to_array<constwchar_t*> // TODO: and if dxcOptions is span of std::string then why w_chars there? https://en.cppreference.com/w/cpp/string/basic_string
0 commit comments