• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2021 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // angle_version_info.cpp: ANGLE version queries.
7 
8 #include "GLSLANG/ShaderLang.h"
9 #include "common/angle_version.h"
10 
11 namespace angle
12 {
GetANGLERevision()13 int GetANGLERevision()
14 {
15     return ANGLE_REVISION;
16 }
17 
GetANGLEVersionString()18 const char *GetANGLEVersionString()
19 {
20     return ANGLE_VERSION_STRING;
21 }
22 
GetANGLECommitHash()23 const char *GetANGLECommitHash()
24 {
25     return ANGLE_COMMIT_HASH;
26 }
27 
GetANGLECommitHashSize()28 int GetANGLECommitHashSize()
29 {
30     return ANGLE_COMMIT_HASH_SIZE;
31 }
32 
GetANGLEShaderProgramVersion()33 const char *GetANGLEShaderProgramVersion()
34 {
35     return ANGLE_PROGRAM_VERSION;
36 }
37 
GetANGLEShaderProgramVersionHashSize()38 int GetANGLEShaderProgramVersionHashSize()
39 {
40     return ANGLE_PROGRAM_VERSION_HASH_SIZE;
41 }
42 
GetANGLESHVersion()43 int GetANGLESHVersion()
44 {
45     return ANGLE_SH_VERSION;
46 }
47 }  // namespace angle
48