public unsafe void ClearAttachments(uint attachmentCount, ref ClearAttachment attachments, uint rectCount, ClearRect* rects) { fixed (ClearAttachment* __attachments__ = &attachments) { vkCmdClearAttachments(this, attachmentCount, __attachments__, rectCount, rects); } }
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); } }
internal static unsafe extern void vkCmdClearAttachments(CommandBuffer commandBuffer, uint attachmentCount, ClearAttachment* attachments, uint rectCount, ClearRect* rects);