Esempio n. 1
0
        public VkObjectResult <IVkInstance> CreateInstance(VkInstanceCreateInfo createInfo, VkAllocationCallbacks allocator)
        {
            var size =
                createInfo.SizeOfMarshalIndirect() +
                allocator.SizeOfMarshalIndirect();

            return(VkHelpers.RunWithUnamangedData(size, u => CreateInstanceInternal(u, createInfo, allocator)));
        }
Esempio n. 2
0
        private IReadOnlyList <IVkExtensionProperties> EnumerateInstanceExtensionProperties(string layerName)
        {
            var size = layerName.SizeOfMarshalIndirect();

            return(VkHelpers.RunWithUnamangedData(size, u => EnumerateInstanceExtensionPropertiesInternal(u, layerName)));
        }
Esempio n. 3
0
        public void Dispose()
        {
            var size = Allocator.SizeOfMarshalIndirect();

            VkHelpers.RunWithUnamangedData(size, DisposeInternal);
        }