Tests for VK_NV_compute_shader_derivatives
This extension enables using derivatives (and related operations) in compute shaders, it also provides a way to specify the layout of a "quad" in a subgroup.
Two new test files:
-
compute-derivative.c
has tests for the various derivative group modes. -
compute-subgroup-quad.c
has tests for the swap vertical operation, depending on layout chosen the results are different.
Three new improvements to crucible:
-
run_simple_compute_pipeline()
, helper for typical compute tests. - Allow to specify
api_version
in the test definiton. Use that version when creating the VkInstance. - Allow to specify the
--target-env
to be used via theQO_TARGET_ENV
macro in the shader snippets. This let us set it tovulkan-1.1
for example.
The two latter improvements were needed for the subgroup test.
Edited by Caio Oliveira