From e0f317e187aa4ccf90a3a0e77b941b46f76101c5 Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 11 Oct 2025 15:05:36 -0700 Subject: more cleanup --- main.cc | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index aa09d31..32bd7f4 100644 --- a/main.cc +++ b/main.cc @@ -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) -- cgit v1.2.3