Some more fixes, hopefully GCC will stop shitting itself now
This commit is contained in:
parent
3fe70476bb
commit
0ff0425045
|
|
@ -126,7 +126,7 @@ namespace Nz
|
|||
template<typename T>
|
||||
void SinCos(std::enable_if_t<std::is_same<T, long double>::value, long double> x, long double* s, long double* c)
|
||||
{
|
||||
::sincosl(x, sin, cos);
|
||||
::sincosl(x, s, c);
|
||||
}
|
||||
#else
|
||||
// Naive implementation, hopefully optimized by the compiler
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ namespace Nz
|
|||
SpirvPrinter(SpirvPrinter&&) = default;
|
||||
~SpirvPrinter() = default;
|
||||
|
||||
std::string Print(const UInt32* codepoints, std::size_t count);
|
||||
std::string Print(const UInt32* codepoints, std::size_t count, const Settings& settings = {});
|
||||
inline std::string Print(const UInt32* codepoints, std::size_t count);
|
||||
std::string Print(const UInt32* codepoints, std::size_t count, const Settings& settings);
|
||||
|
||||
SpirvPrinter& operator=(const SpirvPrinter&) = default;
|
||||
SpirvPrinter& operator=(SpirvPrinter&&) = default;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ namespace Nz
|
|||
{
|
||||
m_writer.WriteLocalVariable(value.varName, resultId);
|
||||
},
|
||||
[this](std::monostate)
|
||||
[](std::monostate)
|
||||
{
|
||||
throw std::runtime_error("an internal error occurred");
|
||||
}
|
||||
|
|
@ -62,11 +62,11 @@ namespace Nz
|
|||
|
||||
return resultId;
|
||||
},
|
||||
[&](const LocalVar& value) -> UInt32
|
||||
[](const LocalVar& value) -> UInt32
|
||||
{
|
||||
throw std::runtime_error("not yet implemented");
|
||||
},
|
||||
[this](std::monostate) -> UInt32
|
||||
[](std::monostate) -> UInt32
|
||||
{
|
||||
throw std::runtime_error("an internal error occurred");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue