Beispiel #1
0
 public void CmdClearDepthStencilImage(Image image, ImageLayout imageLayout, ClearDepthStencilValue pDepthStencil, ImageSubresourceRange?pRange)
 {
     unsafe {
         ImageSubresourceRange  valpRange = pRange ?? default(ImageSubresourceRange);
         ImageSubresourceRange *ptrpRange = pRange != null ? &valpRange : (ImageSubresourceRange *)IntPtr.Zero;
         Interop.NativeMethods.vkCmdClearDepthStencilImage(this.m, image != null ? image.m : default(UInt64), imageLayout, &pDepthStencil, (UInt32)(pRange != null ? 1 : 0), ptrpRange);
     }
 }
Beispiel #2
0
 public void CmdClearColorImage(Image image, ImageLayout imageLayout, ClearColorValue pColor, ImageSubresourceRange?pRange)
 {
     unsafe {
         ImageSubresourceRange  valpRange = pRange ?? default(ImageSubresourceRange);
         ImageSubresourceRange *ptrpRange = pRange != null ? &valpRange : (ImageSubresourceRange *)IntPtr.Zero;
         Interop.NativeMethods.vkCmdClearColorImage(this.m, image != null ? image.m : default(UInt64), imageLayout, pColor != null ? pColor.m : (Interop.ClearColorValue *) default(IntPtr), (UInt32)(pRange != null ? 1 : 0), ptrpRange);
     }
 }
 public static extern unsafe void vkCmdClearDepthStencilImage(IntPtr commandBuffer, ulong image, ImageLayout imageLayout, ClearDepthStencilValue *pDepthStencil, uint rangeCount, ImageSubresourceRange *pRanges);
 public static extern unsafe void vkCmdClearColorImage(IntPtr commandBuffer, ulong image, ImageLayout imageLayout, ClearColorValue *pColor, uint rangeCount, ImageSubresourceRange *pRanges);
Beispiel #5
0
 internal static unsafe extern void vkCmdClearDepthStencilImage(CommandBuffer commandBuffer, Image image, ImageLayout imageLayout, ClearDepthStencilValue *DepthStencil, UInt32 rangeCount, ImageSubresourceRange *Ranges);
Beispiel #6
0
 internal static unsafe extern void vkCmdClearColorImage(CommandBuffer commandBuffer, Image image, ImageLayout imageLayout, ClearColorValue *Color, UInt32 rangeCount, ImageSubresourceRange *Ranges);