发布于 2021-10-09 14:51:26
它取决于设备的类型、操作系统(版本和类型)和处理器体系结构。下面的代码可以在以下配置下轻松编译:iOS 15、iPhone 12 / 13、Xcode 13。
#if defined(__HAVE_BICUBIC_FILTERING__)
constexpr sampler textureSampler (mag_filter::bicubic, min_filter::bicubic);
const half4 colorSample = colorTexture.sample (textureSampler, in.textureCoordinate);
return float4(colorSample);
#endifhttps://stackoverflow.com/questions/69505204
复制相似问题