Godot Version
4.5.1 Stable
Question
I got this message
WARNING: drivers/metal/rendering_device_driver_metal.mm:771 - Metal does not support LOD bias for samplers.
Does it means I can’t use LOD on Mac OS ?
W 0:00:00:477 sampler_create: Metal does not support LOD bias for samplers.
<C++ Source> drivers/metal/rendering_device_driver_metal.mm:771 @ sampler_create()
desc.compareFunction = COMPARE_OPERATORS[p_state.compare_op];
desc.lodMinClamp = p_state.min_lod;
desc.lodMaxClamp = p_state.max_lod;
desc.borderColor = SAMPLER_BORDER_COLORS[p_state.border_color];
desc.normalizedCoordinates = !p_state.unnormalized_uvw;
if (p_state.lod_bias != 0.0) {
WARN_PRINT_ONCE("Metal does not support LOD bias for samplers.");
}
id<MTLSamplerState> obj = [device newSamplerStateWithDescriptor:desc];
ERR_FAIL_NULL_V_MSG(obj, SamplerID(), "newSamplerStateWithDescriptor failed");
return rid::make(obj);
}
void RenderingDeviceDriverMetal::sampler_free(SamplerID p_sampler) {
rid::release(p_sampler);
}
Doing some googling Apple seems to have added Lodbias in the iOS 26 release back in September, just about a month ago.
I took a peak on github issues and dont see anything. I think you could probably get them to implement it if you create an issue.
But since its just a warning it might work automatically? Although i would think the metal api would need to utilized for the new functionality.
1 Like
I’m not sure if this be a metal 4 and Godot use currently 3.2
Bigger thing could be MetalFX Frame Interpolation , which would make experience closer to NVIDIA