From ed722ab5d2437f80ed23cdab51dbb44484366911 Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Sat, 25 May 2024 14:54:33 +0530 Subject: [PATCH 01/10] fix: CSS errors for book.css and reformat --- style/book.css | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/style/book.css b/style/book.css index defd16f..122211e 100644 --- a/style/book.css +++ b/style/book.css @@ -19,7 +19,9 @@ div.indented { ** Table of Contents ** -----------------------------------------------------------------------------------------------*/ -.md .longTOC, .md .mediumTOC, .md .shortTOC { +.md .longTOC, +.md .mediumTOC, +.md .shortTOC { font-family: sans-serif; } @@ -37,7 +39,9 @@ div.indented { border-bottom: solid 4px #777; } -.md .longTOC, .md .mediumTOC, .md .shortTOC { +.md .longTOC, +.md .mediumTOC, +.md .shortTOC { font-family: sans-serif; } @@ -105,7 +109,9 @@ div.indented { color: #2356FF; } -.hljs-params, .hljs-type, .hljs-literal { +.hljs-params, +.hljs-type, +.hljs-literal { color: #a62; } @@ -143,13 +149,13 @@ div.indented { /* Code Line Types */ -.md code > .highlight { +.md code>.highlight { background-color: #ccdbc8; } -.md code > .delete { +.md code>.delete { text-decoration: line-through; - background-color: #; + background-color: #fdd; color: #a0a0a0; background: #e0cfcc; } @@ -171,7 +177,7 @@ div.indented { .md img { margin-top: 1.0em; width: 72ex; - //image-rendering: crips-edges; + /* image-rendering: crips-edges; */ image-rendering: pixelated; } @@ -255,4 +261,4 @@ div.credit-list ul { .md pre.listing.tilde code { font-size: 65%; } -} +} \ No newline at end of file From ddf28b37365aef2876eb1d7eba0c16b963c3dc5d Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Sat, 25 May 2024 14:56:18 +0530 Subject: [PATCH 02/10] chore: Fix unicode character --- book/MovingToTheGPU.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/MovingToTheGPU.html b/book/MovingToTheGPU.html index ac5a7f3..4353450 100644 --- a/book/MovingToTheGPU.html +++ b/book/MovingToTheGPU.html @@ -499,7 +499,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`: From 455f9e7b64102888fc358234a39a4a00b932d95b Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Sat, 25 May 2024 14:57:25 +0530 Subject: [PATCH 03/10] feat: Add GitHub Pages deployment workflow --- .github/workflows/deploy.yml | 40 ++++++++++++++++++++++++++++++++++++ .gitignore | 1 + index.html | 15 ++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 index.html diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..120c139 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +# Workflow to build the Book and deploy to Github Pages +name: Deploy Static site + +on: + push: + branches: [main] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + web: + name: Build and deploy site and docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Generate build + run: | + cp index.html build/index.html + cp -r book build/book + cp -r style build/style + cp -r images build/images + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: build/ + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index b7a8809..6fbd4c3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.swp Cargo.lock target/ +build/ diff --git a/index.html b/index.html new file mode 100644 index 0000000..bc41e51 --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + +**GPU Tracing** + +Draft +=============================================================================== +The current _draft_ of the book is available at [MovingToTheGPU](/book/MovingToTheGPU.html). + +[Acknowledgments](/book/acknowledgments.md.html) +=============================================================================== + + + + + + From b97f169896347124713d47db3a8258b0425a7914 Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Sat, 25 May 2024 15:02:39 +0530 Subject: [PATCH 04/10] chore: Update deployment workflow --- .github/workflows/deploy.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 120c139..a686a82 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,8 +3,8 @@ name: Deploy Static site on: push: - branches: [main] - + branches: + - dev workflow_dispatch: permissions: @@ -18,14 +18,15 @@ concurrency: jobs: web: - name: Build and deploy site and docs + name: Deploy site runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Generate build run: | - cp index.html build/index.html + mkdir build + cp index.html build/ cp -r book build/book cp -r style build/style cp -r images build/images From ff5440865f4e74d022aff5a208f6798561514362 Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Sat, 25 May 2024 15:18:36 +0530 Subject: [PATCH 05/10] fix: favicon --- .github/workflows/deploy.yml | 1 + book/MovingToTheGPU.html | 3 +-- book/acknowledgments.md.html | 2 +- favicon.ico | Bin 0 -> 4314 bytes index.html | 1 + 5 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 favicon.ico diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a686a82..f92d5d4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,6 +26,7 @@ jobs: - name: Generate build run: | mkdir build + cp favicon.ico build/ cp index.html build/ cp -r book build/book cp -r style build/style diff --git a/book/MovingToTheGPU.html b/book/MovingToTheGPU.html index 4353450..9d196e2 100644 --- a/book/MovingToTheGPU.html +++ b/book/MovingToTheGPU.html @@ -1,5 +1,5 @@ + - **A Friendly Guide to GPU Ray Tracing** @@ -3896,5 +3896,4 @@ - diff --git a/book/acknowledgments.md.html b/book/acknowledgments.md.html index d55e77a..a6757b0 100644 --- a/book/acknowledgments.md.html +++ b/book/acknowledgments.md.html @@ -1,3 +1,4 @@ + @@ -12,5 +13,4 @@ - diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..465b857a0313f0d8ffac080d895e8380dbb1ac39 GIT binary patch literal 4314 zcmd6r>04CS9f0Y7&`0s;!S!LTn1E+8s*7-nN1)?t~qzjK*EYx5+vp9;^*xpVG0zxQ{xx%a`x=Qr~E z)>}U6uTSxBeSCiBb&js(i3MguEbX!g^JbQ z?7@>qhsxoVJUXSloo40a% z$K#2syOm44T{135lkn8TYq{ui^BlMRsl;z!u(q6@yc;;;FJnEHNZWS?EC-UXgkQ#f z>N;Il?$U3pmAoD^ZfTZ$l}Egjb1d;43Xe~X%hm{Xh2-JIb6@vr4GdJ?#bLOBdG{f- zRiS8ecVYVT9!%4}rFHs2Of!z5%|3y)^gO1|u3(KSr1xgE%*$ikR`1xPlyOWtlvm|u zeLR8fiR7Y?dckdd!pPHVy0X$R?+v3Ra0{kc8)Uze_FXK))f4$`UTVNw}b9EdxZUR9Zr{DBptJ(amAVz&Y0E}TivqCDUqSnVkLg;to}Pt4IQ_q%&wmGf zi}ncn3b7n5XP`oIX!SZKJo>t~-Ustb#-3Hu zlbcNI_KjGU&!>IqLVA`3(igaj!R2ciUcL#}^3NGr@s+Sk_*VFyk>y9^-j56|KTUsN zJkEe*x|XJ6TbhTq_8zvF8iwm1K&xO@h*Pb%sdf^#R>NRLE^UWHXj;9DTp44w|32~- z9puL1Bivl_0|iT>DO_@fq9tbqgODs-lDZ5bOYY}M+XC_z-{HEyk^Ds!G=Fdp)3!>w zv+5XYuAB7f>!DSFR;@GISWHJ+G+OX7T2{|xyI%qCzBA60cgH-a>;DF~v~x>eHz9s) zm{#4!w7!hC$U26qYH_zr`1JLDQ2{L#xL=erSecDEG8ogQnY6E;#+{X4F~_%?x8H$x z-VoJiuJ17SR+ZAZp#byxQna0QbYH*ESd)xdoccOEF9TuxX)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%%*I4h50t=WyKPQIV(K9_QvJUVyKS{o{a$@L+r`$6uV65=t} zCec|Xb13n~%P&YgFA`gFoA61g&fcWY)21vDCP{!&1LLLgeNuj!zN#oX>%y_t@59`% zkJg6=ghN84ytbaeaX*&c>Ui-cFj|&?yHxs@83a{&;!frwpYO}r^VaKaCVa{{!FezW zC8~_aZ9L0ZX)G?uWvJq$yf2*+P75)TUmT;Q=Oov2(k@>5D5PJh7jI0JiwAWMmCLA5 z4ngnd?SBr66=(kgcS#(t@^fwUz9rIM#}m`*QDu#seU+bHC-?Qdz3o-$^~Q<+e?j`I V7&@M~%Hc)63ts **GPU Tracing** From adb0f76559e922b6f9e000015ce17236955eb6a7 Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Sat, 25 May 2024 15:59:56 +0530 Subject: [PATCH 06/10] chore: Update build process to use build.sh script --- .github/workflows/deploy.yml | 8 +------- build.sh | 9 +++++++++ index.html | 6 +++--- 3 files changed, 13 insertions(+), 10 deletions(-) create mode 100755 build.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f92d5d4..d532cef 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,13 +24,7 @@ jobs: - uses: actions/checkout@v4 - name: Generate build - run: | - mkdir build - cp favicon.ico build/ - cp index.html build/ - cp -r book build/book - cp -r style build/style - cp -r images build/images + run: ./build.sh - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d8bfa67 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/env bash + +[ -e build/ ] && rm -r build/ +mkdir build/ +cp -r style build/style +cp -r images build/images +cp -r book build/book +cp index.html build/ +cp favicon.ico build/ diff --git a/index.html b/index.html index 20d6e36..0fe5bbd 100644 --- a/index.html +++ b/index.html @@ -4,13 +4,13 @@ Draft =============================================================================== -The current _draft_ of the book is available at [MovingToTheGPU](/book/MovingToTheGPU.html). +The current _draft_ of the book is available at [MovingToTheGPU](./book/MovingToTheGPU.html). -[Acknowledgments](/book/acknowledgments.md.html) +[Acknowledgments](./book/acknowledgments.md.html) =============================================================================== - + From fb96e3e775fdc9813188bca44503390bde33d41a Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Sat, 25 May 2024 23:00:36 +0530 Subject: [PATCH 07/10] chore: Update favicon link in HTML files --- book/MovingToTheGPU.html | 1 + book/acknowledgments.md.html | 1 + build.sh | 2 +- favicon.ico | Bin 4314 -> 0 bytes index.html | 1 + 5 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 favicon.ico diff --git a/book/MovingToTheGPU.html b/book/MovingToTheGPU.html index 9d196e2..bc94eee 100644 --- a/book/MovingToTheGPU.html +++ b/book/MovingToTheGPU.html @@ -1,5 +1,6 @@ + **A Friendly Guide to GPU Ray Tracing** diff --git a/book/acknowledgments.md.html b/book/acknowledgments.md.html index a6757b0..05ae9f6 100644 --- a/book/acknowledgments.md.html +++ b/book/acknowledgments.md.html @@ -1,5 +1,6 @@ + Acknowledgments diff --git a/build.sh b/build.sh index d8bfa67..3620c2c 100755 --- a/build.sh +++ b/build.sh @@ -6,4 +6,4 @@ cp -r style build/style cp -r images build/images cp -r book build/book cp index.html build/ -cp favicon.ico build/ +cp favicon.png build/ diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index 465b857a0313f0d8ffac080d895e8380dbb1ac39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4314 zcmd6r>04CS9f0Y7&`0s;!S!LTn1E+8s*7-nN1)?t~qzjK*EYx5+vp9;^*xpVG0zxQ{xx%a`x=Qr~E z)>}U6uTSxBeSCiBb&js(i3MguEbX!g^JbQ z?7@>qhsxoVJUXSloo40a% z$K#2syOm44T{135lkn8TYq{ui^BlMRsl;z!u(q6@yc;;;FJnEHNZWS?EC-UXgkQ#f z>N;Il?$U3pmAoD^ZfTZ$l}Egjb1d;43Xe~X%hm{Xh2-JIb6@vr4GdJ?#bLOBdG{f- z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ix: remove SSG and deploy pages through branch --- .github/workflows/deploy.yml | 36 ------------------------------------ build.sh | 9 --------- index.html | 7 +++++++ 3 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 .github/workflows/deploy.yml delete mode 100755 build.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index d532cef..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,36 +0,0 @@ -# Workflow to build the Book and deploy to Github Pages -name: Deploy Static site - -on: - push: - branches: - - dev - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - web: - name: Deploy site - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Generate build - run: ./build.sh - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: build/ - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/build.sh b/build.sh deleted file mode 100755 index 3620c2c..0000000 --- a/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/env bash - -[ -e build/ ] && rm -r build/ -mkdir build/ -cp -r style build/style -cp -r images build/images -cp -r book build/book -cp index.html build/ -cp favicon.png build/ diff --git a/index.html b/index.html index 06aa2ac..d5c71ee 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,13 @@ **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). From 680af0c7bf700df978c169d36f05fc06a95dbd6c Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Mon, 27 May 2024 22:38:43 +0530 Subject: [PATCH 09/10] reformat using prettier and update gitignore --- .gitignore | 1 - style/book.css | 26 ++++++++++---------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 6fbd4c3..b7a8809 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ *.swp Cargo.lock target/ -build/ diff --git a/style/book.css b/style/book.css index 122211e..42c6da1 100644 --- a/style/book.css +++ b/style/book.css @@ -14,7 +14,6 @@ div.indented { margin-left: 5ex; } - /* ------------------------------------------------------------------------------------------------- ** Table of Contents ** -----------------------------------------------------------------------------------------------*/ @@ -45,7 +44,6 @@ div.indented { font-family: sans-serif; } - /* ------------------------------------------------------------------------------------------------- ** Titles & Headers ** -----------------------------------------------------------------------------------------------*/ @@ -70,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 ** -----------------------------------------------------------------------------------------------*/ @@ -99,14 +96,14 @@ 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, @@ -149,11 +146,11 @@ div.indented { /* Code Line Types */ -.md code>.highlight { +.md code > .highlight { background-color: #ccdbc8; } -.md code>.delete { +.md code > .delete { text-decoration: line-through; background-color: #fdd; color: #a0a0a0; @@ -175,14 +172,14 @@ div.indented { ** -----------------------------------------------------------------------------------------------*/ .md img { - margin-top: 1.0em; + margin-top: 1em; width: 72ex; /* image-rendering: crips-edges; */ image-rendering: pixelated; } .md video { - margin-top: 1.0em; + margin-top: 1em; width: 72ex; } @@ -210,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; } @@ -261,4 +255,4 @@ div.credit-list ul { .md pre.listing.tilde code { font-size: 65%; } -} \ No newline at end of file +} From 5298bbacf1773b2ba8b771be1393433fd89ab966 Mon Sep 17 00:00:00 2001 From: korigamik-hypr Date: Tue, 28 May 2024 02:12:00 +0530 Subject: [PATCH 10/10] Add upstream markdeep script tags --- book/MovingToTheGPU.html | 1 + book/acknowledgments.md.html | 1 + index.html | 2 ++ 3 files changed, 4 insertions(+) diff --git a/book/MovingToTheGPU.html b/book/MovingToTheGPU.html index 66e7629..01a06ce 100644 --- a/book/MovingToTheGPU.html +++ b/book/MovingToTheGPU.html @@ -3897,4 +3897,5 @@ + diff --git a/book/acknowledgments.md.html b/book/acknowledgments.md.html index a103e5b..2786835 100644 --- a/book/acknowledgments.md.html +++ b/book/acknowledgments.md.html @@ -14,4 +14,5 @@ + diff --git a/index.html b/index.html index d5c71ee..e6fc75c 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,8 @@ + +