{"id":7253,"date":"2022-12-13T11:29:00","date_gmt":"2022-12-13T19:29:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/directx\/?p=7253"},"modified":"2022-12-13T11:29:00","modified_gmt":"2022-12-13T19:29:00","slug":"directstorage-gdeflate-reference-implementation-now-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/directx\/directstorage-gdeflate-reference-implementation-now-available\/","title":{"rendered":"DirectStorage GDeflate Reference Implementation Now Available"},"content":{"rendered":"<p>The GDeflate reference implementation is now available from the <a href=\"https:\/\/github.com\/microsoft\/DirectStorage\">DirectStorage repo on GitHub<\/a>. Developers can use this to easily integrate GDeflate into their asset compression tool chains and build compatible compressors. The compression and decompression algorithms are open sourced under the Apache 2.0 license.<\/p>\n<h3><strong>How to Build:<\/strong><\/h3>\n<p>The GDeflate directory contains the codec source and sample code. The repo uses submodules, so be sure to pass\u00a0<code>--recurse --submodules<\/code> to the git clone command. If you already cloned this repo, then you can run <code>git submodule update --init<\/code>.<\/p>\n<p>Once cloned:<\/p>\n<ol>\n<li>Install\u00a0<a href=\"http:\/\/www.visualstudio.com\/downloads\">Visual Studio<\/a>\u00a02019 or higher.<\/li>\n<li>Launch a Developer Command Prompt<\/li>\n<li>Navigate into the GDeflate subdirectory<\/li>\n<li>Configure CMake using the command line, VSCode, or Visual Studio<\/li>\n<\/ol>\n<p>Note: This code can be built using Linux as long as you have CMake 3.19 and ninja-build installed.<\/p>\n<h5><strong>Command line<\/strong><\/h5>\n<p><code>cmake --preset Debug<\/code><\/p>\n<p><code>cmake --build --preset Debug<\/code><\/p>\n<h5><strong>VSCode<\/strong><\/h5>\n<p>Launch VSCode in the GDeflate directory root. CMake generation will happen automatically.<\/p>\n<h5><strong>Visual Studio<\/strong><\/h5>\n<p>Launch Visual Studio and choose &#8216;Open a local folder&#8217; and select the GDeflate directory root.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Details on DirectStorage and GDeflate:<\/strong><\/h3>\n<p>All instructions and description of the bitstream format are in the <a href=\"https:\/\/github.com\/microsoft\/DirectStorage\/blob\/main\/GDeflate\/README.md\">README.md<\/a> file \u2013 see here for more details on how to best leverage the compression tooling.<\/p>\n<p>For more details about DirectStorage and GDeflate, please check out our previous blog posts:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/directx\/directstorage-1-1-coming-soon\/\">DirectStorage 1.1 Coming Soon &#8211; DirectX Developer Blog (microsoft.com)<\/a><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/directx\/directstorage-1-1-now-available\/\">DirectStorage 1.1 Now Available &#8211; DirectX Developer Blog (microsoft.com)<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Need help?<\/h3>\n<p>Questions on development? Have a DirectStorage implementation you want feedback on? Reach out to\u00a0<a href=\"mailto:askwindstorage@microsoft.com\">askwindstorage@microsoft.com<\/a>.<\/p>\n<p>Looking for community engagement? Check out the\u00a0<a href=\"https:\/\/discord.gg\/HMjJbYxq\">DX12 Discord Server.<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The GDeflate reference implementation is now available from the DirectStorage repo on GitHub. Developers can use this to easily integrate GDeflate into their asset compression tool chains and build compatible compressors. The compression and decompression algorithms are open sourced under the Apache 2.0 license. How to Build: The GDeflate directory contains the codec source and [&hellip;]<\/p>\n","protected":false},"author":1747,"featured_media":12651,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7253","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-directx"],"acf":[],"blog_post_summary":"<p>The GDeflate reference implementation is now available from the DirectStorage repo on GitHub. Developers can use this to easily integrate GDeflate into their asset compression tool chains and build compatible compressors. The compression and decompression algorithms are open sourced under the Apache 2.0 license. How to Build: The GDeflate directory contains the codec source and [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/posts\/7253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/users\/1747"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/comments?post=7253"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/posts\/7253\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/media\/12651"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/media?parent=7253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/categories?post=7253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/directx\/wp-json\/wp\/v2\/tags?post=7253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}