Skip to content

ShaderModuleFormat enumeration

Format of a shader module handed to Compile.

public enum ShaderModuleFormat
name value description
Unknown 0 Not specified.
HlslSource 1 HLSL source text.
HlslBytecode 2 Compiled HLSL bytecode.
GlslSource 3 GLSL source text.
SpirV 4 SPIR-V binary.
MetalLibrary 5 Compiled Metal library.
MetalSource 6 Metal Shading Language source text.