Open
Description
Validation layer currently does not differentiate between different types of handles. Its all just pointers. However, there's sufficient information to track both the type of a handle and the hierarchy of handles in a UR-based application (e.g., devices belong to a platform). Implementing such tracking would allow the validation layer to tell whether correct handles are used in a call (e.g., correct pair of context and device) and whether resources are released in the correct order (i.e., all platforms belonging to an adapter are released before the adapter itself is released).
- Handle correctness and compatibility checks.
- Release order checks.