예제 #1
0
파일: Device.cs 프로젝트: Gaiaxis/SharpGame
 public static VkImageView CreateImageView(ref VkImageViewCreateInfo pCreateInfo)
 {
     VulkanUtil.CheckResult(vkCreateImageView(device, Utilities.AsPtr(ref pCreateInfo), null, out VkImageView pView));
     return(pView);
 }
예제 #2
0
파일: Image.cs 프로젝트: Gaiaxis/SharpGame
 public ImageView(Image image, ref VkImageViewCreateInfo imageViewCreateInfo)
 {
     handle     = Device.CreateImageView(ref imageViewCreateInfo);
     Image      = image;
     descriptor = new VkDescriptorImageInfo(Sampler.ClampToEdge, this, VkImageLayout.ShaderReadOnlyOptimal);
 }