示例#1
0
        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);
        }
示例#2
0
        public QueryPool(Device device, QueryPoolCreateInfo info)
        {
            if (device == null)
            {
                throw new ArgumentNullException(nameof(device));
            }

            Device = device;

            CreateQueryPool(info);
        }