예제 #1
0
        public VkQueryPool(VkQueryType queryType, uint queryCount, VkQueryPipelineStatisticFlags pipelineStatistics = VkQueryPipelineStatisticFlags.None)
        {
            var createInfo = new VkQueryPoolCreateInfo
            {
                sType              = VkStructureType.QueryPoolCreateInfo,
                queryType          = queryType,
                queryCount         = queryCount,
                pipelineStatistics = pipelineStatistics,
            };

            Vulkan.vkCreateQueryPool(Vulkan.device, &createInfo, null, out this).CheckResult();
        }