chromium/third_party/glslang/src/glslang/MachineIndependent/gl_types.h

/*
** Copyright (c) 2013 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Materials, and to
** permit persons to whom the Materials are furnished to do so, subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be included
** in all copies or substantial portions of the Materials.
**
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
*/

#pragma once

#define GL_FLOAT
#define GL_FLOAT_VEC2
#define GL_FLOAT_VEC3
#define GL_FLOAT_VEC4

#define GL_DOUBLE
#define GL_DOUBLE_VEC2
#define GL_DOUBLE_VEC3
#define GL_DOUBLE_VEC4

#define GL_INT
#define GL_INT_VEC2
#define GL_INT_VEC3
#define GL_INT_VEC4

#define GL_UNSIGNED_INT
#define GL_UNSIGNED_INT_VEC2
#define GL_UNSIGNED_INT_VEC3
#define GL_UNSIGNED_INT_VEC4

#define GL_INT64_ARB
#define GL_INT64_VEC2_ARB
#define GL_INT64_VEC3_ARB
#define GL_INT64_VEC4_ARB

#define GL_UNSIGNED_INT64_ARB
#define GL_UNSIGNED_INT64_VEC2_ARB
#define GL_UNSIGNED_INT64_VEC3_ARB
#define GL_UNSIGNED_INT64_VEC4_ARB
#define GL_UNSIGNED_INT16_VEC2_NV
#define GL_UNSIGNED_INT16_VEC3_NV
#define GL_UNSIGNED_INT16_VEC4_NV

#define GL_INT16_NV
#define GL_INT16_VEC2_NV
#define GL_INT16_VEC3_NV
#define GL_INT16_VEC4_NV

#define GL_BOOL
#define GL_BOOL_VEC2
#define GL_BOOL_VEC3
#define GL_BOOL_VEC4

#define GL_FLOAT_MAT2
#define GL_FLOAT_MAT3
#define GL_FLOAT_MAT4
#define GL_FLOAT_MAT2x3
#define GL_FLOAT_MAT2x4
#define GL_FLOAT_MAT3x2
#define GL_FLOAT_MAT3x4
#define GL_FLOAT_MAT4x2
#define GL_FLOAT_MAT4x3

#define GL_DOUBLE_MAT2
#define GL_DOUBLE_MAT3
#define GL_DOUBLE_MAT4
#define GL_DOUBLE_MAT2x3
#define GL_DOUBLE_MAT2x4
#define GL_DOUBLE_MAT3x2
#define GL_DOUBLE_MAT3x4
#define GL_DOUBLE_MAT4x2
#define GL_DOUBLE_MAT4x3

// Those constants are borrowed from extension NV_gpu_shader5
#define GL_FLOAT16_NV
#define GL_FLOAT16_VEC2_NV
#define GL_FLOAT16_VEC3_NV
#define GL_FLOAT16_VEC4_NV

#define GL_FLOAT16_MAT2_AMD
#define GL_FLOAT16_MAT3_AMD
#define GL_FLOAT16_MAT4_AMD
#define GL_FLOAT16_MAT2x3_AMD
#define GL_FLOAT16_MAT2x4_AMD
#define GL_FLOAT16_MAT3x2_AMD
#define GL_FLOAT16_MAT3x4_AMD
#define GL_FLOAT16_MAT4x2_AMD
#define GL_FLOAT16_MAT4x3_AMD

#define GL_SAMPLER_1D
#define GL_SAMPLER_2D
#define GL_SAMPLER_3D
#define GL_SAMPLER_CUBE
#define GL_SAMPLER_BUFFER
#define GL_SAMPLER_1D_ARRAY
#define GL_SAMPLER_2D_ARRAY
#define GL_SAMPLER_1D_ARRAY_SHADOW
#define GL_SAMPLER_2D_ARRAY_SHADOW
#define GL_SAMPLER_CUBE_SHADOW
#define GL_SAMPLER_1D_SHADOW
#define GL_SAMPLER_2D_SHADOW
#define GL_SAMPLER_2D_RECT
#define GL_SAMPLER_2D_RECT_SHADOW
#define GL_SAMPLER_2D_MULTISAMPLE
#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY
#define GL_SAMPLER_CUBE_MAP_ARRAY
#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW
#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB
#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB

