diff options
| author | yum <yum.food.vr@gmail.com> | 2025-10-11 15:05:36 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-10-11 15:05:36 -0700 |
| commit | e0f317e187aa4ccf90a3a0e77b941b46f76101c5 (patch) | |
| tree | 39592cd6b06c0c878c4ddfe90db856a722c9e8c2 /main.cc | |
| parent | d1dc6831813fcfd1a5dde4c8ab155f2c72b78695 (diff) | |
more cleanup
Diffstat (limited to 'main.cc')
| -rw-r--r-- | main.cc | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -452,29 +452,7 @@ int main(int argc, char** argv) rawOutputPath.replace_extension(".raw.hlsl"); writeTextFile(rawOutputPath, hlslSource); - // Remove [shader("dispatch")]export lines std::string finalHlsl = hlslSource; - const std::string shaderExportToken = "[shader(\"dispatch\")]export"; - std::size_t pos = 0; - while ((pos = finalHlsl.find(shaderExportToken, pos)) != std::string::npos) - { - std::size_t lineEnd = pos + shaderExportToken.size(); - // Skip optional whitespace and newline - while (lineEnd < finalHlsl.size() && - (finalHlsl[lineEnd] == ' ' || finalHlsl[lineEnd] == '\t')) - { - ++lineEnd; - } - if (lineEnd < finalHlsl.size() && finalHlsl[lineEnd] == '\r') - { - ++lineEnd; - } - if (lineEnd < finalHlsl.size() && finalHlsl[lineEnd] == '\n') - { - ++lineEnd; - } - finalHlsl.erase(pos, lineEnd - pos); - } IncludeGuardInfo includeGuard = detectIncludeGuard(modulePath); if (includeGuard.present) |
