diff options
| author | pdeayton-nv <205388607+pdeayton-nv@users.noreply.github.com> | 2025-07-08 18:26:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-09 01:26:34 +0000 |
| commit | 4f54cccf0e0e06be38312e2ee97c2b50b82d7c10 (patch) | |
| tree | 54f9191daf268cd27022f5a7404ece48a031c8e9 /source/slang | |
| parent | a64a0ac3bff2d3e9d77f5beeaee035129ed8b406 (diff) | |
Generate OpExecutionMode PointMode for tessellation shaders (#7662)
* Generate "OpExecutionMode PointMode" for tessellation shaders instead of the incorrect geometry and mesh shader specific "OpExecutionMode OutputPoints".
* Add a test case verifying the OpExecutionMode is correct.
Fixes #7660
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 7f6202a7f..28862f5b8 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -5312,6 +5312,8 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex m = SpvExecutionModeVertexOrderCw; else if (topologyType == OutputTopologyType::TriangleCCW) m = SpvExecutionModeVertexOrderCcw; + else if (topologyType == OutputTopologyType::Point) + m = SpvExecutionModePointMode; break; } } |