#define GL_FLOAT16_SAMPLER_1D_AMD
#define GL_FLOAT16_SAMPLER_2D_AMD
#define GL_FLOAT16_SAMPLER_3D_AMD
#define GL_FLOAT16_SAMPLER_CUBE_AMD
#define GL_FLOAT16_SAMPLER_2D_RECT_AMD
#define GL_FLOAT16_SAMPLER_1D_ARRAY_AMD
#define GL_FLOAT16_SAMPLER_2D_ARRAY_AMD
#define GL_FLOAT16_SAMPLER_CUBE_MAP_ARRAY_AMD
#define GL_FLOAT16_SAMPLER_BUFFER_AMD
#define GL_FLOAT16_SAMPLER_2D_MULTISAMPLE_AMD
#define GL_FLOAT16_SAMPLER_2D_MULTISAMPLE_ARRAY_AMD

#define GL_FLOAT16_SAMPLER_1D_SHADOW_AMD
#define GL_FLOAT16_SAMPLER_2D_SHADOW_AMD
#define GL_FLOAT16_SAMPLER_2D_RECT_SHADOW_AMD
#define GL_FLOAT16_SAMPLER_1D_ARRAY_SHADOW_AMD
#define GL_FLOAT16_SAMPLER_2D_ARRAY_SHADOW_AMD
#define GL_FLOAT16_SAMPLER_CUBE_SHADOW_AMD
#define GL_FLOAT16_SAMPLER_CUBE_MAP_ARRAY_SHADOW_AMD

#define GL_FLOAT16_IMAGE_1D_AMD
#define GL_FLOAT16_IMAGE_2D_AMD
#define GL_FLOAT16_IMAGE_3D_AMD
#define GL_FLOAT16_IMAGE_2D_RECT_AMD
#define GL_FLOAT16_IMAGE_CUBE_AMD
#define GL_FLOAT16_IMAGE_1D_ARRAY_AMD
#define GL_FLOAT16_IMAGE_2D_ARRAY_AMD
#define GL_FLOAT16_IMAGE_CUBE_MAP_ARRAY_AMD
#define GL_FLOAT16_IMAGE_BUFFER_AMD
#define GL_FLOAT16_IMAGE_2D_MULTISAMPLE_AMD
#define GL_FLOAT16_IMAGE_2D_MULTISAMPLE_ARRAY_AMD

#define GL_INT_SAMPLER_1D
#define GL_INT_SAMPLER_2D
#define GL_INT_SAMPLER_3D
#define GL_INT_SAMPLER_CUBE
#define GL_INT_SAMPLER_1D_ARRAY
#define GL_INT_SAMPLER_2D_ARRAY
#define GL_INT_SAMPLER_2D_RECT
#define GL_INT_SAMPLER_BUFFER
#define GL_INT_SAMPLER_2D_MULTISAMPLE
#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
#define GL_INT_SAMPLER_CUBE_MAP_ARRAY
#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB

#define GL_UNSIGNED_INT_SAMPLER_1D
#define GL_UNSIGNED_INT_SAMPLER_2D
#define GL_UNSIGNED_INT_SAMPLER_3D
#define GL_UNSIGNED_INT_SAMPLER_CUBE
#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY
#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY
#define GL_UNSIGNED_INT_SAMPLER_2D_RECT
#define GL_UNSIGNED_INT_SAMPLER_BUFFER
#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY
#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB
#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE

#define GL_IMAGE_1D
#define GL_IMAGE_2D
#define GL_IMAGE_3D
#define GL_IMAGE_2D_RECT
#define GL_IMAGE_CUBE
#define GL_IMAGE_BUFFER
#define GL_IMAGE_1D_ARRAY
#define GL_IMAGE_2D_ARRAY
#define GL_IMAGE_CUBE_MAP_ARRAY
#define GL_IMAGE_2D_MULTISAMPLE
#define GL_IMAGE_2D_MULTISAMPLE_ARRAY
#define GL_INT_IMAGE_1D
#define GL_INT_IMAGE_2D
#define GL_INT_IMAGE_3D
#define GL_INT_IMAGE_2D_RECT
#define GL_INT_IMAGE_CUBE
#define GL_INT_IMAGE_BUFFER
#define GL_INT_IMAGE_1D_ARRAY
#define GL_INT_IMAGE_2D_ARRAY
#define GL_INT_IMAGE_CUBE_MAP_ARRAY
#define GL_INT_IMAGE_2D_MULTISAMPLE
#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY
#define GL_UNSIGNED_INT_IMAGE_1D
#define GL_UNSIGNED_INT_IMAGE_2D
#define GL_UNSIGNED_INT_IMAGE_3D
#define GL_UNSIGNED_INT_IMAGE_2D_RECT
#define GL_UNSIGNED_INT_IMAGE_CUBE
#define GL_UNSIGNED_INT_IMAGE_BUFFER
#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY
#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY
#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY
#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE
#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY

#define GL_UNSIGNED_INT_ATOMIC_COUNTER