This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +0
-15
lines changed Expand file tree Collapse file tree 4 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ struct TexImage2DData {
109
109
break ;
110
110
case PixelFormat::kUnknown :
111
111
case PixelFormat::kS8UInt :
112
- case PixelFormat::kD24UNormS8UInt :
113
112
case PixelFormat::kD32FloatS8UInt :
114
113
case PixelFormat::kR8UNormInt :
115
114
case PixelFormat::kR8G8UNormInt :
@@ -141,7 +140,6 @@ struct TexImage2DData {
141
140
case PixelFormat::kB8G8R8A8UNormInt :
142
141
case PixelFormat::kB8G8R8A8UNormIntSRGB :
143
142
case PixelFormat::kS8UInt :
144
- case PixelFormat::kD24UNormS8UInt :
145
143
case PixelFormat::kD32FloatS8UInt :
146
144
case PixelFormat::kR8UNormInt :
147
145
case PixelFormat::kR8G8UNormInt :
@@ -278,8 +276,6 @@ static std::optional<GLenum> ToRenderBufferFormat(PixelFormat format) {
278
276
return GL_RGBA4;
279
277
case PixelFormat::kS8UInt :
280
278
return GL_STENCIL_INDEX8;
281
- case PixelFormat::kD24UNormS8UInt :
282
- return GL_DEPTH24_STENCIL8;
283
279
case PixelFormat::kD32FloatS8UInt :
284
280
return GL_DEPTH32F_STENCIL8;
285
281
case PixelFormat::kUnknown :
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ constexpr PixelFormat FromMTLPixelFormat(MTLPixelFormat format) {
31
31
return PixelFormat::kR8G8B8A8UNormIntSRGB ;
32
32
case MTLPixelFormatStencil8:
33
33
return PixelFormat::kS8UInt ;
34
- case MTLPixelFormatDepth24Unorm_Stencil8:
35
- return PixelFormat::kD24UNormS8UInt ;
36
34
case MTLPixelFormatDepth32Float_Stencil8:
37
35
return PixelFormat::kD32FloatS8UInt ;
38
36
default :
@@ -61,8 +59,6 @@ constexpr MTLPixelFormat ToMTLPixelFormat(PixelFormat format) {
61
59
return MTLPixelFormatRGBA8Unorm_sRGB;
62
60
case PixelFormat::kS8UInt :
63
61
return MTLPixelFormatStencil8;
64
- case PixelFormat::kD24UNormS8UInt :
65
- return MTLPixelFormatDepth24Unorm_Stencil8;
66
62
case PixelFormat::kD32FloatS8UInt :
67
63
return MTLPixelFormatDepth32Float_Stencil8;
68
64
}
Original file line number Diff line number Diff line change @@ -150,8 +150,6 @@ constexpr vk::Format ToVKImageFormat(PixelFormat format) {
150
150
return vk::Format::eB8G8R8A8Srgb;
151
151
case PixelFormat::kS8UInt :
152
152
return vk::Format::eS8Uint;
153
- case PixelFormat::kD24UNormS8UInt :
154
- return vk::Format::eD24UnormS8Uint;
155
153
case PixelFormat::kD32FloatS8UInt :
156
154
return vk::Format::eD32SfloatS8Uint;
157
155
case PixelFormat::kR8UNormInt :
@@ -183,9 +181,6 @@ constexpr PixelFormat ToPixelFormat(vk::Format format) {
183
181
case vk::Format::eS8Uint:
184
182
return PixelFormat::kS8UInt ;
185
183
186
- case vk::Format::eD24UnormS8Uint:
187
- return PixelFormat::kD24UNormS8UInt ;
188
-
189
184
case vk::Format::eD32SfloatS8Uint:
190
185
return PixelFormat::kD32FloatS8UInt ;
191
186
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ enum class PixelFormat {
90
90
91
91
// Depth and stencil formats.
92
92
kS8UInt ,
93
- kD24UNormS8UInt ,
94
93
kD32FloatS8UInt ,
95
94
96
95
// Defaults. If you don't know which ones to use, these are usually a safe
@@ -288,7 +287,6 @@ constexpr size_t BytesPerPixelForPixelFormat(PixelFormat format) {
288
287
case PixelFormat::kR8G8B8A8UNormIntSRGB :
289
288
case PixelFormat::kB8G8R8A8UNormInt :
290
289
case PixelFormat::kB8G8R8A8UNormIntSRGB :
291
- case PixelFormat::kD24UNormS8UInt :
292
290
return 4u ;
293
291
case PixelFormat::kD32FloatS8UInt :
294
292
return 5u ;
You can’t perform that action at this time.
0 commit comments