mirror of
https://github.com/italicsjenga/portability.git
synced 2025-02-17 06:37:43 +11:00
Merge #114
114: Handle unused depth stencil subpass attachments r=kvark a=msiglreith Treating VK_UNUSED_ATTACHMENT case same way as passing NULL for the depth stencil attachment. Co-authored-by: msiglreith <m.siglreith@gmail.com>
This commit is contained in:
commit
d782e1febc
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ use hal::queue::RawCommandQueue;
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
|
|
||||||
use std::ffi::{CStr, CString};
|
use std::ffi::{CStr, CString};
|
||||||
|
use std::os::raw::c_int;
|
||||||
#[cfg(feature = "renderdoc")]
|
#[cfg(feature = "renderdoc")]
|
||||||
use std::os::raw::c_void;
|
use std::os::raw::c_void;
|
||||||
use std::{mem, ptr};
|
use std::{mem, ptr};
|
||||||
|
@ -2713,6 +2714,7 @@ pub extern "C" fn gfxCreateRenderPass(
|
||||||
.pDepthStencilAttachment
|
.pDepthStencilAttachment
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(map_attachment_ref)
|
.map(map_attachment_ref)
|
||||||
|
.filter(|ds| ds.0 as c_int != VK_ATTACHMENT_UNUSED)
|
||||||
};
|
};
|
||||||
|
|
||||||
let preserve = unsafe {
|
let preserve = unsafe {
|
||||||
|
|
Loading…
Add table
Reference in a new issue