【问题标题】:Vulkan Image View Feature FlagsVulkan 图像视图功能标志
【发布时间】:2022-11-01 15:51:33
【问题描述】:

我收到此验证消息

If a VkSampler created with magFilter or minFilter equal to VK_FILTER_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT

但我看不到如何设置图像视图格式功能。有任何想法吗?

【问题讨论】:

    标签: vulkan


    【解决方案1】:

    该消息告诉您,您正在使用线性采样器(magFilter 或 minFilter 为 VK_FILTER_LINEAR)从格式不具有 VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT 功能的图像视图中采样。

    有两种方法可以解决此问题:

    1. 使用不同的采样器。如果您不需要线性过滤,则可以使用点采样器。

    2. 使用不同的图像视图格式。如果需要线性过滤,可以使用支持它的格式。

    【讨论】:

      猜你喜欢
      • 2020-02-23
      • 1970-01-01
      • 2019-12-09
      • 2019-04-06
      • 1970-01-01
      • 2014-02-14
      • 1970-01-01
      • 1970-01-01
      • 2023-03-06
      相关资源
      最近更新 更多