Esempio n. 1
0
        public Result CreateDebugReportCallbackEXT(MgDebugReportCallbackCreateInfoEXT pCreateInfo, IMgAllocationCallbacks allocator, out IMgDebugReportCallbackEXT pCallback)
        {
            throw new NotImplementedException();

            Debug.Assert(!mIsDisposed);

            var allocatorHandle = GetAllocatorHandle(allocator);

            var createInfo = new VkDebugReportCallbackCreateInfoEXT
            {
                sType = VkStructureType.StructureTypeDebugReportCallbackCreateInfoExt,
                pNext = IntPtr.Zero,
                flags = (VkDebugReportFlagsExt)pCreateInfo.Flags,
                // TODO : figure out translation
                pfnCallback = null,
                pUserData   = pCreateInfo.UserData,
            };

            var callback = 0UL;
            var result   = Interops.vkCreateDebugReportCallbackEXT(Handle, ref createInfo, allocatorHandle, ref callback);

            // TODO : figure out translation
            pCallback = new VkDebugReportCallbackEXT(callback);

            return(result);
        }
Esempio n. 2
0
 internal extern static Result vkCreateDebugReportCallbackEXT(IntPtr instance, ref VkDebugReportCallbackCreateInfoEXT pCreateInfo, IntPtr pAllocator, ref UInt64 pCallback);