Merge pull request 'Apply vulkan-rs changes' (#9) from dev into master
Reviewed-on: #9
This commit is contained in:
commit
73d99df3ab
2 changed files with 9 additions and 1 deletions
|
@ -60,7 +60,7 @@ impl BackgroundGenerator {
|
||||||
clear_value: ClearValue::Color([0.0, 0.0, 0.0, 0.0]),
|
clear_value: ClearValue::Color([0.0, 0.0, 0.0, 0.0]),
|
||||||
})
|
})
|
||||||
.set_sample_count(max_supported_sample_count)
|
.set_sample_count(max_supported_sample_count)
|
||||||
.add_resolve_targets(vec![image.clone()])
|
.add_resolve_targets((vec![image.clone()], true))
|
||||||
.use_queue(queue.clone())
|
.use_queue(queue.clone())
|
||||||
.build(&device)?,
|
.build(&device)?,
|
||||||
)
|
)
|
||||||
|
|
|
@ -396,6 +396,14 @@ impl UiOverlay for LeaderBoard {}
|
||||||
|
|
||||||
impl DataReceiver for LeaderBoard {
|
impl DataReceiver for LeaderBoard {
|
||||||
fn game_phase_change(&mut self, phase: GamePhase) -> Result<()> {
|
fn game_phase_change(&mut self, phase: GamePhase) -> Result<()> {
|
||||||
|
for i in 0..self.leaderboard_grid.dimensions().1 {
|
||||||
|
self.leaderboard_grid.detach(0, i)?;
|
||||||
|
}
|
||||||
|
|
||||||
|
for i in 0..self.deltaboard_grid.dimensions().1 {
|
||||||
|
self.deltaboard_grid.detach(0, i)?;
|
||||||
|
}
|
||||||
|
|
||||||
match phase {
|
match phase {
|
||||||
GamePhase::Practice | GamePhase::Qualifying | GamePhase::TestDay => {
|
GamePhase::Practice | GamePhase::Qualifying | GamePhase::TestDay => {
|
||||||
for entry in self.leaderboard_entries.iter_mut() {
|
for entry in self.leaderboard_entries.iter_mut() {
|
||||||
|
|
Loading…
Reference in a new issue