Skip to content

Commit 4b21ec4

Browse files
committed
dxc: Add all SPIR-V target versions
All supported SPIR-V target versions as of https://github.com/microsoft/DirectXShaderCompiler/blob/76fed39c368cf65167e6db00738b212dac024b49/tools/clang/lib/SPIRV/FeatureManager.cpp#L49-L61. It is currently impossible to pass these as `-fspv-target-env=vulkan1.2` (for example) since [the regex] for extra arguments doesn't seem to allow a literal period (`.`). [the regex]: https://github.com/tgjones/shader-playground/blob/3e11f35ce0a61d2dab67a1299363b11d5f1d752f/src/ShaderPlayground.Core/ShaderCompilerArguments.cs#L10
1 parent 617a3a4 commit 4b21ec4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ShaderPlayground.Core/Compilers/Dxc/DxcCompiler.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ internal sealed class DxcCompiler : IShaderCompiler
9797
private static readonly string[] SpirvTargetOptions =
9898
{
9999
"vulkan1.0",
100-
"vulkan1.1"
100+
"vulkan1.1",
101+
"vulkan1.1spirv1.4",
102+
"vulkan1.2",
103+
"vulkan1.3",
104+
"universal1.5",
101105
};
102106

103107
private static readonly string[] Enable16BitTypesFilters =

0 commit comments

Comments
 (0)