osx - OpenGL 4 tessellation on OS/X -
apparently tessellation shaders able run under osx 10.8.3:
does have minimum example (c++, opengl , glsl) able compile , run?
also features supported / unsupported?
i aware of os/x not yet officially support tessellation shaders. i'm looking recipe hack used in gputest 0.4.0, apparently seem support on hardware.
ok been running code through opengl profiler, seems using tessellation shader, not using opengl defines.
as far can tell use
glcreateshader(0x00008e87); // tess eval
and
glcreateshader(0x00008e88); // tess control
i can confirm application use tessellation shaders have inspected shader source, i'm going try , integrate own codebase using hex values above , report back.
edit if use following should work (see blog , video here)
so there lot of basic hacking of code working, have used following defines , got basic passthrough shader system working.
first use following
#ifdef darwin #ifndef gl_tess_control_shader #define gl_tess_control_shader 0x00008e88 #endif #ifndef gl_tess_evaluation_shader #define gl_tess_evaluation_shader 0x00008e87 #endif #ifndef gl_patches #define gl_patches 0x0000000e #endif #endif you can load shaders use eval / control valid shader types. when drawing must use patches draw use gldrawarrays(gl_patches ...) normally.
i intent full demo / write soon, it's friday afternoon , i've been staring @ code day i'm going pub!

Comments
Post a Comment