Hash :
33e035f9
Author :
Date :
2025-04-04T00:00:00
Enforce correct usage of gl::Version In preparation for the implementation update, ensured that gl::Version struct is always initialized with 8-bit values. Bug: angleproject:408843436 Change-Id: Idcc925b49cadc7fdc4f05ff2acaed8020e72a32e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6458758 Commit-Queue: Alexey Knyazev <lexa.knyazev@gmail.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
//
// Copyright 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Version.h: Encapsulation of a GL version.
#ifndef LIBANGLE_VERSION_H_
#define LIBANGLE_VERSION_H_
#include <cstdint>
namespace gl
{
struct Version
{
constexpr Version();
constexpr Version(uint8_t major, uint8_t minor);
unsigned int major;
unsigned int minor;
};
bool operator==(const Version &a, const Version &b);
bool operator!=(const Version &a, const Version &b);
bool operator>=(const Version &a, const Version &b);
bool operator<=(const Version &a, const Version &b);
bool operator<(const Version &a, const Version &b);
bool operator>(const Version &a, const Version &b);
} // namespace gl
#include "Version.inc"
#endif // LIBANGLE_VERSION_H_