Exemple #1
0
 public unsafe Swapchain[] CreateSharedSwapchains(SwapchainCreateInfo[] createInfos, AllocationCallbacks allocator)
 {
     var swapchains = new Swapchain[createInfos.Length];
     fixed (SwapchainCreateInfo* __createInfos__ = &createInfos[0])
     fixed (Swapchain* __swapchains__ = &swapchains[0])
     {
         vkCreateSharedSwapchainsKHR(this, (uint)createInfos.Length, __createInfos__, &allocator, __swapchains__).CheckError();
     }
     return swapchains;
 }
Exemple #2
0
        public static SurfaceKhr CreateAndroidSurfaceKHR(this Instance instance, AndroidSurfaceCreateInfoKhr pCreateInfo, AllocationCallbacks pAllocator)
        {
            Result result;
            SurfaceKhr pSurface;
            unsafe {
                pSurface = new SurfaceKhr ();

                fixed (UInt64* ptrpSurface = &pSurface.m) {
                    result = Android.Interop.NativeMethods.vkCreateAndroidSurfaceKHR (instance.m, pCreateInfo.m, pAllocator != null ? pAllocator.m : null, ptrpSurface);
                }
                if (result != Result.Success)
                    throw new ResultException (result);

                return pSurface;
            }
        }
Exemple #3
0
 public abstract Result RegisterDisplayEvent([Count(Count = 0)] Device device, [Count(Count = 0)] DisplayKHR display, [Count(Count = 0), Flow(FlowDirection.In)] ref DisplayEventInfoEXT pDisplayEventInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0)] ref Fence pFence);
Exemple #4
0
        public static SurfaceKhr CreateIOSSurfaceMVK(this Instance instance, IOSSurfaceCreateInfoMvk pCreateInfo, AllocationCallbacks pAllocator = null)
        {
            Result     result;
            SurfaceKhr pSurface;

            unsafe {
                pSurface = new SurfaceKhr();

                fixed(UInt64 *ptrpSurface = &pSurface.m)
                {
                    result = iOS.Interop.NativeMethods.vkCreateIOSSurfaceMVK(instance.m, pCreateInfo != null ? pCreateInfo.m : (iOS.Interop.IOSSurfaceCreateInfoMvk *) default(IntPtr), pAllocator != null ? pAllocator.m : null, ptrpSurface);
                }

                if (result != Result.Success)
                {
                    throw new ResultException(result);
                }

                return(pSurface);
            }
        }
