Skip to content

Commit

Permalink
add some detail.
Browse files Browse the repository at this point in the history
  • Loading branch information
themasch committed Apr 18, 2022
1 parent f6a8894 commit 9afa163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/app/headless_defaults.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! An application that runs with default plugins, but without an actual renderer
//! This can be very useful for integration tests or CI.

use bevy::{prelude::*, render::settings::WgpuSettings};

Expand Down
6 changes: 4 additions & 2 deletions examples/shader/compute_shader_game_of_life.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//! A compute shader simulating Conway's Game of Life
//! Compute shaders use the GPU for computing arbitrary information, that may be independent of what
//! is rendered to the screen.

use bevy::{
core_pipeline::node::MAIN_PASS_DEPENDENCIES,
Expand Down Expand Up @@ -183,14 +185,14 @@ impl render_graph::Node for GameOfLifeNode {
match self.state {
GameOfLifeState::Loading => {
if let CachedPipelineState::Ok(_) =
pipeline_cache.get_compute_pipeline_state(pipeline.init_pipeline)
pipeline_cache.get_compute_pipeline_state(pipeline.init_pipeline)
{
self.state = GameOfLifeState::Init
}
}
GameOfLifeState::Init => {
if let CachedPipelineState::Ok(_) =
pipeline_cache.get_compute_pipeline_state(pipeline.update_pipeline)
pipeline_cache.get_compute_pipeline_state(pipeline.update_pipeline)
{
self.state = GameOfLifeState::Update
}
Expand Down

0 comments on commit 9afa163

Please sign in to comment.