mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
renderer/metal: fix warnings compiling metal shader
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
#include <metal_stdlib>
|
||||||
|
|
||||||
using namespace metal;
|
using namespace metal;
|
||||||
|
|
||||||
struct Uniforms {
|
struct Uniforms {
|
||||||
@ -291,6 +293,7 @@ fragment float4 cell_text_fragment(CellTextVertexOut in [[stage_in]],
|
|||||||
constexpr sampler textureSampler(address::clamp_to_edge, filter::linear);
|
constexpr sampler textureSampler(address::clamp_to_edge, filter::linear);
|
||||||
|
|
||||||
switch (in.mode) {
|
switch (in.mode) {
|
||||||
|
default:
|
||||||
case MODE_TEXT_CURSOR:
|
case MODE_TEXT_CURSOR:
|
||||||
case MODE_TEXT_CONSTRAINED:
|
case MODE_TEXT_CONSTRAINED:
|
||||||
case MODE_TEXT_POWERLINE:
|
case MODE_TEXT_POWERLINE:
|
||||||
|
Reference in New Issue
Block a user