Jump to content

  • Log In with Google      Sign In   
  • Create Account


experminental shader extensions


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 blubberbert   Members   -  Reputation: 236

Like
0Likes
Like

Posted 15 September 2011 - 11:00 AM

i wanna try the GL_EXT_shader_image_load_store extension, but my graphics card only supports
OpenGL 3.3 (Ati mobility 4650)

the extension is not in the extension string and glew doesnt load it normally but when i set glewExperimental to true, it says GL_EXT_shader_image_load_store is supported.
the functions also do have a valid entry point.

unfortunately that wasnt true for the shader since
#extension GL_EXT_shader_image_load_store : enable
didnt compile Posted Image

long story short, does anyone know how to enable experimental driver functionality for shaders?
------------------------------
Join the revolution and get a free donut!

Sponsor:

#2 FXACE   Members   -  Reputation: 182

Like
0Likes
Like

Posted 15 September 2011 - 11:23 AM

i wanna try the GL_EXT_shader_image_load_store extension, but my graphics card only supports
OpenGL 3.3 (Ati mobility 4650)

the extension is not in the extension string and glew doesnt load it normally but when i set glewExperimental to true, it says GL_EXT_shader_image_load_store is supported.
the functions also do have a valid entry point.

unfortunately that wasnt true for the shader since

#extension GL_EXT_shader_image_load_store : enable
didnt compile Posted Image

long story short, does anyone know how to enable experimental driver functionality for shaders?


You need to have OpenGL 4.2 or better if you want to use this extension. That's troubles me too because I have only version 3.2 and my video card doesn't catch in series which support this extension. :(







#3 blubberbert   Members   -  Reputation: 236

Like
0Likes
Like

Posted 15 September 2011 - 12:25 PM

You need to have OpenGL 4.2 or better if you want to use this extension.


are you sure? because why would AMD/ATI add the functions to the driver if it can never be supported? the ATI 4650 is a DX10/GL3.3 card so itll never have GL4.2 because its lacking the hardware

EDIT: you could be right tho...
GL_MAX_IMAGE_UNITS_EXT is 0 =((
------------------------------
Join the revolution and get a free donut!

#4 Martins Mozeiko   Crossbones+   -  Reputation: 1422

Like
0Likes
Like

Posted 15 September 2011 - 01:42 PM

It doesn't matter if driver exports some functions. Main thing to check is GL_EXTENSIONS string with glGetString (or glGetStringi if you are on >= GL3 core). If extension name is in that string, then your driver and video card supports this extension. If it is not there - then it won't work for your driver/card combination.

#5 Aks9   Members   -  Reputation: 794

Like
0Likes
Like

Posted 15 September 2011 - 01:43 PM

long story short, does anyone know how to enable experimental driver functionality for shaders?


The answer is quite simple: You have to buy a SM5.0 graphics card and install GL 4.2 drivers.


Radeon HD 4650 is based on RV730. That GPU is only SM4.0 compatible.



#6 blubberbert   Members   -  Reputation: 236

Like
0Likes
Like

Posted 15 September 2011 - 01:44 PM

i once used geometry shaders on 2.1 drivers through glewExperimental
------------------------------
Join the revolution and get a free donut!

#7 Aks9   Members   -  Reputation: 794

Like
0Likes
Like

Posted 15 September 2011 - 03:04 PM

You can use whatever your card supports. Since it was SM4.0 card you could use geometry shaders through extensions even if the version of OpenGL was 2.1.



#8 V-man   Members   -  Reputation: 805

Like
0Likes
Like

Posted 16 September 2011 - 10:11 AM

i once used geometry shaders on 2.1 drivers through glewExperimental


GLEW's job is to get function pointers. It doesn't do anything else.
glewExperimental is a hack to overcome it's forward compatible context issue

http://www.opengl.org/wiki/Extension_Loading_Library
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

#9 Aks9   Members   -  Reputation: 794

Like
0Likes
Like

Posted 17 September 2011 - 10:45 AM

Since it has not been announced elsewhere (at least I haven't seen), SM4.0 GPUs don't support the following extensions (part of GL 4.2):

- GL_ARB_map_buffer_alignment
- GL_ARB_shader_atomic_counters
- GL_ARB_shader_image_load_store


It is not such a bad result; 72% of GL 4.2 functionality is supported by old hardware. :)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS