CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
ShaderVersion.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
13
15
16 // Shader version class.
18 public:
19 ShaderVersion() = default;
20 ShaderVersion(Int32 major, Int32 minor);
21 ShaderVersion(const ShaderVersion&) = default;
23
24 [[nodiscard]] inline Int32 getMajor() const { return mMajor; }
25 [[nodiscard]] inline Int32 getMinor() const { return mMinor; }
26
28
29 private:
32 };
33
34 [[nodiscard]] bool operator==(const ShaderVersion& lhs, const ShaderVersion& rhs);
35 [[nodiscard]] bool operator!=(const ShaderVersion& lhs, const ShaderVersion& rhs);
36
37 [[nodiscard]] bool operator<(const ShaderVersion& lhs, const ShaderVersion& rhs);
38 [[nodiscard]] bool operator<=(const ShaderVersion& lhs, const ShaderVersion& rhs);
39
40 [[nodiscard]] bool operator>(const ShaderVersion& lhs, const ShaderVersion& rhs);
41 [[nodiscard]] bool operator>=(const ShaderVersion& lhs, const ShaderVersion& rhs);
42
43} // namespace CeresEngine::ShaderCompiler
Definition ShaderVersion.hpp:17
Int32 mMinor
Definition ShaderVersion.hpp:31
ShaderVersion & operator=(const ShaderVersion &)=default
ShaderVersion(const ShaderVersion &)=default
Int32 mMajor
Definition ShaderVersion.hpp:30
Int32 getMinor() const
Definition ShaderVersion.hpp:25
Int32 getMajor() const
Definition ShaderVersion.hpp:24
ShaderVersion(Int32 major, Int32 minor)
Definition AST.hpp:33
bool operator!=(const Identifier &lhs, const Identifier &rhs)
Definition Identifier.hpp:64
bool operator==(const Identifier &lhs, const Identifier &rhs)
Definition Identifier.hpp:60
bool operator>=(const ShaderVersion &lhs, const ShaderVersion &rhs)
bool operator<(const Identifier &lhs, const Identifier &rhs)
Definition Identifier.hpp:68
bool operator<=(const ShaderVersion &lhs, const ShaderVersion &rhs)
bool operator>(const ShaderVersion &lhs, const ShaderVersion &rhs)
std::int32_t Int32
Definition DataTypes.hpp:21
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25