public void CmdClearAttachment(ClearAttachment pAttachment, ClearRect?pRect) { unsafe { ClearRect valpRect = pRect ?? default(ClearRect); ClearRect *ptrpRect = pRect != null ? &valpRect : (ClearRect *)IntPtr.Zero; Interop.NativeMethods.vkCmdClearAttachments(this.m, (UInt32)(pAttachment != null ? 1 : 0), pAttachment != null ? pAttachment.m : (Interop.ClearAttachment *) default(IntPtr), (UInt32)(pRect != null ? 1 : 0), ptrpRect); } }
public static extern unsafe void vkCmdClearAttachments(IntPtr commandBuffer, uint attachmentCount, ClearAttachment *pAttachments, uint rectCount, ClearRect *pRects);
internal static unsafe extern void vkCmdClearAttachments(CommandBuffer commandBuffer, UInt32 attachmentCount, ClearAttachment *Attachments, UInt32 rectCount, ClearRect *Rects);