Last updated: 2026-11-17

Vulkan Runtime

Test Policy

All API Sections

Explicit hardware-test opt-in for dedicated GPU workers.

The build enables these cases only for `-Dgpu-tests=true` or full mode. Default unit tests skip before device creation, allocation, or dispatch.

2 exports 0 methods src/gpu/test_policy.zig

2 exports shown

function

enabled

#
pub fn enabled() bool

Whether this test invocation explicitly allows GPU initialization.

src/gpu/test_policy.zig:13

function

requireGpuTests

#
pub fn requireGpuTests() error{SkipZigTest}!void

Skip a hardware test before it creates any GPU context or buffer.

src/gpu/test_policy.zig:18