summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/core/slang-type-text-util.cpp6
-rw-r--r--source/slang/slang-doc-markdown-writer.cpp6
2 files changed, 10 insertions, 2 deletions
diff --git a/source/core/slang-type-text-util.cpp b/source/core/slang-type-text-util.cpp
index c67b6ec6e..5be097d15 100644
--- a/source/core/slang-type-text-util.cpp
+++ b/source/core/slang-type-text-util.cpp
@@ -64,7 +64,7 @@ static const CompileTargetInfo s_compileTargetInfos[] =
{ SLANG_GLSL, "glsl,vert,frag,geom,tesc,tese,comp", "glsl" },
{ SLANG_GLSL_VULKAN, "", "glsl-vulkan" },
{ SLANG_GLSL_VULKAN_ONE_DESC, "", "glsl-vulkan-one-desc" },
- { SLANG_SPIRV, "spv", "spirv" },
+ { SLANG_SPIRV, "spv", "spirv"},
{ SLANG_SPIRV_ASM, "spv.asm", "spirv-asm,spirv-assembly" },
{ SLANG_C_SOURCE, "c", "c" },
{ SLANG_CPP_SOURCE, "cpp,c++,cxx", "cpp,c++,cxx" },
@@ -72,7 +72,9 @@ static const CompileTargetInfo s_compileTargetInfos[] =
{ SLANG_SHARED_LIBRARY, "dll,so", "sharedlib,sharedlibrary,dll" },
{ SLANG_CUDA_SOURCE, "cu", "cuda,cu" },
{ SLANG_PTX, "ptx", "ptx" },
- { SLANG_HOST_CALLABLE, "", "host-callable,callable" }
+ { SLANG_HOST_CALLABLE, "", "host-callable,callable" },
+ { SLANG_OBJECT_CODE, "obj,o", "object-code" },
+
};
struct ArchiveTypeInfo
diff --git a/source/slang/slang-doc-markdown-writer.cpp b/source/slang/slang-doc-markdown-writer.cpp
index c2bc05dbb..2a1226bb7 100644
--- a/source/slang/slang-doc-markdown-writer.cpp
+++ b/source/slang/slang-doc-markdown-writer.cpp
@@ -422,6 +422,11 @@ static DocMarkdownWriter::Requirement _getRequirementFromTargetToken(const Token
}
auto targetName = tok.getContent();
+ if (targetName == "spirv_direct")
+ {
+ return Requirement{CodeGenTarget::SPIRV, UnownedStringSlice("")};
+ }
+
const CapabilityAtom targetCap = findCapabilityAtom(targetName);
if (targetCap == CapabilityAtom::Invalid)
@@ -543,6 +548,7 @@ void DocMarkdownWriter::_writeTargetRequirements(const Requirement* reqs, Index
// Okay we need the name of the CodeGen target
UnownedStringSlice name = TypeTextUtil::getCompileTargetName(SlangCompileTarget(reqs->target));
+
out << toSlice("**") << String(name).toUpper() << toSlice("**");
if (!(reqsCount == 1 && reqs[0].value.getLength() == 0))