Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmake/ncnn_generate_shader_comp_header.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ endif()
# remove whitespace
string(REGEX REPLACE "\n +" "\n" comp_data "${comp_data}")

# remove comments
string(REGEX REPLACE "//[^\n]*" "" comp_data "${comp_data}")

# replace more spaces to one space
string(REGEX REPLACE "[ \t]+" " " comp_data "${comp_data}")

# remove empty line
string(REGEX REPLACE "\n\n" "\n" comp_data "${comp_data}")

Expand Down
Loading