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); }
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); }
internal BackendInfoVulkan(VkGraphicsDevice gd) { _gd = gd; }
public VkIndexBuffer(VkGraphicsDevice gd, ref IndexBufferDescription description) : base(gd, description.SizeInBytes, description.Dynamic, Vulkan.VkBufferUsageFlags.IndexBuffer) { Format = description.Format; }
public VkUniformBuffer(VkGraphicsDevice gd, ref BufferDescription description) : base(gd, description.SizeInBytes, description.Dynamic, Vulkan.VkBufferUsageFlags.UniformBuffer) { }