diff --git a/include/luisa/core/dll_export.h b/include/luisa/core/dll_export.h index 5274ee8be..3a59d3778 100644 --- a/include/luisa/core/dll_export.h +++ b/include/luisa/core/dll_export.h @@ -64,7 +64,6 @@ #define LC_TENSOR_API __declspec(dllimport) #endif - #ifdef LC_OSL_EXPORT_DLL #define LC_OSL_API __declspec(dllexport) #else @@ -101,6 +100,7 @@ #define LC_AST_API #define LC_RUNTIME_API #define LC_DSL_API +#define LC_TENSOR_API #define LC_OSL_API #define LC_IR_API #define LC_SERDE_LIB_API diff --git a/include/luisa/tensor/tensor.h b/include/luisa/tensor/tensor.h index 6b6444066..936c6e270 100644 --- a/include/luisa/tensor/tensor.h +++ b/include/luisa/tensor/tensor.h @@ -1,4 +1,5 @@ #pragma +#include #include #include namespace luisa::compute::tensor { diff --git a/src/py/CMakeLists.txt b/src/py/CMakeLists.txt index e2e3d56d4..d9877bda7 100644 --- a/src/py/CMakeLists.txt +++ b/src/py/CMakeLists.txt @@ -24,7 +24,6 @@ if (WIN32 AND CMAKE_CXX_COMPILER_ID MATCHES "GNU") target_compile_options(lcapi PRIVATE -Wa,-mbig-obj) endif () target_link_libraries(lcapi PRIVATE luisa::compute) - target_precompile_headers(lcapi PRIVATE pch.h) install(DIRECTORY luisa diff --git a/src/tests/test_binding_group.cpp b/src/tests/test_binding_group.cpp index 102dff18e..c0c4f883e 100644 --- a/src/tests/test_binding_group.cpp +++ b/src/tests/test_binding_group.cpp @@ -38,7 +38,7 @@ LUISA_BINDING_GROUP_TEMPLATE(TEMPLATE_T, TArgumentsView, image, resolution) { }; LUISA_BINDING_GROUP_TEMPLATE(TEMPLATE_T, TNestedArguments, args, image) { void blit(const UInt2 &coord) noexcept { - auto color = args.image.read(coord).xyz(); + auto color = this->args.image.read(coord).xyz(); this->image->write(coord, make_float4(1.f - color, 1.f)); } }; diff --git a/src/vstl/CMakeLists.txt b/src/vstl/CMakeLists.txt index b84a63590..070a55291 100644 --- a/src/vstl/CMakeLists.txt +++ b/src/vstl/CMakeLists.txt @@ -25,4 +25,4 @@ else () endif () luisa_compute_install(vstl SOURCES ${LUISA_COMPUTE_VSTL_SOURCES}) -target_precompile_headers(luisa-compute-vstl PRIVATE pch.h) \ No newline at end of file +target_precompile_headers(luisa-compute-vstl PRIVATE pch.h)