void CreateQueryPool(QueryPoolCreateInfo mInfo) { VkQueryPoolCreateInfo info = new VkQueryPoolCreateInfo(); info.sType = VkStructureType.QueryPoolCreateInfo; info.queryType = mInfo.queryType; info.queryCount = mInfo.queryCount; info.pipelineStatistics = mInfo.pipelineStatistics; Device.Commands.createQueryPool(Device.Native, ref info, Device.Instance.AllocationCallbacks, out queryPool); }
public QueryPool(Device device, QueryPoolCreateInfo info) { if (device == null) { throw new ArgumentNullException(nameof(device)); } Device = device; CreateQueryPool(info); }