Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 8be7c01

Browse files
committed
vk formats
1 parent 6929e31 commit 8be7c01

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

impeller/renderer/backend/vulkan/formats_vk.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ constexpr vk::Format ToVKImageFormat(PixelFormat format) {
150150
return vk::Format::eB8G8R8A8Srgb;
151151
case PixelFormat::kS8UInt:
152152
return vk::Format::eS8Uint;
153+
case PixelFormat::kD24UNormS8UInt:
154+
return vk::Format::eD24UnormS8Uint;
155+
case PixelFormat::kD32FloatS8UInt:
156+
return vk::Format::eD32SfloatS8Uint;
153157
case PixelFormat::kR8UNormInt:
154158
return vk::Format::eR8Unorm;
155159
case PixelFormat::kR8G8UNormInt:
@@ -179,6 +183,12 @@ constexpr PixelFormat ToPixelFormat(vk::Format format) {
179183
case vk::Format::eS8Uint:
180184
return PixelFormat::kS8UInt;
181185

186+
case vk::Format::eD24UnormS8Uint:
187+
return PixelFormat::kD24UNormS8UInt;
188+
189+
case vk::Format::eD32SfloatS8Uint:
190+
return PixelFormat::kD32FloatS8UInt;
191+
182192
case vk::Format::eR8Unorm:
183193
return PixelFormat::kR8UNormInt;
184194

0 commit comments

Comments
 (0)