Fix compilation of FFMpeg plugin/emscripten/ShaderNode
This commit is contained in:
parent
1c54c9a914
commit
d4b2cede15
|
|
@ -393,7 +393,7 @@ namespace
|
||||||
int m_videoStream;
|
int m_videoStream;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool CheckVideoExtension(const std::string_view& extension)
|
bool CheckVideoExtension(std::string_view extension)
|
||||||
{
|
{
|
||||||
const AVOutputFormat* format = av_guess_format(nullptr, extension.data(), nullptr);
|
const AVOutputFormat* format = av_guess_format(nullptr, extension.data(), nullptr);
|
||||||
if (!format)
|
if (!format)
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ namespace Nz::GL
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebContext::ImplementFallback(const std::string_view& function)
|
bool WebContext::ImplementFallback(std::string_view function)
|
||||||
{
|
{
|
||||||
if (Context::ImplementFallback(function))
|
if (Context::ImplementFallback(function))
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ namespace Nz::GL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebLoader::ImplementFallback(const std::string_view& /*function*/)
|
bool WebLoader::ImplementFallback(std::string_view /*function*/)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ enum class TextureType
|
||||||
constexpr std::size_t TextureTypeCount = static_cast<std::size_t>(TextureType::Max) + 1;
|
constexpr std::size_t TextureTypeCount = static_cast<std::size_t>(TextureType::Max) + 1;
|
||||||
|
|
||||||
|
|
||||||
template<typename T> std::optional<T> DecodeEnum(const std::string_view& str);
|
template<typename T> std::optional<T> DecodeEnum(std::string_view str);
|
||||||
const char* EnumToString(BufferType bufferType);
|
const char* EnumToString(BufferType bufferType);
|
||||||
const char* EnumToString(InputRole role);
|
const char* EnumToString(InputRole role);
|
||||||
const char* EnumToString(PrimitiveType input);
|
const char* EnumToString(PrimitiveType input);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#include <ShaderNode/Enums.hpp>
|
#include <ShaderNode/Enums.hpp>
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
std::optional<T> DecodeEnum(const std::string_view& str)
|
std::optional<T> DecodeEnum(std::string_view str)
|
||||||
{
|
{
|
||||||
constexpr std::size_t ValueCount = static_cast<std::size_t>(T::Max) + 1;
|
constexpr std::size_t ValueCount = static_cast<std::size_t>(T::Max) + 1;
|
||||||
for (std::size_t i = 0; i < ValueCount; ++i)
|
for (std::size_t i = 0; i < ValueCount; ++i)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue