From d84f4582c0caa656e7d0ca0e619651f8b4e5ed16 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 7 Jan 2021 13:16:18 -0800 Subject: Add a -capability command-line option (#1651) This provides a stand-alone option distinct from `-profile` that can be used to add capabilities to a target. A test has been added to confirm that `-profile X -capability Y` works the same as `-profile X+Y`. The intention is that this option could be used in applications that use the API to set up their target but then use the options-parsing logic to handle things like capabilities. Note: that latter bit has not been confirmed, so it is possible that this approach does not actually suffice for hybrid API + options usage. That will need to be confirmed in follow-up work. --- tests/vkray/callable-caller.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/vkray/callable-caller.slang b/tests/vkray/callable-caller.slang index 93d9dd3cb..64311988a 100644 --- a/tests/vkray/callable-caller.slang +++ b/tests/vkray/callable-caller.slang @@ -1,6 +1,6 @@ // callable-caller.slang -//TEST:CROSS_COMPILE: -profile glsl_460+GL_NV_ray_tracing -stage raygeneration -entry main -target spirv-assembly +//TEST:CROSS_COMPILE: -profile glsl_460 -capability GL_NV_ray_tracing -stage raygeneration -entry main -target spirv-assembly import callable_shared; -- cgit v1.2.3