diff --git a/book/MovingToTheGPU.html b/book/MovingToTheGPU.html index a7cf9b8..01a06ce 100644 --- a/book/MovingToTheGPU.html +++ b/book/MovingToTheGPU.html @@ -1,3 +1,4 @@ + @@ -499,7 +500,7 @@ I like to keep things simple in my code examples and use the `?` operator. Instead of defining custom error types and conversions, I use a catch all `Error` type from a library called *anyhow*. -You'll often see the examples include `anyhow::Result` (an alias for `Result<, anyhow::Error>`) +You'll often see the examples include `anyhow::Result` (an alias for `Result<, anyhow::Error>`) and `anyhow::Context`. The latter is a useful trait for adding an error message while converting to an `anyhow::Error`: @@ -3896,5 +3897,5 @@ - + diff --git a/book/acknowledgments.md.html b/book/acknowledgments.md.html index b6640fa..2786835 100644 --- a/book/acknowledgments.md.html +++ b/book/acknowledgments.md.html @@ -1,4 +1,6 @@ + + Acknowledgments @@ -12,5 +14,5 @@ - + diff --git a/index.html b/index.html new file mode 100644 index 0000000..e6fc75c --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ + + + +**GPU Tracing** + +The book will guide you through the building blocks of a GPU-based renderer +using the same step-by-step approach in Ray Tracing In One Weekend. The goal is +not to build a fully-featured and highly optimized real-time renderer; rather, +it is to show you how to translate the concepts introduced in Ray Tracing In One +Weekend into a design that is practical to port to all modern GPU platforms +while paying attention to some of the common pitfalls of GPU programming. + +Draft +=============================================================================== +The current _draft_ of the book is available at [MovingToTheGPU](./book/MovingToTheGPU.html). + +[Acknowledgments](./book/acknowledgments.md.html) +=============================================================================== + + + + + + + + diff --git a/style/book.css b/style/book.css index defd16f..42c6da1 100644 --- a/style/book.css +++ b/style/book.css @@ -14,12 +14,13 @@ div.indented { margin-left: 5ex; } - /* ------------------------------------------------------------------------------------------------- ** Table of Contents ** -----------------------------------------------------------------------------------------------*/ -.md .longTOC, .md .mediumTOC, .md .shortTOC { +.md .longTOC, +.md .mediumTOC, +.md .shortTOC { font-family: sans-serif; } @@ -37,11 +38,12 @@ div.indented { border-bottom: solid 4px #777; } -.md .longTOC, .md .mediumTOC, .md .shortTOC { +.md .longTOC, +.md .mediumTOC, +.md .shortTOC { font-family: sans-serif; } - /* ------------------------------------------------------------------------------------------------- ** Titles & Headers ** -----------------------------------------------------------------------------------------------*/ @@ -66,14 +68,13 @@ div.indented { } .md h1::before { - content: counter(h1) ". "; + content: counter(h1) '. '; } .md h2::before { - content: counter(h1) "." counter(h2) ". "; + content: counter(h1) '.' counter(h2) '. '; } - /* ------------------------------------------------------------------------------------------------- ** Code ** -----------------------------------------------------------------------------------------------*/ @@ -95,17 +96,19 @@ div.indented { .md pre.listing.tilde code { /* Only code in fenced blocks. */ - letter-spacing: -0.20; + letter-spacing: -0.2; background: #e4e4e0; } /* Highlight.js Syntax Coloring */ .hljs-built_in { - color: #2356FF; + color: #2356ff; } -.hljs-params, .hljs-type, .hljs-literal { +.hljs-params, +.hljs-type, +.hljs-literal { color: #a62; } @@ -149,7 +152,7 @@ div.indented { .md code > .delete { text-decoration: line-through; - background-color: #; + background-color: #fdd; color: #a0a0a0; background: #e0cfcc; } @@ -169,14 +172,14 @@ div.indented { ** -----------------------------------------------------------------------------------------------*/ .md img { - margin-top: 1.0em; + margin-top: 1em; width: 72ex; - //image-rendering: crips-edges; + /* image-rendering: crips-edges; */ image-rendering: pixelated; } .md video { - margin-top: 1.0em; + margin-top: 1em; width: 72ex; } @@ -204,16 +207,13 @@ div.credit-list ul { column-count: 3; } - - /* ------------------------------------------------------------------------------------------------- ** Print Styling ** -----------------------------------------------------------------------------------------------*/ @media print { - @page { - margin: 1.5cm 2.5cm 1.0cm 2.5cm; + margin: 1.5cm 2.5cm 1cm 2.5cm; size: letter portrait; }