Fix black screen on some devices in interactive examples (#2082)

This commit is contained in:
Okko Hakola 2022-11-07 09:48:25 +02:00 committed by GitHub
parent 9220321e06
commit facee332ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -57,10 +57,7 @@ fn main() {
primary_window_renderer.add_additional_image_view( primary_window_renderer.add_additional_image_view(
render_target_id, render_target_id,
DEFAULT_IMAGE_FORMAT, DEFAULT_IMAGE_FORMAT,
ImageUsage::SAMPLED ImageUsage::SAMPLED | ImageUsage::STORAGE | ImageUsage::TRANSFER_DST,
| ImageUsage::STORAGE
| ImageUsage::COLOR_ATTACHMENT
| ImageUsage::TRANSFER_DST,
); );
// Create app to hold the logic of our fractal explorer // Create app to hold the logic of our fractal explorer

View File

@ -84,10 +84,7 @@ impl GameOfLifeComputePipeline {
compute_queue.clone(), compute_queue.clone(),
size, size,
Format::R8G8B8A8_UNORM, Format::R8G8B8A8_UNORM,
ImageUsage::SAMPLED ImageUsage::SAMPLED | ImageUsage::STORAGE | ImageUsage::TRANSFER_DST,
| ImageUsage::STORAGE
| ImageUsage::COLOR_ATTACHMENT
| ImageUsage::TRANSFER_DST,
) )
.unwrap(); .unwrap();