예제 #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);
        }