Ejemplo n.º 1
0
 /// <param name="MagFilter">Filter mode for magnification</param>
 /// <param name="MinFilter">Filter mode for minifiation</param>
 /// <param name="MipmapMode">Mipmap selection mode</param>
 public SamplerCreateInfo(Filter MagFilter, Filter MinFilter, SamplerMipmapMode MipmapMode, SamplerAddressMode AddressModeU, SamplerAddressMode AddressModeV, SamplerAddressMode AddressModeW, Single MipLodBias, Bool32 AnisotropyEnable, Single MaxAnisotropy, Bool32 CompareEnable, CompareOp CompareOp, Single MinLod, Single MaxLod, BorderColor BorderColor, Bool32 UnnormalizedCoordinates) : this()
 {
     this.MagFilter               = MagFilter;
     this.MinFilter               = MinFilter;
     this.MipmapMode              = MipmapMode;
     this.AddressModeU            = AddressModeU;
     this.AddressModeV            = AddressModeV;
     this.AddressModeW            = AddressModeW;
     this.MipLodBias              = MipLodBias;
     this.AnisotropyEnable        = AnisotropyEnable;
     this.MaxAnisotropy           = MaxAnisotropy;
     this.CompareEnable           = CompareEnable;
     this.CompareOp               = CompareOp;
     this.MinLod                  = MinLod;
     this.MaxLod                  = MaxLod;
     this.BorderColor             = BorderColor;
     this.UnnormalizedCoordinates = UnnormalizedCoordinates;
 }
 /// <summary>
 /// Query if presentation is supported.
 /// </summary>
 /// <param name="extendedHandle">
 /// The PhysicalDevice handle to extend.
 /// </param>
 public static unsafe bool GetSurfaceSupport(this SharpVk.PhysicalDevice extendedHandle, uint queueFamilyIndex, SharpVk.Khronos.Surface surface)
 {
     try
     {
         bool         result              = default(bool);
         CommandCache commandCache        = default(CommandCache);
         Bool32       marshalledSupported = default(Bool32);
         commandCache = extendedHandle.commandCache;
         SharpVk.Interop.Khronos.VkPhysicalDeviceGetSurfaceSupportDelegate commandDelegate = commandCache.Cache.vkGetPhysicalDeviceSurfaceSupportKHR;
         Result methodResult = commandDelegate(extendedHandle.handle, queueFamilyIndex, surface?.handle ?? default(SharpVk.Interop.Khronos.Surface), &marshalledSupported);
         if (SharpVkException.IsError(methodResult))
         {
             throw SharpVkException.Create(methodResult);
         }
         result = marshalledSupported;
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }
 public partial void CmdSetDepthBiasEnable([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 depthBiasEnable);
Ejemplo n.º 4
0
 internal static unsafe extern Result vkWaitForFences(Device device, UInt32 fenceCount, IntPtr pFences, Bool32 waitAll, UInt64 timeout);
Ejemplo n.º 5
0
 /// <param name="Display">Handle of the display object</param>
 /// <param name="DisplayName">Name of the display</param>
 /// <param name="PhysicalDimensions">In millimeters?</param>
 /// <param name="PhysicalResolution">Max resolution for CRT?</param>
 /// <param name="PlaneReorderPossible">VK_TRUE if the overlay plane's z-order can be changed on this display.</param>
 /// <param name="PersistentContent">VK_TRUE if this is a "smart" display that supports self-refresh/internal buffering.</param>
 public DisplayPropertiesKHR(DisplayKHR Display, String DisplayName, Extent2D PhysicalDimensions, Extent2D PhysicalResolution, Bool32 PlaneReorderPossible, Bool32 PersistentContent) : this()
 {
     this.Display              = Display;
     this.DisplayName          = DisplayName;
     this.PhysicalDimensions   = PhysicalDimensions;
     this.PhysicalResolution   = PhysicalResolution;
     this.PlaneReorderPossible = PlaneReorderPossible;
     this.PersistentContent    = PersistentContent;
 }
Ejemplo n.º 6
0
 /// <param name="Surface">The swapchain's target surface</param>
 /// <param name="MinImageCount">Minimum number of presentation images the application needs</param>
 /// <param name="ImageFormat">Format of the presentation images</param>
 /// <param name="ImageColorSpace">Colorspace of the presentation images</param>
 /// <param name="ImageExtent">Dimensions of the presentation images</param>
 /// <param name="ImageArrayLayers">Determines the number of views for multiview/stereo presentation</param>
 /// <param name="ImageUsage">Bits indicating how the presentation images will be used</param>
 /// <param name="ImageSharingMode">Sharing mode used for the presentation images</param>
 /// <param name="QueueFamilyIndices">Array of queue family indices having access to the images in case of concurrent sharing mode</param>
 /// <param name="PreTransform">The transform, relative to the device's natural orientation, applied to the image content prior to presentation</param>
 /// <param name="CompositeAlpha">The alpha blending mode used when compositing this surface with other surfaces in the window system</param>
 /// <param name="PresentMode">Which presentation mode to use for presents on this swap chain</param>
 /// <param name="Clipped">Specifies whether presentable images may be affected by window clip regions</param>
 public SwapchainCreateInfoKHR(SurfaceKHR Surface, UInt32 MinImageCount, Format ImageFormat, ColorSpaceKHR ImageColorSpace, Extent2D ImageExtent, UInt32 ImageArrayLayers, ImageUsageFlags ImageUsage, SharingMode ImageSharingMode, UInt32[] QueueFamilyIndices, SurfaceTransformFlagsKHR PreTransform, CompositeAlphaFlagsKHR CompositeAlpha, PresentModeKHR PresentMode, Bool32 Clipped) : this()
 {
     this.Surface            = Surface;
     this.MinImageCount      = MinImageCount;
     this.ImageFormat        = ImageFormat;
     this.ImageColorSpace    = ImageColorSpace;
     this.ImageExtent        = ImageExtent;
     this.ImageArrayLayers   = ImageArrayLayers;
     this.ImageUsage         = ImageUsage;
     this.ImageSharingMode   = ImageSharingMode;
     this.QueueFamilyIndices = QueueFamilyIndices;
     this.PreTransform       = PreTransform;
     this.CompositeAlpha     = CompositeAlpha;
     this.PresentMode        = PresentMode;
     this.Clipped            = Clipped;
 }
 /// <summary>To be documented.</summary>
 public static unsafe void CmdExecuteGeneratedCommands(this NVDeviceGeneratedCommands thisApi, [Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 isPreprocessed, [Count(Count = 0), Flow(FlowDirection.In)] ReadOnlySpan <GeneratedCommandsInfoNV> pGeneratedCommandsInfo)
 {
     // SpanOverloader
     thisApi.CmdExecuteGeneratedCommands(commandBuffer, isPreprocessed, in pGeneratedCommandsInfo.GetPinnableReference());
 }
Ejemplo n.º 8
0
 public partial void CmdExecuteGeneratedCommands([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 isPreprocessed, [Count(Count = 0), Flow(FlowDirection.In)] in GeneratedCommandsInfoNV pGeneratedCommandsInfo);
 /// <param name="RasterizationSamples">Number of samples used for rasterization</param>
 /// <param name="SampleShadingEnable">Optional (GL45)</param>
 /// <param name="MinSampleShading">Optional (GL45)</param>
 public PipelineMultisampleStateCreateInfo(SampleCountFlags RasterizationSamples, Bool32 SampleShadingEnable, Single MinSampleShading, Bool32 AlphaToCoverageEnable, Bool32 AlphaToOneEnable) : this()
 {
     this.RasterizationSamples  = RasterizationSamples;
     this.SampleShadingEnable   = SampleShadingEnable;
     this.MinSampleShading      = MinSampleShading;
     this.AlphaToCoverageEnable = AlphaToCoverageEnable;
     this.AlphaToOneEnable      = AlphaToOneEnable;
 }
 /// <param name="DepthBoundsTestEnable">Optional (depth_bounds_test)</param>
 public PipelineDepthStencilStateCreateInfo(Bool32 DepthTestEnable, Bool32 DepthWriteEnable, CompareOp DepthCompareOp, Bool32 DepthBoundsTestEnable, Bool32 StencilTestEnable, StencilOpState Front, StencilOpState Back, Single MinDepthBounds, Single MaxDepthBounds) : this()
 {
     this.DepthTestEnable       = DepthTestEnable;
     this.DepthWriteEnable      = DepthWriteEnable;
     this.DepthCompareOp        = DepthCompareOp;
     this.DepthBoundsTestEnable = DepthBoundsTestEnable;
     this.StencilTestEnable     = StencilTestEnable;
     this.Front          = Front;
     this.Back           = Back;
     this.MinDepthBounds = MinDepthBounds;
     this.MaxDepthBounds = MaxDepthBounds;
 }
 public abstract void CmdSetStencilTestEnable([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 stencilTestEnable);
 public abstract void CmdSetDepthWriteEnable([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 depthWriteEnable);
Ejemplo n.º 13
0
 /// <param name="SrcRect">Rectangle within the presentable image to read pixel data from when presenting to the display.</param>
 /// <param name="DstRect">Rectangle within the current display mode's visible region to display srcRectangle in.</param>
 /// <param name="Persistent">For smart displays, use buffered mode. If the display properties member "persistentMode" is VK_FALSE, this member must always be VK_FALSE.</param>
 public DisplayPresentInfoKHR(Rect2D SrcRect, Rect2D DstRect, Bool32 Persistent) : this()
 {
     this.SrcRect    = SrcRect;
     this.DstRect    = DstRect;
     this.Persistent = Persistent;
 }
 public partial void CmdSetPrimitiveRestartEnable([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 primitiveRestartEnable);
 public abstract unsafe void CmdExecuteGeneratedCommands([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 isPreprocessed, [Count(Count = 0), Flow(FlowDirection.In)] GeneratedCommandsInfoNV *pGeneratedCommandsInfo);
 public partial void CmdSetRasterizerDiscardEnable([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Bool32 rasterizerDiscardEnable);
Ejemplo n.º 17
0
 public abstract Result GetPhysicalDeviceSurfaceSupport([Count(Count = 0)] PhysicalDevice physicalDevice, [Count(Count = 0)] uint queueFamilyIndex, [Count(Count = 0)] SurfaceKHR surface, [Count(Count = 0), Flow(FlowDirection.Out)] out Bool32 pSupported);
 public PipelineInputAssemblyStateCreateInfo(PrimitiveTopology Topology, Bool32 PrimitiveRestartEnable) : this()
 {
     this.Topology = Topology;
     this.PrimitiveRestartEnable = PrimitiveRestartEnable;
 }
Ejemplo n.º 19
0
 public static extern SharpVk.Result vkWaitForFences(SharpVk.Interop.Device device, uint fenceCount, SharpVk.Interop.Fence *fences, Bool32 waitAll, ulong timeout);
Ejemplo n.º 20
0
 public partial void SetLocalDimming([Count(Count = 0)] Device device, [Count(Count = 0)] SwapchainKHR swapChain, [Count(Count = 0)] Bool32 localDimmingEnable);
Ejemplo n.º 21
0
 /// <param name="PolygonMode">Optional (GL45)</param>
 public PipelineRasterizationStateCreateInfo(Bool32 DepthClampEnable, Bool32 RasterizerDiscardEnable, PolygonMode PolygonMode, FrontFace FrontFace, Bool32 DepthBiasEnable, Single DepthBiasConstantFactor, Single DepthBiasClamp, Single DepthBiasSlopeFactor, Single LineWidth) : this()
 {
     this.DepthClampEnable        = DepthClampEnable;
     this.RasterizerDiscardEnable = RasterizerDiscardEnable;
     this.PolygonMode             = PolygonMode;
     this.FrontFace               = FrontFace;
     this.DepthBiasEnable         = DepthBiasEnable;
     this.DepthBiasConstantFactor = DepthBiasConstantFactor;
     this.DepthBiasClamp          = DepthBiasClamp;
     this.DepthBiasSlopeFactor    = DepthBiasSlopeFactor;
     this.LineWidth               = LineWidth;
 }
Ejemplo n.º 22
0
 /// <summary>To be documented.</summary>
 public static unsafe void CmdBuildAccelerationStructure(this NVRayTracing thisApi, [Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0), Flow(FlowDirection.In)] ReadOnlySpan <AccelerationStructureInfoNV> pInfo, [Count(Count = 0)] Buffer instanceData, [Count(Count = 0)] ulong instanceOffset, [Count(Count = 0)] Bool32 update, [Count(Count = 0)] AccelerationStructureNV dst, [Count(Count = 0)] AccelerationStructureNV src, [Count(Count = 0)] Buffer scratch, [Count(Count = 0)] ulong scratchOffset)
 {
     // SpanOverloader
     thisApi.CmdBuildAccelerationStructure(commandBuffer, in pInfo.GetPinnableReference(), instanceData, instanceOffset, update, dst, src, scratch, scratchOffset);
 }
Ejemplo n.º 23
0
 public abstract void CmdBuildAccelerationStructure([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0), Flow(FlowDirection.In)] ref AccelerationStructureInfoNV pInfo, [Count(Count = 0)] Buffer instanceData, [Count(Count = 0)] ulong instanceOffset, [Count(Count = 0)] Bool32 update, [Count(Count = 0)] AccelerationStructureKHR dst, [Count(Count = 0)] AccelerationStructureKHR src, [Count(Count = 0)] Buffer scratch, [Count(Count = 0)] ulong scratchOffset);
Ejemplo n.º 24
0
 public static extern unsafe Result vkWaitForFences(IntPtr device, uint fenceCount, ulong *pFences, Bool32 waitAll, ulong timeout);
Ejemplo n.º 25
0
 /// <param name="OcclusionQueryEnable">Whether this secondary command buffer may be executed during an occlusion query</param>
 public CommandBufferInheritanceInfo(UInt32 Subpass, Bool32 OcclusionQueryEnable) : this()
 {
     this.Subpass = Subpass;
     this.OcclusionQueryEnable = OcclusionQueryEnable;
 }