We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7563f63 commit ee664f2Copy full SHA for ee664f2
src/runtime/d3d12compute.cpp
@@ -1967,6 +1967,7 @@ int parse_hlsl_sm_version(const char *source) {
1967
// Copy ASCII/narrow string to wide char buffer (safe for HLSL identifiers and integers).
1968
// Returns the number of characters written, excluding the null terminator.
1969
// A return value >= max_len indicates truncation.
1970
+[[nodiscard]]
1971
int narrow_to_wide(const char *src, WCHAR *dst, int max_len) {
1972
if (max_len <= 0) {
1973
return 0;
0 commit comments