summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_GL.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-03-08 18:34:09 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-03-08 18:36:03 +0900
commit49e7a8ee6982aa5f16cbde72b7729f1cef838e14 (patch)
treec80dd782aa88f92849b5650eefca5d1c4a8972e6 /src/lib/evas/Evas_GL.h
parenta7b501d94764f3cd183fcfb92fe201ab8f954dc2 (diff)
evas gl: Add missing GLES 3.1 definitions
Evas_GL_API supports the GLES 3.1 functions but the required macros were not present. Thanks Brokenshakles for the tip.
Diffstat (limited to 'src/lib/evas/Evas_GL.h')
-rw-r--r--src/lib/evas/Evas_GL.h179
1 files changed, 178 insertions, 1 deletions
diff --git a/src/lib/evas/Evas_GL.h b/src/lib/evas/Evas_GL.h
index 8669c92172..61c4e4636f 100644
--- a/src/lib/evas/Evas_GL.h
+++ b/src/lib/evas/Evas_GL.h
@@ -4295,7 +4295,6 @@ typedef struct __GLsync* GLsync;
4295#ifndef __gl3_h_ 4295#ifndef __gl3_h_
4296# define __gl3_h_ 1 4296# define __gl3_h_ 1
4297 4297
4298
4299#define GL_READ_BUFFER 0x0C02 4298#define GL_READ_BUFFER 0x0C02
4300#define GL_UNPACK_ROW_LENGTH 0x0CF2 4299#define GL_UNPACK_ROW_LENGTH 0x0CF2
4301#define GL_UNPACK_SKIP_ROWS 0x0CF3 4300#define GL_UNPACK_SKIP_ROWS 0x0CF3
@@ -4604,6 +4603,184 @@ typedef struct __GLsync* GLsync;
4604 4603
4605#endif 4604#endif
4606 4605
4606#ifndef __gl31_h_
4607#define __gl31_h_ 1
4608
4609#define GL_COMPUTE_SHADER 0x91B9
4610#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
4611#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
4612#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
4613#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
4614#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
4615#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
4616#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
4617#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
4618#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
4619#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
4620#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
4621#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
4622#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
4623#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
4624#define GL_COMPUTE_SHADER_BIT 0x00000020
4625#define GL_DRAW_INDIRECT_BUFFER 0x8F3F
4626#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
4627#define GL_MAX_UNIFORM_LOCATIONS 0x826E
4628#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
4629#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
4630#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
4631#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
4632#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
4633#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
4634#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
4635#define GL_UNIFORM 0x92E1
4636#define GL_UNIFORM_BLOCK 0x92E2
4637#define GL_PROGRAM_INPUT 0x92E3
4638#define GL_PROGRAM_OUTPUT 0x92E4
4639#define GL_BUFFER_VARIABLE 0x92E5
4640#define GL_SHADER_STORAGE_BLOCK 0x92E6
4641#define GL_ATOMIC_COUNTER_BUFFER 0x92C0
4642#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
4643#define GL_ACTIVE_RESOURCES 0x92F5
4644#define GL_MAX_NAME_LENGTH 0x92F6
4645#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
4646#define GL_NAME_LENGTH 0x92F9
4647#define GL_TYPE 0x92FA
4648#define GL_ARRAY_SIZE 0x92FB
4649#define GL_OFFSET 0x92FC
4650#define GL_BLOCK_INDEX 0x92FD
4651#define GL_ARRAY_STRIDE 0x92FE
4652#define GL_MATRIX_STRIDE 0x92FF
4653#define GL_IS_ROW_MAJOR 0x9300
4654#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
4655#define GL_BUFFER_BINDING 0x9302
4656#define GL_BUFFER_DATA_SIZE 0x9303
4657#define GL_NUM_ACTIVE_VARIABLES 0x9304
4658#define GL_ACTIVE_VARIABLES 0x9305
4659#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
4660#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
4661#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
4662#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
4663#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
4664#define GL_LOCATION 0x930E
4665#define GL_VERTEX_SHADER_BIT 0x00000001
4666#define GL_FRAGMENT_SHADER_BIT 0x00000002
4667#define GL_ALL_SHADER_BITS 0xFFFFFFFF
4668#define GL_PROGRAM_SEPARABLE 0x8258
4669#define GL_ACTIVE_PROGRAM 0x8259
4670#define GL_PROGRAM_PIPELINE_BINDING 0x825A
4671#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
4672#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
4673#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
4674#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
4675#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
4676#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
4677#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
4678#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
4679#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
4680#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
4681#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
4682#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
4683#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB
4684#define GL_MAX_IMAGE_UNITS 0x8F38
4685#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
4686#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
4687#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
4688#define GL_IMAGE_BINDING_NAME 0x8F3A
4689#define GL_IMAGE_BINDING_LEVEL 0x8F3B
4690#define GL_IMAGE_BINDING_LAYERED 0x8F3C
4691#define GL_IMAGE_BINDING_LAYER 0x8F3D
4692#define GL_IMAGE_BINDING_ACCESS 0x8F3E
4693#define GL_IMAGE_BINDING_FORMAT 0x906E
4694#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
4695#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
4696#define GL_UNIFORM_BARRIER_BIT 0x00000004
4697#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
4698#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
4699#define GL_COMMAND_BARRIER_BIT 0x00000040
4700#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
4701#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
4702#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
4703#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
4704#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
4705#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
4706#define GL_ALL_BARRIER_BITS 0xFFFFFFFF
4707#define GL_IMAGE_2D 0x904D
4708#define GL_IMAGE_3D 0x904E
4709#define GL_IMAGE_CUBE 0x9050
4710#define GL_IMAGE_2D_ARRAY 0x9053
4711#define GL_INT_IMAGE_2D 0x9058
4712#define GL_INT_IMAGE_3D 0x9059
4713#define GL_INT_IMAGE_CUBE 0x905B
4714#define GL_INT_IMAGE_2D_ARRAY 0x905E
4715#define GL_UNSIGNED_INT_IMAGE_2D 0x9063
4716#define GL_UNSIGNED_INT_IMAGE_3D 0x9064
4717#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
4718#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
4719#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
4720#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
4721#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
4722#define GL_READ_ONLY 0x88B8
4723#define GL_WRITE_ONLY 0x88B9
4724#define GL_READ_WRITE 0x88BA
4725#define GL_SHADER_STORAGE_BUFFER 0x90D2
4726#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
4727#define GL_SHADER_STORAGE_BUFFER_START 0x90D4
4728#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
4729#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
4730#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
4731#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
4732#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
4733#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
4734#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
4735#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
4736#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000
4737#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
4738#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
4739#define GL_STENCIL_INDEX 0x1901
4740#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
4741#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
4742#define GL_SAMPLE_POSITION 0x8E50
4743#define GL_SAMPLE_MASK 0x8E51
4744#define GL_SAMPLE_MASK_VALUE 0x8E52
4745#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
4746#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
4747#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
4748#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
4749#define GL_MAX_INTEGER_SAMPLES 0x9110
4750#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
4751#define GL_TEXTURE_SAMPLES 0x9106
4752#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
4753#define GL_TEXTURE_WIDTH 0x1000
4754#define GL_TEXTURE_HEIGHT 0x1001
4755#define GL_TEXTURE_DEPTH 0x8071
4756#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
4757#define GL_TEXTURE_RED_SIZE 0x805C
4758#define GL_TEXTURE_GREEN_SIZE 0x805D
4759#define GL_TEXTURE_BLUE_SIZE 0x805E
4760#define GL_TEXTURE_ALPHA_SIZE 0x805F
4761#define GL_TEXTURE_DEPTH_SIZE 0x884A
4762#define GL_TEXTURE_STENCIL_SIZE 0x88F1
4763#define GL_TEXTURE_SHARED_SIZE 0x8C3F
4764#define GL_TEXTURE_RED_TYPE 0x8C10
4765#define GL_TEXTURE_GREEN_TYPE 0x8C11
4766#define GL_TEXTURE_BLUE_TYPE 0x8C12
4767#define GL_TEXTURE_ALPHA_TYPE 0x8C13
4768#define GL_TEXTURE_DEPTH_TYPE 0x8C16
4769#define GL_TEXTURE_COMPRESSED 0x86A1
4770#define GL_SAMPLER_2D_MULTISAMPLE 0x9108
4771#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
4772#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
4773#define GL_VERTEX_ATTRIB_BINDING 0x82D4
4774#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
4775#define GL_VERTEX_BINDING_DIVISOR 0x82D6
4776#define GL_VERTEX_BINDING_OFFSET 0x82D7
4777#define GL_VERTEX_BINDING_STRIDE 0x82D8
4778#define GL_VERTEX_BINDING_BUFFER 0x8F4F
4779#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
4780#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
4781#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5
4782
4783#endif
4607 4784
4608/* 4785/*
4609 * EGL-related definitions 4786 * EGL-related definitions