mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 15:01:31 +11:00
Handle unused depth stencil subpass attachments
This commit is contained in:
parent
3a96b51cb1
commit
aa851f19b3
|
@ -12,6 +12,7 @@ use hal::queue::RawCommandQueue;
|
|||
use smallvec::SmallVec;
|
||||
|
||||
use std::ffi::{CStr, CString};
|
||||
use std::os::raw::c_int;
|
||||
#[cfg(feature = "renderdoc")]
|
||||
use std::os::raw::c_void;
|
||||
use std::{mem, ptr};
|
||||
|
@ -2713,6 +2714,7 @@ pub extern "C" fn gfxCreateRenderPass(
|
|||
.pDepthStencilAttachment
|
||||
.as_ref()
|
||||
.map(map_attachment_ref)
|
||||
.filter(|ds| ds.0 as c_int != VK_ATTACHMENT_UNUSED)
|
||||
};
|
||||
|
||||
let preserve = unsafe {
|
||||
|
@ -3840,7 +3842,7 @@ pub extern "C" fn gfxGetPhysicalDeviceSurfacePresentModesKHR(
|
|||
}
|
||||
|
||||
unsafe { *pPresentModeCount = count as _ };
|
||||
|
||||
|
||||
code
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue