I am simply trying to render one layer of a 2D array texture. Obviously I would sample the texture using a sampler2DArray and the function texture2DArray. However compiling the shader produces the errors:
.Code :0(33) : error C7531: global function texture2DArray requires "#extension GL_EXT_texture_array : enable" before use 0(33) : error C0000: ... or #extension GL_NV_texture_array : enable
I went to check the OpenGL version that I have access to in my program by requesting the string GL_VERSION and it returns: 4.3.0
I have also tried compiling the shader with all the #versions that are available to me, yet it always requires me to enable the extension.
My Question is: Should I not be able to use the function texture2DArray from the core functionality, or is there a reason why the extension is still required up to #versions of 430?