fixing physical device format checks
Build / build (push) Successful in 1m48s
Test / build_and_test (push) Successful in 26m14s

This commit is contained in:
2026-04-24 15:50:10 +02:00
parent 5fc7d561fc
commit 79e0bf483c
3 changed files with 128 additions and 11 deletions
+8
View File
@@ -92,6 +92,14 @@ pub inline fn isDepthAndStencil(format: vk.Format) bool {
return lib.vku.vkuFormatIsDepthAndStencil(@intCast(@intFromEnum(format)));
}
pub inline fn isDepth(format: vk.Format) bool {
return lib.vku.vkuFormatHasDepth(@intCast(@intFromEnum(format)));
}
pub inline fn isStencil(format: vk.Format) bool {
return lib.vku.vkuFormatHasStencil(@intCast(@intFromEnum(format)));
}
pub inline fn isSrgb(format: vk.Format) bool {
return lib.vku.vkuFormatIsSRGB(@intCast(@intFromEnum(format)));
}