You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NZSL/SpirvWriter.cpp
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1003,8 +1003,16 @@ namespace nzsl
1003
1003
1004
1004
std::uint32_t version = MakeSpirvVersion(m_environment.spvMajorVersion, m_environment.spvMinorVersion);
1005
1005
1006
+
// A SPIR-V Generator Magic Number is a 32 bit word: The high order 16 bits are a tool ID. The low order 16 bits are reserved for use as a tool version number, or any other purpose the tool supplier chooses.
1007
+
// version is encoded as 0MMM mmmm mppp pppp (first bit is set to zero to allow to change version format)
0 commit comments