Fix OutOfHostMemory error in examples (#1246)

* Fix OutOfHostMemory error in examples

* Update changelog

* Add comment

* Point to summary issue
This commit is contained in:
theotherphil 2019-10-20 22:27:33 +01:00 committed by Austin Johnson
parent dc73b1f469
commit ea8fed21f6
9 changed files with 17 additions and 0 deletions

View File

@ -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`

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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) => {