mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 00:04:15 +00:00
Fix OutOfHostMemory error in examples (#1246)
* Fix OutOfHostMemory error in examples * Update changelog * Add comment * Point to summary issue
This commit is contained in:
parent
dc73b1f469
commit
ea8fed21f6
@ -1,5 +1,6 @@
|
||||
# Unreleased
|
||||
|
||||
- Fixed bug in examples causing OutOfHostMemory errors
|
||||
- Replaced `VK_EXT_debug_report` `VK_EXT_debug_marker` with `VK_EXT_debug_utils`.
|
||||
- Update MacOS dependencies metal to 0.17 and cocoa to 0.19
|
||||
- Added dynamic stencil elements to `DynamicState`
|
||||
|
@ -157,6 +157,8 @@ fn main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame_end = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(FlushError::OutOfDate) => {
|
||||
|
@ -198,6 +198,8 @@ fn main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame_end = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(FlushError::OutOfDate) => {
|
||||
|
@ -296,6 +296,8 @@ void main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame_end = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(FlushError::OutOfDate) => {
|
||||
|
@ -258,6 +258,8 @@ void main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame_end = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(FlushError::OutOfDate) => {
|
||||
|
@ -436,6 +436,8 @@ fn main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame_end = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(vulkano::sync::FlushError::OutOfDate) => {
|
||||
|
@ -211,6 +211,8 @@ fn main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(sync::FlushError::OutOfDate) => {
|
||||
|
@ -278,6 +278,8 @@ fn main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame_end = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(FlushError::OutOfDate) => {
|
||||
|
@ -416,6 +416,8 @@ void main() {
|
||||
|
||||
match future {
|
||||
Ok(future) => {
|
||||
// This wait is required when using NVIDIA or running on macOS. See https://github.com/vulkano-rs/vulkano/issues/1247
|
||||
future.wait(None).unwrap();
|
||||
previous_frame_end = Some(Box::new(future) as Box<_>);
|
||||
}
|
||||
Err(FlushError::OutOfDate) => {
|
||||
|
Loading…
Reference in New Issue
Block a user