Skip to content

Commit ee664f2

Browse files
Update src/runtime/d3d12compute.cpp
Co-authored-by: Alex Reinking <alex.reinking@gmail.com>
1 parent 7563f63 commit ee664f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/d3d12compute.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1967,6 +1967,7 @@ int parse_hlsl_sm_version(const char *source) {
19671967
// Copy ASCII/narrow string to wide char buffer (safe for HLSL identifiers and integers).
19681968
// Returns the number of characters written, excluding the null terminator.
19691969
// A return value >= max_len indicates truncation.
1970+
[[nodiscard]]
19701971
int narrow_to_wide(const char *src, WCHAR *dst, int max_len) {
19711972
if (max_len <= 0) {
19721973
return 0;

0 commit comments

Comments
 (0)