diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-23 19:05:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 19:05:23 -0800 |
| commit | a1827ee5e9b8088b23db3fa688b7bd62b7bbe9ac (patch) | |
| tree | eab251421b70f2ee64a0e420e270ed6295bd2987 /tests/spirv/multi-entry-point-input-var.slang | |
| parent | 401d8cdb12ae69aeb216c80c9bb90240d8359649 (diff) | |
SPIRV Fixes. (#3622)
* Use SpvSourceLanguageSlang enum.
* Fix spirv entrypoint interface.
* Cleanup.
* Add error on unknown spirv opcode.
* Fix CI.
* Fix.
Diffstat (limited to 'tests/spirv/multi-entry-point-input-var.slang')
| -rw-r--r-- | tests/spirv/multi-entry-point-input-var.slang | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/spirv/multi-entry-point-input-var.slang b/tests/spirv/multi-entry-point-input-var.slang new file mode 100644 index 000000000..9475f268f --- /dev/null +++ b/tests/spirv/multi-entry-point-input-var.slang @@ -0,0 +1,13 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv -fvk-use-entrypoint-name -emit-spirv-directly + +// CHECK: OpEntryPoint + +[shader("vertex")] +float4 vmain(uint vertex_id : SV_VertexID) : SV_Position { + return float4(vertex_id, 0, 0, 1); +} + +[shader("pixel")] +float4 pmain(float4 position : SV_Position) : SV_Target { + return position; +}
\ No newline at end of file |
