diff options
| author | d7ommy <abnalstlll@gmail.com> | 2026-11-25 21:29:28 +0300 |
|---|---|---|
| committer | d7ommy <abnalstlll@gmail.com> | 2026-11-25 21:29:28 +0300 |
| commit | 065df3d8b2468fb27cd4f388232bff19d8803b7d (patch) | |
| tree | 9e2a5c9fd2ba1690bedc7d1158ace21401ac32d7 /runtime/test/vk_queue_constructor_oom_test.cpp | |
| parent | b9320a118d46b24de665e30e577425c131b4a2ee (diff) | |
runtime: guard align_up_saturating against zero alignment and add unit tests (RT-XS-ALLOC-SIZE-GUARDS-AND-TESTS)
Guard align_up_saturating against zero alignment (to == 0) in runtime/shims/d3d12_xs_alloc_size.h, avoiding division by zero and underflow.
Add standalone CPU-only unit test runtime/test/d3d12_xs_alloc_size_test.cpp covering align_up_saturating, render_target_element_bytes, console_depth_planes, console_render_target_size, console_depth_stencil_size, and console_placement.
Register test executable and CTest in runtime/CMakeLists.txt.
AI-assisted (Claude Code)
Diffstat (limited to 'runtime/test/vk_queue_constructor_oom_test.cpp')
0 files changed, 0 insertions, 0 deletions