Skip to content

Commit

Permalink
Add link to step100-dawn
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Oct 25, 2024
1 parent d2bcad2 commit 60b2e4f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion basic-3d-rendering/shader-uniforms/a-first-uniform.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Retaining `bindGroupLayout` is also needed when we create the bind group that go

### Binding layout

The `BindGroupLayoutEntry` could have been called `BindingLayout` imho. The first setting is the binding index, as used in the shader's `@binding` attribute. Then the `visibility` field tells which stage requires access to this resource, so that it is not needlessly provided to all stages.
The `BindGroupLayoutEntry` could have been called `BindingLayout`. The first setting is the binding index, as used in the shader's `@binding` attribute. Then the `visibility` field tells which stage requires access to this resource, so that it is not needlessly provided to all stages.

````{tab} With webgpu.hpp
```{lit} C++, Define bindingLayout
Expand Down
4 changes: 4 additions & 0 deletions basic-3d-rendering/shader-uniforms/dynamic-uniforms.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Dynamic uniforms <span class="bullet">🟡</span>
================

```{admonition} 🚧 WIP
From this chapter on, the guide uses a previous version of the accompanying code (in particular, it does not define an `Application` class but rather puts everything in a monolithic `main` function). **I am currently refreshing it** chapter by chapter and this is **where I am currently working**!
```

````{tab} With webgpu.hpp
*Resulting code:* [`step044`](https://github.com/eliemichel/LearnWebGPU-Code/tree/step044)
````
Expand Down
11 changes: 9 additions & 2 deletions basic-3d-rendering/shader-uniforms/multiple-uniforms.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
More uniforms <span class="bullet">🟡</span>
=============

```{admonition} 🚧 WIP
From this chapter on, the guide uses a previous version of the accompanying code (in particular, it does not define an `Application` class but rather puts everything in a monolithic `main` function). **I am currently refreshing it** chapter by chapter and this is **where I am currently working**!
```{lit-setup}
:tangle-root: 043 - More uniforms - vanilla
:parent: 039 - A first uniform - vanilla
:alias: Vanilla
```

```{lit-setup}
:tangle-root: 043 - More uniforms
:parent: 039 - A first uniform
```

````{tab} With webgpu.hpp
Expand Down
6 changes: 5 additions & 1 deletion basic-3d-rendering/some-interaction/lighting-control.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Lighting control <span class="bullet">🟡</span>
Lighting control <span class="bullet">🟡🟢</span>
================

````{tab} With webgpu.hpp
Expand All @@ -9,6 +9,10 @@ Lighting control <span class="bullet">🟡</span>
*Resulting code:* [`step100-vanilla`](https://github.com/eliemichel/LearnWebGPU-Code/tree/step100-vanilla)
````

```{important}
**October 25, 2024:** This chapter is marked with a secondary **green bullet 🟢** only to draw attention because there is a preview of the accompanying code available for a recent version of Dawn: [`step100-dawn`](https://github.com/eliemichel/LearnWebGPU-Code/tree/step100-dawn). The content of this chapter still relies on older versions.
```

Now that we have elements of GUI, we can use them to expose for instance the **lighting settings** to the user. We want them to be able to **live tweak** the direction and color of our light sources.

Recap on basic shading
Expand Down

0 comments on commit 60b2e4f

Please sign in to comment.