From f1221b80c3c5f59ed533147825ea414bef5e9df2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 30 Apr 2024 09:57:54 -0700 Subject: Metal: Vertex/Fragment builtin and layouts. (#4044) * Metal: Vertex/Fragment builtin and layouts. * Fix. * Fix test. * Emit user semantic on vertex/fragment attributes. --- source/slang/slang.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 971d6056f..4a446a351 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -6445,6 +6445,9 @@ SlangResult EndToEndCompileRequest::isParameterLocationUsed(Int entryPointIndex, if (SLANG_FAILED(_getEntryPointResult(this, static_cast(entryPointIndex), static_cast(targetIndex), artifact))) return SLANG_E_INVALID_ARG; + if (!artifact) + return SLANG_E_NOT_AVAILABLE; + // Find a rep auto metadata = findAssociatedRepresentation(artifact); if (!metadata) -- cgit v1.2.3