Esempio n. 1
0
 internal BackendInfoVulkan(VkGraphicsDevice gd)
 {
     _gd                 = gd;
     _instanceLayers     = new Lazy <ReadOnlyCollection <string> >(() => new ReadOnlyCollection <string>(VulkanUtil.EnumerateInstanceLayers()));
     _instanceExtensions = new ReadOnlyCollection <string>(VulkanUtil.GetInstanceExtensions());
     _deviceExtensions   = new Lazy <ReadOnlyCollection <ExtensionProperties> >(EnumerateDeviceExtensions);
 }
Esempio n. 2
0
            public SharedCommandPool(VkGraphicsDevice gd, bool isCached)
            {
                _gd      = gd;
                IsCached = isCached;

                VkCommandPoolCreateInfo commandPoolCI = VkCommandPoolCreateInfo.New();

                commandPoolCI.flags            = VkCommandPoolCreateFlags.Transient;
                commandPoolCI.queueFamilyIndex = _gd.GraphicsQueueIndex;
                VkResult result = vkCreateCommandPool(_gd.Device, ref commandPoolCI, null, out _pool);

                CheckResult(result);
            }
Esempio n. 3
0
 internal BackendInfoVulkan(VkGraphicsDevice gd)
 {
     _gd = gd;
 }
Esempio n. 4
0
 public VkIndexBuffer(VkGraphicsDevice gd, ref IndexBufferDescription description)
     : base(gd, description.SizeInBytes, description.Dynamic, Vulkan.VkBufferUsageFlags.IndexBuffer)
 {
     Format = description.Format;
 }
Esempio n. 5
0
 public VkUniformBuffer(VkGraphicsDevice gd, ref BufferDescription description)
     : base(gd, description.SizeInBytes, description.Dynamic, Vulkan.VkBufferUsageFlags.UniformBuffer)
 {
 }