11<!DOCTYPE HTML>
2- < html lang ="en " class ="light " dir ="ltr ">
2+ < html lang ="en " class ="light sidebar-visible " dir ="ltr ">
33 < head >
44 <!-- Book generated using mdBook -->
55 < meta charset ="UTF-8 ">
88
99
1010 <!-- Custom HTML head -->
11-
11+
1212 < meta name ="description " content ="">
1313 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
1414 < meta name ="theme-color " content ="#ffffff ">
2525 < link rel ="stylesheet " href ="fonts/fonts.css ">
2626
2727 <!-- Highlight.js Stylesheets -->
28- < link rel ="stylesheet " href ="highlight.css ">
29- < link rel ="stylesheet " href ="tomorrow-night.css ">
30- < link rel ="stylesheet " href ="ayu-highlight.css ">
28+ < link rel ="stylesheet " id =" highlight-css " href ="highlight.css ">
29+ < link rel ="stylesheet " id =" tomorrow-night-css " href ="tomorrow-night.css ">
30+ < link rel ="stylesheet " id =" ayu-highlight-css " href ="ayu-highlight.css ">
3131
3232 <!-- Custom theme stylesheets -->
3333
34- </ head >
35- < body class ="sidebar-visible no-js ">
36- < div id ="body-container ">
37- <!-- Provide site root to javascript -->
34+
35+ <!-- Provide site root and default themes to javascript -->
3836 < script >
39- var path_to_root = "" ;
40- var default_theme = window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ? "navy" : "light" ;
37+ const path_to_root = "" ;
38+ const default_light_theme = "light" ;
39+ const default_dark_theme = "navy" ;
40+ window . path_to_searchindex_js = "searchindex.js" ;
4141 </ script >
42-
42+ <!-- Start loading toc.js asap -->
43+ < script src ="toc.js "> </ script >
44+ </ head >
45+ < body >
46+ < div id ="mdbook-help-container ">
47+ < div id ="mdbook-help-popup ">
48+ < h2 class ="mdbook-help-title "> Keyboard shortcuts</ h2 >
49+ < div >
50+ < p > Press < kbd > ←</ kbd > or < kbd > →</ kbd > to navigate between chapters</ p >
51+ < p > Press < kbd > S</ kbd > or < kbd > /</ kbd > to search in the book</ p >
52+ < p > Press < kbd > ?</ kbd > to show this help</ p >
53+ < p > Press < kbd > Esc</ kbd > to hide this help</ p >
54+ </ div >
55+ </ div >
56+ </ div >
57+ < div id ="body-container ">
4358 <!-- Work around some values being stored in localStorage wrapped in quotes -->
4459 < script >
4560 try {
46- var theme = localStorage . getItem ( 'mdbook-theme' ) ;
47- var sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ;
61+ let theme = localStorage . getItem ( 'mdbook-theme' ) ;
62+ let sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ;
4863
4964 if ( theme . startsWith ( '"' ) && theme . endsWith ( '"' ) ) {
5065 localStorage . setItem ( 'mdbook-theme' , theme . slice ( 1 , theme . length - 1 ) ) ;
5873
5974 <!-- Set the theme before any content is loaded, prevents flash -->
6075 < script >
61- var theme ;
76+ const default_theme = window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ? default_dark_theme : default_light_theme ;
77+ let theme ;
6278 try { theme = localStorage . getItem ( 'mdbook-theme' ) ; } catch ( e ) { }
6379 if ( theme === null || theme === undefined ) { theme = default_theme ; }
64- var html = document . querySelector ( 'html' ) ;
80+ const html = document . documentElement ;
6581 html . classList . remove ( 'light' )
6682 html . classList . add ( theme ) ;
67- var body = document . querySelector ( 'body' ) ;
68- body . classList . remove ( 'no-js' )
69- body . classList . add ( 'js' ) ;
83+ html . classList . add ( "js" ) ;
7084 </ script >
7185
7286 < input type ="checkbox " id ="sidebar-toggle-anchor " class ="hidden ">
7387
7488 <!-- Hide / unhide sidebar before it is displayed -->
7589 < script >
76- var body = document . querySelector ( 'body' ) ;
77- var sidebar = null ;
78- var sidebar_toggle = document . getElementById ( "sidebar-toggle-anchor" ) ;
90+ let sidebar = null ;
91+ const sidebar_toggle = document . getElementById ( "sidebar-toggle-anchor" ) ;
7992 if ( document . body . clientWidth >= 1080 ) {
8093 try { sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ; } catch ( e ) { }
8194 sidebar = sidebar || 'visible' ;
8295 } else {
8396 sidebar = 'hidden' ;
97+ sidebar_toggle . checked = false ;
98+ }
99+ if ( sidebar === 'visible' ) {
100+ sidebar_toggle . checked = true ;
101+ } else {
102+ html . classList . remove ( 'sidebar-visible' ) ;
84103 }
85- sidebar_toggle . checked = sidebar === 'visible' ;
86- body . classList . remove ( 'sidebar-visible' ) ;
87- body . classList . add ( "sidebar-" + sidebar ) ;
88104 </ script >
89105
90106 < nav id ="sidebar " class ="sidebar " aria-label ="Table of contents ">
91- < div class ="sidebar-scrollbox ">
92- < ol class ="chapter "> < li class ="chapter-item expanded "> < a href ="introduction.html "> < strong aria-hidden ="true "> 1.</ strong > Introduction</ a > </ li > < li class ="chapter-item expanded "> < div > < strong aria-hidden ="true "> 2.</ strong > Contributing to Rust-GPU</ div > </ li > < li > < ol class ="section "> < li class ="chapter-item expanded "> < a href ="building-rust-gpu.html "> < strong aria-hidden ="true "> 2.1.</ strong > Building</ a > </ li > < li class ="chapter-item expanded "> < a href ="testing.html "> < strong aria-hidden ="true "> 2.2.</ strong > Testing</ a > </ li > < li class ="chapter-item expanded "> < a href ="codegen-args.html "> < strong aria-hidden ="true "> 2.3.</ strong > "Codegen args" (flags/options) supported by the Rust-GPU codegen backend</ a > </ li > < li class ="chapter-item expanded "> < a href ="spirv-minimization.html "> < strong aria-hidden ="true "> 2.4.</ strong > Minimizing bugs in SPIR-V</ a > </ li > < li class ="chapter-item expanded "> < a href ="publishing-rust-gpu.html "> < strong aria-hidden ="true "> 2.5.</ strong > Publishing Rust-GPU on crates.io</ a > </ li > </ ol > </ li > < li class ="chapter-item expanded "> < a href ="platform-support.html "> < strong aria-hidden ="true "> 3.</ strong > Platform Support</ a > </ li > < li class ="chapter-item expanded "> < a href ="writing-shader-crates.html "> < strong aria-hidden ="true "> 4.</ strong > Writing Shader Crates</ a > </ li > < li class ="chapter-item expanded "> < div > < strong aria-hidden ="true "> 5.</ strong > Features</ div > </ li > < li > < ol class ="section "> < li class ="chapter-item expanded "> < a href ="attributes.html "> < strong aria-hidden ="true "> 5.1.</ strong > Attribute syntax</ a > </ li > < li class ="chapter-item expanded "> < a href ="inline-asm.html "> < strong aria-hidden ="true "> 5.2.</ strong > Inline Assembly</ a > </ li > < li class ="chapter-item expanded "> < a href ="image.html "> < strong aria-hidden ="true "> 5.3.</ strong > Image type syntax</ a > </ li > </ ol > </ li > </ ol >
93- </ div >
107+ <!-- populated by js -->
108+ < mdbook-sidebar-scrollbox class ="sidebar-scrollbox "> </ mdbook-sidebar-scrollbox >
109+ < noscript >
110+ < iframe class ="sidebar-iframe-outer " src ="toc.html "> </ iframe >
111+ </ noscript >
94112 < div id ="sidebar-resize-handle " class ="sidebar-resize-handle ">
95113 < div class ="sidebar-resize-indicator "> </ div >
96114 </ div >
97115 </ nav >
98116
99- <!-- Track and set sidebar scroll position -->
100- < script >
101- var sidebarScrollbox = document . querySelector ( '#sidebar .sidebar-scrollbox' ) ;
102- sidebarScrollbox . addEventListener ( 'click' , function ( e ) {
103- if ( e . target . tagName === 'A' ) {
104- sessionStorage . setItem ( 'sidebar-scroll' , sidebarScrollbox . scrollTop ) ;
105- }
106- } , { passive : true } ) ;
107- var sidebarScrollTop = sessionStorage . getItem ( 'sidebar-scroll' ) ;
108- sessionStorage . removeItem ( 'sidebar-scroll' ) ;
109- if ( sidebarScrollTop ) {
110- // preserve sidebar scroll position when navigating via links within sidebar
111- sidebarScrollbox . scrollTop = sidebarScrollTop ;
112- } else {
113- // scroll sidebar to current active section when navigating via "next/previous chapter" buttons
114- var activeSection = document . querySelector ( '#sidebar .active' ) ;
115- if ( activeSection ) {
116- activeSection . scrollIntoView ( { block : 'center' } ) ;
117- }
118- }
119- </ script >
120-
121117 < div id ="page-wrapper " class ="page-wrapper ">
122118
123119 < div class ="page ">
124- < div id ="menu-bar-hover-placeholder "> </ div >
120+ < div id ="menu-bar-hover-placeholder "> </ div >
125121 < div id ="menu-bar " class ="menu-bar sticky ">
126122 < div class ="left-buttons ">
127123 < label id ="sidebar-toggle " class ="icon-button " for ="sidebar-toggle-anchor " title ="Toggle Table of Contents " aria-label ="Toggle Table of Contents " aria-controls ="sidebar ">
131127 < i class ="fa fa-paint-brush "> </ i >
132128 </ button >
133129 < ul id ="theme-list " class ="theme-popup " aria-label ="Themes " role ="menu ">
130+ < li role ="none "> < button role ="menuitem " class ="theme " id ="default_theme "> Auto</ button > </ li >
134131 < li role ="none "> < button role ="menuitem " class ="theme " id ="light "> Light</ button > </ li >
135132 < li role ="none "> < button role ="menuitem " class ="theme " id ="rust "> Rust</ button > </ li >
136133 < li role ="none "> < button role ="menuitem " class ="theme " id ="coal "> Coal</ button > </ li >
137134 < li role ="none "> < button role ="menuitem " class ="theme " id ="navy "> Navy</ button > </ li >
138135 < li role ="none "> < button role ="menuitem " class ="theme " id ="ayu "> Ayu</ button > </ li >
139136 </ ul >
140- < button id ="search-toggle " class ="icon-button " type ="button " title ="Search. (Shortkey: s ) " aria-label ="Toggle Searchbar " aria-expanded ="false " aria-keyshortcuts ="S " aria-controls ="searchbar ">
137+ < button id ="search-toggle " class ="icon-button " type ="button " title ="Search (`/` ) " aria-label ="Toggle Searchbar " aria-expanded ="false " aria-keyshortcuts ="/ s " aria-controls ="searchbar ">
141138 < i class ="fa fa-search "> </ i >
142139 </ button >
143140 </ div >
@@ -154,7 +151,12 @@ <h1 class="menu-title">Rust GPU Dev Guide</h1>
154151
155152 < div id ="search-wrapper " class ="hidden ">
156153 < form id ="searchbar-outer " class ="searchbar-outer ">
157- < input type ="search " id ="searchbar " name ="searchbar " placeholder ="Search this book ... " aria-controls ="searchresults-outer " aria-describedby ="searchresults-header ">
154+ < div class ="search-wrapper ">
155+ < input type ="search " id ="searchbar " name ="searchbar " placeholder ="Search this book ... " aria-controls ="searchresults-outer " aria-describedby ="searchresults-header ">
156+ < div class ="spinner-wrapper ">
157+ < i class ="fa fa-spinner fa-spin "> </ i >
158+ </ div >
159+ </ div >
158160 </ form >
159161 < div id ="searchresults-outer " class ="searchresults-outer hidden ">
160162 < div id ="searchresults-header " class ="searchresults-header "> </ div >
@@ -213,6 +215,7 @@ <h1 id="document-not-found-404"><a class="header" href="#document-not-found-404"
213215 <!-- Custom JS scripts -->
214216
215217
218+
216219 </ div >
217220 </ body >
218221</ html >
0 commit comments