renderer/metal: fix warnings compiling metal shader

pull/2056/head
Mitchell Hashimoto 2024-08-06 10:43:57 -07:00
parent 389cc95394
commit e5a087e143
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#include <metal_stdlib>
using namespace metal;
struct Uniforms {
@ -291,6 +293,7 @@ fragment float4 cell_text_fragment(CellTextVertexOut in [[stage_in]],
constexpr sampler textureSampler(address::clamp_to_edge, filter::linear);
switch (in.mode) {
default:
case MODE_TEXT_CURSOR:
case MODE_TEXT_CONSTRAINED:
case MODE_TEXT_POWERLINE: