X

New OpenGL 4.0 aims to match DirectX 11

The cross-platform graphics interface adds support for tesselation and better general-purpose computation.

Stephen Shankland Former Principal Writer
Stephen Shankland worked at CNET from 1998 to 2024 and wrote about processors, digital photography, AI, quantum computing, computer science, materials science, supercomputers, drones, browsers, 3D printing, USB, and new computing technology in general. He has a soft spot in his heart for standards groups and I/O interfaces. His first big scoop was about radioactive cat poop.
Expertise Processors, semiconductors, web browsers, quantum computing, supercomputers, AI, 3D printing, drones, computer science, physics, programming, materials science, USB, UWB, Android, digital photography, science. Credentials
  • Shankland covered the tech industry for more than 25 years and was a science writer for five years before that. He has deep expertise in microprocessors, digital photography, computer hardware and software, internet standards, web technology, and more.
Stephen Shankland
2 min read

Aiming to keep pace with Microsoft and advance the computing frontier, the group behind OpenGL has announced a new version of its interface designed to make advanced graphics easier for programmers to handle.

OpenGL 4.0 adds more support for using a graphics processing unit (GPU) for other computing chores and for tesselation, which subdivides a region on a graphics object into many smaller patches for more detailed imagery. The technology got its start as a graphics library at pioneering Silicon Graphics but has grown into a standard that works on many different computer systems and overseen by the Khronos Group.

"OpenGL 4.0 exposes the same level of capability of GPUs as DirectX 11," the competing interface from Microsoft, Khronos said in a presentation. The company announced the new standard, along with the 3.3 update to the earlier version, at the Game Developers Conference on Thursday.

 
OpenGL 4.0 builds on earlier versions of the graphics standard.
OpenGL 4.0 builds on earlier versions of the graphics standard. Khronos Group

OpenGL 4.0 is compatible with a technology called OpenCL that's designed to let graphics chips handle many chores that otherwise would be the work of the main processor. Graphics chips aren't suited to all tasks, but they can help with some computationally intense work such as videogame physics. Graphics chips are steadily growing more powerful and widespread since modern operating systems, not just shoot-em-up videogames, now require 3D graphics abilities.

If you want to plunge into the details, here's how Khronos describes the new OpenGL 4.0 abilities:

  • two new shader stages that enable the GPU to offload geometry tessellation from the CPU;
  • per-sample fragment shaders and programmable fragment shader input positions for increased rendering quality and anti-aliasing flexibility;
  • drawing of data generated by OpenGL, or external APIs such as OpenCL, without CPU intervention;
  • shader subroutines for significantly increased programming flexibility;
  • separation of texture state and texture data through the addition of a new object type called sampler objects;
  • 64-bit double precision floating point shader operations and inputs/outputs for increased rendering accuracy and quality;
  • performance improvements, including instanced geometry shaders, instanced arrays, and a new timer query.

OpenGL also has variations called OpenGL ES for mobile devices including Apple's iPhone and WebGL for Web browser applications.