public CommandBufferInheritanceViewportScissorInfoNV ( StructureType?sType = StructureType.CommandBufferInheritanceViewportScissorInfoNV, void *pNext = null, Bool32?viewportScissor2D = null, uint?viewportDepthCount = null, Viewport *pViewportDepths = null ) : this() { if (sType is not null) { SType = sType.Value; } if (pNext is not null) { PNext = pNext; } if (viewportScissor2D is not null) { ViewportScissor2D = viewportScissor2D.Value; } if (viewportDepthCount is not null) { ViewportDepthCount = viewportDepthCount.Value; } if (pViewportDepths is not null) { PViewportDepths = pViewportDepths; } }
public void CmdSetViewport(UInt32 firstViewport, Viewport?pViewport) { unsafe { Viewport valpViewport = pViewport ?? default(Viewport); Viewport *ptrpViewport = pViewport != null ? &valpViewport : (Viewport *)IntPtr.Zero; Interop.NativeMethods.vkCmdSetViewport(this.m, firstViewport, (UInt32)(pViewport != null ? 1 : 0), ptrpViewport); } }
public PipelineViewportStateCreateInfo ( StructureType?sType = StructureType.PipelineViewportStateCreateInfo, void *pNext = null, uint?flags = null, uint?viewportCount = null, Viewport *pViewports = null, uint?scissorCount = null, Rect2D *pScissors = null ) : this() { if (sType is not null) { SType = sType.Value; } if (pNext is not null) { PNext = pNext; } if (flags is not null) { Flags = flags.Value; } if (viewportCount is not null) { ViewportCount = viewportCount.Value; } if (pViewports is not null) { PViewports = pViewports; } if (scissorCount is not null) { ScissorCount = scissorCount.Value; } if (pScissors is not null) { PScissors = pScissors; } }
public PipelineViewportStateCreateInfo ( StructureType sType = StructureType.PipelineViewportStateCreateInfo, void *pNext = default, uint flags = default, uint viewportCount = default, Viewport *pViewports = default, uint scissorCount = default, Rect2D *pScissors = default ) { SType = sType; PNext = pNext; Flags = flags; ViewportCount = viewportCount; PViewports = pViewports; ScissorCount = scissorCount; PScissors = pScissors; }
public static extern unsafe void vkCmdSetViewport(IntPtr commandBuffer, uint firstViewport, uint viewportCount, Viewport *pViewports);
internal static unsafe extern void vkCmdSetViewport(CommandBuffer commandBuffer, UInt32 firstViewport, UInt32 viewportCount, Viewport *Viewports);
public abstract unsafe void CmdSetViewportWithCount([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] uint viewportCount, [Count(Computed = "viewportCount"), Flow(FlowDirection.In)] Viewport *pViewports);