adding command buffer pool logic

This commit is contained in:
2025-11-15 21:29:08 +01:00
parent fbdce598e3
commit 027bd2ce1c
8 changed files with 65 additions and 33 deletions

View File

@@ -36,16 +36,16 @@ pub fn NonDispatchable(comptime T: type) type {
if (handle == 0) {
return VkError.Unknown;
}
const nondispatchable: *Self = @ptrFromInt(handle);
if (nondispatchable.object_type != T.ObjectType) {
const non_dispatchable: *Self = @ptrFromInt(handle);
if (non_dispatchable.object_type != T.ObjectType) {
return VkError.Unknown;
}
return nondispatchable;
return non_dispatchable;
}
pub inline fn fromHandleObject(handle: anytype) VkError!*T {
const nondispatchable_handle = try Self.fromHandle(handle);
return nondispatchable_handle.object;
const non_dispatchable_handle = try Self.fromHandle(handle);
return non_dispatchable_handle.object;
}
};
}