File tree 2 files changed +0
-12
lines changed
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ constexpr PixelFormat FromMTLPixelFormat(MTLPixelFormat format) {
25
25
return PixelFormat::kB8G8R8A8UNormInt ;
26
26
case MTLPixelFormatBGRA8Unorm_sRGB:
27
27
return PixelFormat::kB8G8R8A8UNormIntSRGB ;
28
- case MTLPixelFormatDepth32Float_Stencil8:
29
- return PixelFormat::kD32FloatS8UNormInt ;
30
28
case MTLPixelFormatRGBA8Unorm:
31
29
return PixelFormat::kR8G8B8A8UNormInt ;
32
30
case MTLPixelFormatStencil8:
@@ -47,8 +45,6 @@ constexpr MTLPixelFormat ToMTLPixelFormat(PixelFormat format) {
47
45
return MTLPixelFormatBGRA8Unorm;
48
46
case PixelFormat::kB8G8R8A8UNormIntSRGB :
49
47
return MTLPixelFormatBGRA8Unorm_sRGB;
50
- case PixelFormat::kD32FloatS8UNormInt :
51
- return MTLPixelFormatDepth32Float_Stencil8;
52
48
case PixelFormat::kR8G8B8A8UNormInt :
53
49
return MTLPixelFormatRGBA8Unorm;
54
50
case PixelFormat::kS8UInt :
Original file line number Diff line number Diff line change @@ -52,9 +52,6 @@ enum class PixelFormat {
52
52
kB8G8R8A8UNormIntSRGB ,
53
53
kS8UInt ,
54
54
55
- // Esoteric formats only used as render targets.
56
- kD32FloatS8UNormInt ,
57
-
58
55
// Defaults. If you don't know which ones to use, these are usually a safe
59
56
// bet.
60
57
//
@@ -183,11 +180,6 @@ constexpr size_t BytesPerPixelForPixelFormat(PixelFormat format) {
183
180
case PixelFormat::kB8G8R8A8UNormInt :
184
181
case PixelFormat::kB8G8R8A8UNormIntSRGB :
185
182
return 4u ;
186
- case PixelFormat::kD32FloatS8UNormInt :
187
- // This is an esoteric format and implementations may use 64 bits.
188
- // Impeller doesn't work with these natively and this return is only here
189
- // for completeness. The 40 bits is as documented.
190
- return 5u ;
191
183
}
192
184
return 0u ;
193
185
}
You can’t perform that action at this time.
0 commit comments