From 4f54cccf0e0e06be38312e2ee97c2b50b82d7c10 Mon Sep 17 00:00:00 2001 From: pdeayton-nv <205388607+pdeayton-nv@users.noreply.github.com> Date: Tue, 8 Jul 2025 18:26:34 -0700 Subject: 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 --- source/slang/slang-emit-spirv.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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; } } -- cgit v1.2.3