public static VkImageView CreateImageView(ref VkImageViewCreateInfo pCreateInfo) { VulkanUtil.CheckResult(vkCreateImageView(device, Utilities.AsPtr(ref pCreateInfo), null, out VkImageView pView)); return(pView); }
public ImageView(Image image, ref VkImageViewCreateInfo imageViewCreateInfo) { handle = Device.CreateImageView(ref imageViewCreateInfo); Image = image; descriptor = new VkDescriptorImageInfo(Sampler.ClampToEdge, this, VkImageLayout.ShaderReadOnlyOptimal); }