mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 23:05:43 +00:00
Fix black screen on some devices in interactive examples (#2082)
This commit is contained in:
parent
9220321e06
commit
facee332ec
@ -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
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user