Metal: linear texture filtering not working as expected

后端 未结 1 1504
感动是毒
感动是毒 2021-02-06 11:13

I\'m using Metal on iOS with the following fragment shader:

constexpr sampler s(coord::normalized,
                    address::clamp_to_zero,
                           


        
1条回答
  •  醉酒成梦
    2021-02-06 11:29

    It appears linear filtering isn't supported for textures of type MTLPixelFormatRGBA32Float on my device (iPad Pro). When I change to MTLPixelFormatRGBA8Unorm, filtering works as expected.

    0 讨论(0)
提交回复
热议问题