#include <LibWeb/WebGL/WebGLCommands.h>

namespace Web::WebGL {

StringView to_string(WebGLCommandType type)
{
    switch (type) {
#define __ENUMERATE(name) \
    case WebGLCommandType::name: \
        return #name##sv;
        ENUMERATE_WEBGL_COMMANDS(__ENUMERATE)
#undef __ENUMERATE
    }
    VERIFY_NOT_REACHED();
}

StringView to_string(WebGLSyncCallType type)
{
    switch (type) {
#define __ENUMERATE(name) \
    case WebGLSyncCallType::name: \
        return #name##sv;
        ENUMERATE_WEBGL_SYNC_CALLS(__ENUMERATE)
#undef __ENUMERATE
    }
    VERIFY_NOT_REACHED();
}

}
