diff --git a/scripts/print_hlsl_builtin.lua b/scripts/print_hlsl_builtin.lua index d6f6b0932..6688ef65e 100644 --- a/scripts/print_hlsl_builtin.lua +++ b/scripts/print_hlsl_builtin.lua @@ -5,7 +5,7 @@ local files_list = {'accel_process', 'bindless_upload', 'bc6_encode_block', 'bc6 'bc6_trymode_le10cs', 'bc7_encode_block', 'bc7_header', 'bc7_trymode_02cs', 'bc7_trymode_137cs', 'bc7_trymode_456cs', 'hlsl_header', 'raytracing_header', 'tex2d_bindless', 'tex3d_bindless', 'compute_quad', 'determinant', 'inverse', 'indirect', 'resource_size', 'accel_header', 'copy_sign', - 'bindless_common', 'auto_diff', "reduce", "coroutine"} + 'bindless_common', 'auto_diff', "reduce"} local lib = import("lib") local hlsl_builtin_path = path.join(os.projectdir(), "src/backends/common/hlsl/builtin") diff --git a/src/backends/common/hlsl/builtin/coroutine b/src/backends/common/hlsl/builtin/coroutine deleted file mode 100644 index e9cc25f62..000000000 --- a/src/backends/common/hlsl/builtin/coroutine +++ /dev/null @@ -1,9 +0,0 @@ -template -uint3 CoroId(in T frame){ -return frame.v0.v; -} - -template -uint CoroToken(in T frame){ -return frame.v1; -} \ No newline at end of file diff --git a/src/backends/common/hlsl/builtin/coroutine.c b/src/backends/common/hlsl/builtin/coroutine.c deleted file mode 100644 index 6f4494609..000000000 --- a/src/backends/common/hlsl/builtin/coroutine.c +++ /dev/null @@ -1,4 +0,0 @@ -#include "hlsl_config.h" -LC_HLSL_EXTERN char coroutine[]={116,101,109,112,108,97,116,101,60,116,121,112,101,110,97,109,101,32,84,62,10,117,105,110,116,51,32,67,111,114,111,73,100,40,105,110,32,84,32,102,114,97,109,101,41,123,10,114,101,116,117,114,110,32,102,114,97,109,101,46,118,48,46,118,59,10,125,10,10,116,101,109,112,108,97,116,101,60,116,121,112,101,110,97,109,101,32,84,62,10,117,105,110,116,32,67,111,114,111,84,111,107,101,110,40,105,110,32,84,32,102,114,97,109,101,41,123,10,114,101,116,117,114,110,32,102,114,97,109,101,46,118,49,59,10,125}; -LC_HLSL_EXTERN char *get_coroutine(){return coroutine;} -LC_HLSL_EXTERN int get_coroutine_size(){return 136;} diff --git a/src/backends/common/hlsl/hlsl_codegen_util.cpp b/src/backends/common/hlsl/hlsl_codegen_util.cpp index 95757f6c7..5cba86d17 100644 --- a/src/backends/common/hlsl/hlsl_codegen_util.cpp +++ b/src/backends/common/hlsl/hlsl_codegen_util.cpp @@ -117,10 +117,6 @@ static size_t AddHeader(CallOpSet const &ops, vstd::StringBuilder &builder, bool ops.test(CallOp::MATRIX_COMPONENT_WISE_MULTIPLICATION)) { builder << CodegenUtility::ReadInternalHLSLFile("reduce"); } - if (ops.test(CallOp::CORO_ID) || - ops.test(CallOp::CORO_TOKEN)) { - builder << CodegenUtility::ReadInternalHLSLFile("coroutine"); - } return immutable_size; } }// namespace detail