Skip to content

Commit

Permalink
Minor fix in README of Parallel Rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
egorodet committed Dec 27, 2024
1 parent d33a03c commit 7fc13fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Apps/07-ParallelRendering/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,6 @@ Vector of per-thread rendering command lists is acquired from the parallel rende
`frame.parallel_render_cmd_list.GetParallelCommandLists()` call. These command lists are used independently in
a parallel for loop for rendering some part of the cube instances in the `RenderCubesRange(...)` method.

`RenderCubesRange(...)` method is executed in parallel threads, each execution for a separate range of cube instances.
Per-cube program bindings are bound to render pipeline with a special `bindings_apply_behavior` bit mask.
This mask is used to apply constant bindings only once per command list and retain resources for the first binding instance,
which is done to reduce unnecessary operations during repeated resource bindings. After that cube instance is drawn
with a simple `DrawIndexed` draw-call.

```cpp
bool ParallelRenderingApp::Render()
{
Expand Down Expand Up @@ -409,6 +403,12 @@ bool ParallelRenderingApp::Render()
}
```

`RenderCubesRange(...)` method is executed in parallel threads, each execution for a separate range of cube instances.
Per-cube program bindings are bound to render pipeline with a special `bindings_apply_behavior` bit mask.
This mask is used to apply constant bindings only once per command list and retain resources for the first binding instance,
which is done to reduce unnecessary operations during repeated resource bindings. After that cube instance is drawn
with a simple `DrawIndexed` draw-call.

```cpp
void ParallelRenderingApp::RenderCubesRange(const rhi::RenderCommandList& render_cmd_list,
const std::vector<rhi::ProgramBindings>& program_bindings_per_instance,
Expand Down

0 comments on commit 7fc13fd

Please sign in to comment.