mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
update openal
This commit is contained in:
parent
62f3b93ff9
commit
6721a6b021
287 changed files with 33851 additions and 27325 deletions
70
Engine/lib/openal-soft/al/debug.h
Normal file
70
Engine/lib/openal-soft/al/debug.h
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
#ifndef AL_DEBUG_H
|
||||
#define AL_DEBUG_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
using uint = unsigned int;
|
||||
|
||||
|
||||
/* Somewhat arbitrary. Avoid letting it get out of control if the app enables
|
||||
* logging but never reads it.
|
||||
*/
|
||||
inline constexpr std::uint8_t MaxDebugLoggedMessages{64};
|
||||
inline constexpr std::uint16_t MaxDebugMessageLength{1024};
|
||||
inline constexpr std::uint8_t MaxDebugGroupDepth{64};
|
||||
inline constexpr std::uint16_t MaxObjectLabelLength{1024};
|
||||
|
||||
|
||||
inline constexpr uint DebugSourceBase{0};
|
||||
enum class DebugSource : std::uint8_t {
|
||||
API = 0,
|
||||
System,
|
||||
ThirdParty,
|
||||
Application,
|
||||
Other,
|
||||
};
|
||||
inline constexpr uint DebugSourceCount{5};
|
||||
|
||||
inline constexpr uint DebugTypeBase{DebugSourceBase + DebugSourceCount};
|
||||
enum class DebugType : std::uint8_t {
|
||||
Error = 0,
|
||||
DeprecatedBehavior,
|
||||
UndefinedBehavior,
|
||||
Portability,
|
||||
Performance,
|
||||
Marker,
|
||||
PushGroup,
|
||||
PopGroup,
|
||||
Other,
|
||||
};
|
||||
inline constexpr uint DebugTypeCount{9};
|
||||
|
||||
inline constexpr uint DebugSeverityBase{DebugTypeBase + DebugTypeCount};
|
||||
enum class DebugSeverity : std::uint8_t {
|
||||
High = 0,
|
||||
Medium,
|
||||
Low,
|
||||
Notification,
|
||||
};
|
||||
inline constexpr uint DebugSeverityCount{4};
|
||||
|
||||
struct DebugGroup {
|
||||
const uint mId;
|
||||
const DebugSource mSource;
|
||||
std::string mMessage;
|
||||
std::vector<uint> mFilters;
|
||||
std::vector<std::uint64_t> mIdFilters;
|
||||
|
||||
template<typename T>
|
||||
DebugGroup(DebugSource source, uint id, T&& message)
|
||||
: mId{id}, mSource{source}, mMessage{std::forward<T>(message)}
|
||||
{ }
|
||||
DebugGroup(const DebugGroup&) = default;
|
||||
DebugGroup(DebugGroup&&) = default;
|
||||
~DebugGroup();
|
||||
};
|
||||
|
||||
#endif /* AL_DEBUG_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue