{"id":6202,"date":"2014-08-13T10:00:59","date_gmt":"2014-08-13T14:00:59","guid":{"rendered":"http:\/\/blog.nccomputertech.com\/?p=6202"},"modified":"2014-08-13T10:00:59","modified_gmt":"2014-08-13T14:00:59","slug":"opengl-4-5-released-with-one-of-direct3ds-best-features","status":"publish","type":"post","link":"https:\/\/nccomputertech.com\/techtalk\/2014\/08\/13\/opengl-4-5-released-with-one-of-direct3ds-best-features\/","title":{"rendered":"OpenGL 4.5 released\u2014with one of Direct3D\u2019s best features"},"content":{"rendered":"<p>The Khronos Group today released OpenGL 4.5, the newest version of the industry standard 3D programming API. The new version contains a mix of features designed to make developers&#8217; lives easier and to improve performance and reliability of OpenGL applications.<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/arstechnica.com\/information-technology\/2014\/08\/opengl-4-5-released-with-one-of-direct3ds-best-features\/\"><img data-recalc-dims=\"1\" height=\"148\" width=\"300\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/nccomputertech.com\/techtalk\/wp-content\/uploads\/2014\/08\/opengl_500-300x148.png?resize=300%2C148\" alt=\"\" \/><\/a><\/p>\n<p>The group also issued a call for participation in its next generation OpenGL initiative. Amid growing interest in &#8220;low-level&#8221; APIs, such as AMD&#8217;s Mantle and Microsoft&#8217;s forthcoming Direct3D 12 specification, Khronos is working on its own vendor-neutral, cross-platform API to give developers greater low-level control and to extract more performance from 3D hardware.<\/p>\n<p>The big feature in OpenGL 4.5 is Direct State Access (DSA). OpenGL is a complex API that relies extensively on an implicit state that is maintained between function calls. For example, to specify properties of a texture, first a texture unit must be set as active. Then, the texture must be bound to the currently active texture unit. Then, the properties of the currently bound texture are specified. In each case, the link between the calls is implicit; the binding of the texture implicitly uses the active texture unit, and the property setting implicitly uses the bound texture.<\/p>\n<p>This style is awkward for developers, especially for developers who are writing or using third-party middleware libraries. If the middleware wants to change the texture property, it has to do the activation\/binding dance described\u2014but then it has to undo the binding and the activation, because the application using the middleware may already have set its own bindings and active texture units.<\/p>\n<p>Direct State Access allows developers to both set and query properties on objects (textures, shader programs, frame buffers, and so on) without having to make units active or bind objects to them; programs can operate directly on the objects themselves. This makes middleware much easier to develop, as it no longer needs to worry about disturbing the graphical state that the program has set up.<\/p>\n<p>DSA has been available as an extension for some years but, until OpenGL 4.5, was not a standard feature of the specification proper. Developers could not rely on DSA being present, which was a major sore point when compared to Microsoft&#8217;s Direct3D, which has supported DSA for many years.<\/p>\n<p>Aside from DSA, OpenGL 4.5 also gives greater control of how commands are sent to hardware for execution, which can improve multithreaded performance and additional robustness capabilities to help isolate the effects of resetting the GPU. This is aimed in particular at WebGL, where isolation of 3D programs is particularly important to safeguard system security and stability.<\/p>\n<p>SPIR 2.0<\/p>\n<p>Also released today is SPIR 2.0. SPIR is Khronos&#8217; intermediate language for general purpose GPU (GPGPU) computation. OpenCL was Khronos&#8217; first system for using GPUs in this way, but OpenCL requires developers to use a C-like language. Often, programmers want to use something they&#8217;re more familiar with, be it Python, C++, JavaScript, or any other language.<\/p>\n<p>SPIR is Khronos&#8217; solution. Compilers for these other languages should produce SPIR code, and the OpenCL runtime will execute that SPIR code on the target machine. While technically those compilers could produce OpenCL C directly, SPIR is easier because it&#8217;s designed to be used in this intermediate way.<\/p>\n<p>SPIR is based on the intermediate representation used by the LLVM compiler suite. SPIR 2.0 gives SPIR full compatibility with all the features of OpenCL 2.0 and is based on LLVM 3.4.<\/p>\n<p>The way forward<\/p>\n<p>AMD&#8217;s Mantle and Microsoft&#8217;s Direct3D 12 are both promising to let developers extract more performance from 3D hardware, principally by giving greater control over how data is transferred to and from the graphics hardware and ensuring that as much work can be done in parallel on the CPU side as possible. While OpenGL proponents such as NVIDIA have claimed that many of the advantages of these APIs can be realized in OpenGL\u2014as long as the right extensions are present\u2014Khronos has decided to produce a standard high-performance, low-level API.<\/p>\n<p>Khronos has embarked on radical new OpenGL specifications before. The original plan for OpenGL 3.0 was to make it an all-new API that removed the dependence on implicit state and was designed for multithreading. However, CAD vendors threw a fit, unwilling to update their applications to use a radically new API and unwilling to stick with OpenGL 2.x in perpetuity. Khronos abandoned the effort, and the OpenGL 3.0 that eventually shipped was a much more modest update to OpenGL 2.x.<\/p>\n<p>Khronos representatives told us that OpenGL 4.x will continue to be supported and updated and that CAD vendors are aware of the direction of the next generation API, so this time around, there shouldn&#8217;t be a CAD revolt to derail the group&#8217;s progress. If Mantle or Direct3D 12 catch on, OpenGL&#8217;s proponents can&#8217;t afford for it to be left behind, even if this upsets the CAD community.<\/p>\n<p>via <a href=\"http:\/\/arstechnica.com\/information-technology\/2014\/08\/opengl-4-5-released-with-one-of-direct3ds-best-features\/\" target=\"_blank\">OpenGL 4.5 released\u2014with one of Direct3D\u2019s best features | Ars Technica<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Khronos Group today released OpenGL 4.5, the newest version of the industry standard 3D programming API. The new version [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10],"tags":[280,773],"class_list":["post-6202","post","type-post","status-publish","format-standard","hentry","category-technology","tag-direct-3d","tag-opengl"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/papNkV-1C2","jetpack-related-posts":[{"id":3006,"url":"https:\/\/nccomputertech.com\/techtalk\/2013\/07\/24\/long-life-no-cooling-fans-intels-4-5w-core-processors-could-blur-the-pctablet-line\/","url_meta":{"origin":6202,"position":0},"title":"Long life, no cooling fans: Intel&#039;s 4.5W Core processors could blur the PC\/tablet line","author":"NCCT","date":"July 24, 2013","format":false,"excerpt":"Windows tablets hold within them an implicit promise: To deliver the full Windows 8 experience in a svelte tablet form factor. Unfortunately, the ambitions of Microsoft and its partners have thus far exceeded reality, largely due to processor power issues. Even the lowest of low-wattage Ultrabook chips simply sip too\u2026","rel":"","context":"In &quot;Hardware&quot;","block_context":{"text":"Hardware","link":"https:\/\/nccomputertech.com\/techtalk\/category\/hardware\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5643,"url":"https:\/\/nccomputertech.com\/techtalk\/2014\/05\/30\/microsoft-goes-public-with-browser-development-plans\/","url_meta":{"origin":6202,"position":1},"title":"Microsoft goes public with browser development plans","author":"NCCT","date":"May 30, 2014","format":false,"excerpt":"Aiming to provide more transparency in how it develops Internet Explorer, Microsoft has launched a website to help keep developers abreast of the latest changes and plans for the browser. This site aims to put IE on similar ground with Mozilla Firefox or Google Chrome, which are open-source projects, so\u2026","rel":"","context":"In &quot;Microsoft&quot;","block_context":{"text":"Microsoft","link":"https:\/\/nccomputertech.com\/techtalk\/category\/microsoft\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/core1.staticworld.net\/images\/article\/2013\/05\/internet_explorer-100037081-gallery.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/core1.staticworld.net\/images\/article\/2013\/05\/internet_explorer-100037081-gallery.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/core1.staticworld.net\/images\/article\/2013\/05\/internet_explorer-100037081-gallery.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":5780,"url":"https:\/\/nccomputertech.com\/techtalk\/2014\/06\/17\/preview-cutting-edge-internet-explorer-features-early-with-new-test-build-browser\/","url_meta":{"origin":6202,"position":2},"title":"Preview cutting-edge Internet Explorer features early with new test build browser","author":"NCCT","date":"June 17, 2014","format":false,"excerpt":"Developers can try out new features of the next version of Internet Explorer using a test edition Microsoft has released for their use. The Internet Explorer Developer Channel, which can be downloaded for Windows 8.1 and Windows 7 SP1, runs independently of the user\u2019s copy of IE, allowing programmers to\u2026","rel":"","context":"In &quot;Microsoft&quot;","block_context":{"text":"Microsoft","link":"https:\/\/nccomputertech.com\/techtalk\/category\/microsoft\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8004,"url":"https:\/\/nccomputertech.com\/techtalk\/2015\/04\/10\/latest-version-of-os-x-closes-backdoor-like-bug-that-gives-attackers-root\/","url_meta":{"origin":6202,"position":3},"title":"Latest version of OS X closes Backdoor-like bug that gives attackers root","author":"NCCT","date":"April 10, 2015","format":false,"excerpt":"For at least four years, a bug in Apple's OS X gave untrusted users\u2014and possibly remote hackers with only limited control of their target\u2014unfettered \"root\" privileges over Macs. The vulnerability is being called a \"hidden backdoor\" by Emil Kvarnhammar, the security researcher who discovered the bug and privately reported it\u2026","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/nccomputertech.com\/techtalk\/category\/apple\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nccomputertech.com\/techtalk\/wp-content\/uploads\/2015\/04\/backdoor-640x425.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/nccomputertech.com\/techtalk\/wp-content\/uploads\/2015\/04\/backdoor-640x425.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/nccomputertech.com\/techtalk\/wp-content\/uploads\/2015\/04\/backdoor-640x425.png?resize=525%2C300 1.5x"},"classes":[]},{"id":7931,"url":"https:\/\/nccomputertech.com\/techtalk\/2015\/03\/30\/this-week-in-computer-hardware-308-ocz-is-back-kind-of\/","url_meta":{"origin":6202,"position":4},"title":"This Week in Computer Hardware 308: OCZ Is Back. Kind of&#8230;","author":"NCCT","date":"March 30, 2015","format":false,"excerpt":"Hosts: Patrick Norton and Ryan Shrout Silverstone Fortress FT05 enclosure review, OCZ Vector 180 SSD full capacity roundup, 3DMark API overhead feature test - early DX12 performance, SEC filing reveals NVIDIA uses Samsung for some manufacturing, Intel\/Micron announce 3D NAND production with more than 10TB on a 2.5\" SSD, and\u2026","rel":"","context":"In &quot;Hardware&quot;","block_context":{"text":"Hardware","link":"https:\/\/nccomputertech.com\/techtalk\/category\/hardware\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6106,"url":"https:\/\/nccomputertech.com\/techtalk\/2014\/07\/30\/13-things-os-x-yosemite-beta-testers-need-to-know\/","url_meta":{"origin":6202,"position":5},"title":"13 things OS X Yosemite beta testers need to know","author":"NCCT","date":"July 30, 2014","format":false,"excerpt":"For the first time since the OS X beta test of 2000, Apple is allowing Mac users to test and provide feedback on a prerelease version of OS X. The first 1 million people to sign up for the beta program through Apple\u2019s Web page\u2014which crashed under heavy traffic on\u2026","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/nccomputertech.com\/techtalk\/category\/apple\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/posts\/6202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/comments?post=6202"}],"version-history":[{"count":0,"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/posts\/6202\/revisions"}],"wp:attachment":[{"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/media?parent=6202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/categories?post=6202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nccomputertech.com\/techtalk\/wp-json\/wp\/v2\/tags?post=6202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}