Exemple #5
0
 public unsafe void DestroyCommandPool(CommandPool commandPool, AllocationCallbacks* allocator = null)
 {
     vkDestroyCommandPool(this, commandPool, allocator);
 }
 public abstract void DestroyDescriptorUpdateTemplate([Count(Count = 0)] Device device, [Count(Count = 0)] DescriptorUpdateTemplate descriptorUpdateTemplate, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
 public abstract Result CreateSamplerYcbcrConversion([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref SamplerYcbcrConversionCreateInfo pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out SamplerYcbcrConversion pYcbcrConversion);
Exemple #8
0
 public abstract void DestroySwapchain([Count(Count = 0)] Device device, [Count(Count = 0)] SwapchainKHR swapchain, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #9
0
        public static SurfaceKhr CreateAndroidSurfaceKHR(this Instance instance, AndroidSurfaceCreateInfoKhr pCreateInfo, AllocationCallbacks pAllocator = null)
        {
            Result     result;
            SurfaceKhr pSurface;

            unsafe {
                pSurface = new SurfaceKhr();

                fixed(UInt64 *ptrpSurface = &pSurface.m)
                {
                    result = Android.Interop.NativeMethods.vkCreateAndroidSurfaceKHR(instance.m, pCreateInfo.m, pAllocator != null ? pAllocator.m : null, ptrpSurface);
                }

                if (result != Result.Success)
                {
                    throw new ResultException(result);
                }

                return(pSurface);
            }
        }
Exemple #10
0
 public unsafe void DestroyPipelineCache(PipelineCache pipelineCache, AllocationCallbacks* allocator = null)
 {
     vkDestroyPipelineCache(this, pipelineCache, allocator);
 }
Exemple #11
0
 public unsafe void DestroyPipelineLayout(PipelineLayout pipelineLayout, AllocationCallbacks* allocator = null)
 {
     vkDestroyPipelineLayout(this, pipelineLayout, allocator);
 }
Exemple #12
0
 public unsafe void DestroyImage(Image image, AllocationCallbacks* allocator = null)
 {
     vkDestroyImage(this, image, allocator);
 }
Exemple #13
0
 public unsafe void DestroyImageView(ImageView imageView, AllocationCallbacks* allocator = null)
 {
     vkDestroyImageView(this, imageView, allocator);
 }
Exemple #14
0
 public unsafe void DestroyFramebuffer(Framebuffer framebuffer, AllocationCallbacks* allocator = null)
 {
     vkDestroyFramebuffer(this, framebuffer, allocator);
 }
Exemple #15
0
 public unsafe void DestroyFence(Fence fence, AllocationCallbacks* allocator = null)
 {
     vkDestroyFence(this, fence, allocator);
 }
Exemple #16
0
 public unsafe void DestroyEvent(Event @event, AllocationCallbacks* allocator = null)
 {
     vkDestroyEvent(this, @event, allocator);
 }
Exemple #17
0
 public unsafe void DestroyDescriptorSetLayout(DescriptorSetLayout descriptorSetLayout, AllocationCallbacks* allocator = null)
 {
     vkDestroyDescriptorSetLayout(this, descriptorSetLayout, allocator);
 }
Exemple #18
0
 public unsafe void DestroyQueryPool(QueryPool queryPool, AllocationCallbacks* allocator = null)
 {
     vkDestroyQueryPool(this, queryPool, allocator);
 }
 public abstract void DestroyIndirectCommandsLayout([Count(Count = 0)] Device device, [Count(Count = 0)] IndirectCommandsLayoutNV indirectCommandsLayout, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #20
0
 public unsafe void DestroyRenderPass(RenderPass renderPass, AllocationCallbacks* allocator = null)
 {
     vkDestroyRenderPass(this, renderPass, allocator);
 }
Exemple #21
0
 public abstract Result CreateValidationCache([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref ValidationCacheCreateInfoEXT pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out ValidationCacheEXT pValidationCache);
Exemple #22
0
 public unsafe void DestroySampler(Sampler sampler, AllocationCallbacks* allocator = null)
 {
     vkDestroySampler(this, sampler, allocator);
 }
Exemple #23
0
 public abstract void DestroyDeferredOperation([Count(Count = 0)] Device device, [Count(Count = 0)] DeferredOperationKHR operation, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #24
0
 public unsafe void DestroySemaphore(Semaphore semaphore, AllocationCallbacks* allocator = null)
 {
     vkDestroySemaphore(this, semaphore, allocator);
 }
Exemple #25
0
 public abstract Result CreateRayTracingPipelines([Count(Count = 0)] Device device, [Count(Count = 0)] PipelineCache pipelineCache, [Count(Count = 0)] uint createInfoCount, [Count(Computed = "createInfoCount"), Flow(FlowDirection.In)] ref RayTracingPipelineCreateInfoNV pCreateInfos, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Computed = "createInfoCount"), Flow(FlowDirection.Out)] out Pipeline pPipelines);
Exemple #26
0
 public unsafe void DestroyShaderModule(ShaderModule shaderModule, AllocationCallbacks* allocator = null)
 {
     vkDestroyShaderModule(this, shaderModule, allocator);
 }
Exemple #27
0
 public abstract Result CreateDebugReportCallback([Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(FlowDirection.In)] ref DebugReportCallbackCreateInfoEXT pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out DebugReportCallbackEXT pCallback);
Exemple #28
0
 public unsafe void DestroySwapchain(Swapchain swapchain, AllocationCallbacks* allocator = null)
 {
     vkDestroySwapchainKHR(this, swapchain, allocator);
 }
Exemple #29
0
 public abstract Result CreateWaylandSurface([Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(FlowDirection.In)] ref WaylandSurfaceCreateInfoKHR pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out SurfaceKHR pSurface);
Exemple #30
0
 public abstract Result CreateDebugUtilsMessenger([Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(FlowDirection.In)] ref DebugUtilsMessengerCreateInfoEXT pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out DebugUtilsMessengerEXT pMessenger);
 public abstract void DestroyPrivateDataSlot([Count(Count = 0)] Device device, [Count(Count = 0)] PrivateDataSlotEXT privateDataSlot, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
 public abstract Result CreateImagePipeSurfaceFuchsia([Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(FlowDirection.In)] ref ImagePipeSurfaceCreateInfoFUCHSIA pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out SurfaceKHR pSurface);
Exemple #33
0
 public unsafe void FreeMemory(DeviceMemory memory, AllocationCallbacks* allocator = null)
 {
     vkFreeMemory(this, memory, allocator);
 }
Exemple #34
0
 public unsafe void DestroyDescriptorPool(DescriptorPool descriptorPool, AllocationCallbacks* allocator = null)
 {
     vkDestroyDescriptorPool(this, descriptorPool, allocator);
 }
Exemple #35
0
 public abstract void DestroyDebugUtilsMessenger([Count(Count = 0)] Instance instance, [Count(Count = 0)] DebugUtilsMessengerEXT messenger, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #36
0
 internal static unsafe extern Result vkAllocateMemory(Device device, MemoryAllocateInfo* allocateInfo, AllocationCallbacks* allocator, DeviceMemory* memory);
 public abstract Result CreateIndirectCommandsLayout([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref IndirectCommandsLayoutCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out IndirectCommandsLayoutNV pIndirectCommandsLayout);
Exemple #38
0
 internal static unsafe extern Result vkCreateCommandPool(Device device, CommandPoolCreateInfo* createInfo, AllocationCallbacks* allocator, CommandPool* commandPool);
Exemple #39
0
 public abstract Result CreateSwapchain([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref SwapchainCreateInfoKHR pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out SwapchainKHR pSwapchain);
Exemple #40
0
 internal static unsafe extern Result vkCreateDescriptorPool(Device device, DescriptorPoolCreateInfo* createInfo, AllocationCallbacks* allocator, DescriptorPool* descriptorPool);
Exemple #41
0
 public abstract void DestroySurface([Count(Count = 0)] Instance instance, [Count(Count = 0)] SurfaceKHR surface, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #42
0
 internal static unsafe extern Result vkCreateDescriptorSetLayout(Device device, DescriptorSetLayoutCreateInfo* createInfo, AllocationCallbacks* allocator, DescriptorSetLayout* setLayout);
Exemple #43
0
 public abstract void DestroyValidationCache([Count(Count = 0)] Device device, [Count(Count = 0)] ValidationCacheEXT validationCache, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #44
0
 internal static unsafe extern Result vkCreateEvent(Device device, EventCreateInfo* createInfo, AllocationCallbacks* allocator, Event* @event);
Exemple #45
0
 public abstract Result CreateDeferredOperation([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out DeferredOperationKHR pDeferredOperation);
Exemple #46
0
 internal static unsafe extern Result vkCreateFence(Device device, FenceCreateInfo* createInfo, AllocationCallbacks* allocator, Fence* fence);
 public abstract Result CreateDescriptorUpdateTemplate([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref DescriptorUpdateTemplateCreateInfo pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out DescriptorUpdateTemplate pDescriptorUpdateTemplate);
Exemple #48
0
 internal static unsafe extern Result vkCreateFramebuffer(Device device, FramebufferCreateInfo* createInfo, AllocationCallbacks* allocator, Framebuffer* framebuffer);
Exemple #49
0
 public abstract Result CreateAccelerationStructure([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref AccelerationStructureCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out AccelerationStructureNV pAccelerationStructure);
Exemple #50
0
 internal static unsafe extern Result vkCreateGraphicsPipelines(Device device, PipelineCache pipelineCache, uint createInfoCount, GraphicsPipelineCreateInfo* createInfos, AllocationCallbacks* allocator, Pipeline* pipelines);
Exemple #51
0
 public abstract void DestroyAccelerationStructure([Count(Count = 0)] Device device, [Count(Count = 0)] AccelerationStructureKHR accelerationStructure, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #52
0
 internal static unsafe extern Result vkCreateImage(Device device, ImageCreateInfo* createInfo, AllocationCallbacks* allocator, Image* image);
 public abstract void DestroySamplerYcbcrConversion([Count(Count = 0)] Device device, [Count(Count = 0)] SamplerYcbcrConversion ycbcrConversion, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #54
0
 internal static unsafe extern Result vkCreateImageView(Device device, ImageViewCreateInfo* createInfo, AllocationCallbacks* allocator, ImageView* view);
Exemple #55
0
 public abstract void DestroyDebugReportCallback([Count(Count = 0)] Instance instance, [Count(Count = 0)] DebugReportCallbackEXT callback, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator);
Exemple #56
0
 public abstract Result CreateStreamDescriptorSurfaceGgp([Count(Count = 0)] Instance instance, [Count(Count = 0), Flow(FlowDirection.In)] ref StreamDescriptorSurfaceCreateInfoGGP pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out SurfaceKHR pSurface);
 public unsafe DeviceMemory(MemoryAllocateInfo myAllocation, AllocationCallbacks pAllocator = null)
     : this(VulkanRenderer.SelectedLogicalDevice, myAllocation, pAllocator)
 {
 }
 public abstract Result CreatePrivateDataSlot([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ref PrivateDataSlotCreateInfoEXT pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ref AllocationCallbacks pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] out PrivateDataSlotEXT pPrivateDataSlot);
Exemple #59
0
        public unsafe Swapchain[] CreateSharedSwapchains(SwapchainCreateInfo[] createInfos, AllocationCallbacks allocator)
        {
            var swapchains = new Swapchain[createInfos.Length];

            fixed(SwapchainCreateInfo *__createInfos__ = &createInfos[0])
            fixed(Swapchain * __swapchains__ = &swapchains[0])
            {
                vkCreateSharedSwapchainsKHR(this, (uint)createInfos.Length, __createInfos__, &allocator, __swapchains__).CheckError();
            }
            return(swapchains);
        }
Exemple #60
0
 public unsafe void DestroyBufferView(BufferView bufferView, AllocationCallbacks* allocator = null)
 {
     vkDestroyBufferView(this, bufferView, allocator);
 }