{"id":1929,"date":"2018-05-29T15:11:08","date_gmt":"2018-05-29T21:11:08","guid":{"rendered":"https:\/\/www.lunarg.com\/?post_type=white_paper&#038;p=1929"},"modified":"2021-02-24T10:17:40","modified_gmt":"2021-02-24T17:17:40","slug":"spir-v-legalization-and-size-reduction-with-spirv-opt","status":"publish","type":"white_paper","link":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/","title":{"rendered":"SPIR-V Legalization and Size Reduction with spirv-opt"},"content":{"rendered":"<p>LunarG has updated its white paper that describes using spirv-opt to reduce SPIR-V size. This revision includes many changes made since the last update in December 2017.<\/p>\n<p>New\u00a0discussion includes 1) using spirv-opt to \u201clegalize\u201d SPIR-V when generated from HLSL, 2) SPIR-V integration with the glslang and dxc frontends, 3) description of new size reduction passes available in spirv-opt,\u00a0and 4) updates to the recommended recipe for those who wish to customize their optimization.<\/p>\n<h2 class=\"fusion-responsive-typography-calculated\" data-fontsize=\"20\" data-lineheight=\"27px\"><strong>More information<\/strong><\/h2>\n<p>See the updated white paper,\u00a0<a href=\"https:\/\/www.lunarg.com\/wp-content\/uploads\/2020\/05\/SPIR-V-Shader-Legalization-and-Size-Reduction-Using-spirv-opt_v1.2.pdf\"><strong>SPIR-V Shader Legalization and Size Reduction Using spirv-opt_v1.2<\/strong>,<\/a>\u00a0for the details.<\/p>\n<p>For more information about LunarG, visit our\u00a0<strong><a href=\"https:\/\/www.lunarg.com\/\">website<\/a><\/strong>.<\/p>\n","protected":false},"author":14,"featured_media":1959,"template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_links_to":"","_links_to_target":""},"white_paper_topic":[66],"class_list":["post-1929","white_paper","type-white_paper","status-publish","has-post-thumbnail","hentry","white_paper_topic-shader-compiler"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SPIR-V Legalization and Size Reduction with spirv-opt - LunarG<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SPIR-V Legalization and Size Reduction with spirv-opt - LunarG\" \/>\n<meta property=\"og:description\" content=\"LunarG has updated its white paper that describes using spirv-opt to reduce SPIR-V size. This revision includes many changes made since the last update in December 2017. New\u00a0discussion includes 1) using spirv-opt to \u201clegalize\u201d SPIR-V when generated from HLSL, 2) SPIR-V integration with the glslang and dxc frontends, 3) description of new size reduction passes [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/\" \/>\n<meta property=\"og:site_name\" content=\"LunarG\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-24T17:17:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"755\" \/>\n\t<meta property=\"og:image:height\" content=\"395\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/\",\"url\":\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/\",\"name\":\"SPIR-V Legalization and Size Reduction with spirv-opt - LunarG\",\"isPartOf\":{\"@id\":\"https:\/\/www.lunarg.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg\",\"datePublished\":\"2018-05-29T21:11:08+00:00\",\"dateModified\":\"2021-02-24T17:17:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#primaryimage\",\"url\":\"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg\",\"contentUrl\":\"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg\",\"width\":755,\"height\":395,\"caption\":\"Creative concept of shape fluid mixed blue, red and green paints\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.lunarg.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SPIR-V Legalization and Size Reduction with spirv-opt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lunarg.com\/#website\",\"url\":\"https:\/\/www.lunarg.com\/\",\"name\":\"LunarG\",\"description\":\"3D Graphics Software Solutions\",\"publisher\":{\"@id\":\"https:\/\/www.lunarg.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lunarg.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.lunarg.com\/#organization\",\"name\":\"LunarG\",\"url\":\"https:\/\/www.lunarg.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.lunarg.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.lunarg.com\/wp-content\/uploads\/2020\/05\/logo.png\",\"contentUrl\":\"https:\/\/www.lunarg.com\/wp-content\/uploads\/2020\/05\/logo.png\",\"width\":767,\"height\":304,\"caption\":\"LunarG\"},\"image\":{\"@id\":\"https:\/\/www.lunarg.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SPIR-V Legalization and Size Reduction with spirv-opt - LunarG","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"SPIR-V Legalization and Size Reduction with spirv-opt - LunarG","og_description":"LunarG has updated its white paper that describes using spirv-opt to reduce SPIR-V size. This revision includes many changes made since the last update in December 2017. New\u00a0discussion includes 1) using spirv-opt to \u201clegalize\u201d SPIR-V when generated from HLSL, 2) SPIR-V integration with the glslang and dxc frontends, 3) description of new size reduction passes [&hellip;]","og_url":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/","og_site_name":"LunarG","article_modified_time":"2021-02-24T17:17:40+00:00","og_image":[{"width":755,"height":395,"url":"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/","url":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/","name":"SPIR-V Legalization and Size Reduction with spirv-opt - LunarG","isPartOf":{"@id":"https:\/\/www.lunarg.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#primaryimage"},"image":{"@id":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg","datePublished":"2018-05-29T21:11:08+00:00","dateModified":"2021-02-24T17:17:40+00:00","breadcrumb":{"@id":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#primaryimage","url":"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg","contentUrl":"https:\/\/www.lunarg.com\/wp-content\/uploads\/2019\/09\/iStock-1155410378-2.jpg","width":755,"height":395,"caption":"Creative concept of shape fluid mixed blue, red and green paints"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lunarg.com\/news-insights\/white-papers\/spir-v-legalization-and-size-reduction-with-spirv-opt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lunarg.com\/"},{"@type":"ListItem","position":2,"name":"SPIR-V Legalization and Size Reduction with spirv-opt"}]},{"@type":"WebSite","@id":"https:\/\/www.lunarg.com\/#website","url":"https:\/\/www.lunarg.com\/","name":"LunarG","description":"3D Graphics Software Solutions","publisher":{"@id":"https:\/\/www.lunarg.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lunarg.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.lunarg.com\/#organization","name":"LunarG","url":"https:\/\/www.lunarg.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lunarg.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.lunarg.com\/wp-content\/uploads\/2020\/05\/logo.png","contentUrl":"https:\/\/www.lunarg.com\/wp-content\/uploads\/2020\/05\/logo.png","width":767,"height":304,"caption":"LunarG"},"image":{"@id":"https:\/\/www.lunarg.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.lunarg.com\/wp-json\/wp\/v2\/white_paper\/1929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lunarg.com\/wp-json\/wp\/v2\/white_paper"}],"about":[{"href":"https:\/\/www.lunarg.com\/wp-json\/wp\/v2\/types\/white_paper"}],"author":[{"embeddable":true,"href":"https:\/\/www.lunarg.com\/wp-json\/wp\/v2\/users\/14"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lunarg.com\/wp-json\/wp\/v2\/media\/1959"}],"wp:attachment":[{"href":"https:\/\/www.lunarg.com\/wp-json\/wp\/v2\/media?parent=1929"}],"wp:term":[{"taxonomy":"white_paper_topic","embeddable":true,"href":"https:\/\/www.lunarg.com\/wp-json\/wp\/v2\/white_paper_topic?post=1929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}