diff options
Diffstat (limited to 'tests/spirv')
| -rw-r--r-- | tests/spirv/direct-spirv-compute-simple.slang | 4 | ||||
| -rw-r--r-- | tests/spirv/direct-spirv-control-flow-2.slang | 4 | ||||
| -rw-r--r-- | tests/spirv/direct-spirv-control-flow.slang | 2 | ||||
| -rw-r--r-- | tests/spirv/direct-spirv-emit.slang.expected | 35 |
4 files changed, 26 insertions, 19 deletions
diff --git a/tests/spirv/direct-spirv-compute-simple.slang b/tests/spirv/direct-spirv-compute-simple.slang index 2fa2798e5..4c33d8a72 100644 --- a/tests/spirv/direct-spirv-compute-simple.slang +++ b/tests/spirv/direct-spirv-compute-simple.slang @@ -1,6 +1,6 @@ // direct-spirv-compute-simple.slang -//TESTD:SIMPLE:-target spirv -entry computeMain -stage compute -emit-spirv-directly -//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -emit-spirv-directly +//TESTD:SIMPLE:-target spirv -entry computeMain -stage compute +//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute // Test runinng a shader generated from direct SPIR-V emit. diff --git a/tests/spirv/direct-spirv-control-flow-2.slang b/tests/spirv/direct-spirv-control-flow-2.slang index 7dd829bda..697125500 100644 --- a/tests/spirv/direct-spirv-control-flow-2.slang +++ b/tests/spirv/direct-spirv-control-flow-2.slang @@ -1,7 +1,7 @@ // direct-spirv-control-flow-2.slang -//TESTD:SIMPLE:-target spirv -entry computeMain -stage compute -emit-spirv-directly -//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -output-using-type -emit-spirv-directly +//TESTD:SIMPLE:-target spirv -entry computeMain -stage compute +//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -output-using-type // Test direct SPIR-V emit on control flows. diff --git a/tests/spirv/direct-spirv-control-flow.slang b/tests/spirv/direct-spirv-control-flow.slang index 10bee2522..744519438 100644 --- a/tests/spirv/direct-spirv-control-flow.slang +++ b/tests/spirv/direct-spirv-control-flow.slang @@ -1,6 +1,6 @@ // direct-spirv-control-flow.slang -//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -emit-spirv-directly +//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute // Test direct SPIRV emit on control fl. diff --git a/tests/spirv/direct-spirv-emit.slang.expected b/tests/spirv/direct-spirv-emit.slang.expected index aff2198be..55cc718a8 100644 --- a/tests/spirv/direct-spirv-emit.slang.expected +++ b/tests/spirv/direct-spirv-emit.slang.expected @@ -2,19 +2,26 @@ result code = 0 standard error = { } standard output = { -// Module Version 10500 -// Generated by (magic number): 0 -// Id's are bound by 5 +; SPIR-V +; Version: 1.5 +; Generator: Khronos; 0 +; Bound: 5 +; Schema: 0 + OpCapability Shader + OpMemoryModel Logical GLSL450 + OpEntryPoint GLCompute %computeMain "computeMain" + OpExecutionMode %computeMain LocalSize 4 1 1 - Capability Shader - MemoryModel Logical GLSL450 - EntryPoint GLCompute 2 "computeMain" - ExecutionMode 2 LocalSize 4 1 1 - Name 2 "computeMain" - 1: TypeVoid - 3: TypeFunction 1 - 2(computeMain): 1 Function None 3 - 4: Label - Return - FunctionEnd + ; Debug Information + OpName %computeMain "computeMain" ; id %2 + + ; Types, variables and constants + %void = OpTypeVoid + %3 = OpTypeFunction %void + + ; Function computeMain +%computeMain = OpFunction %void None %3 + %4 = OpLabel + OpReturn + OpFunctionEnd } |
