Skip to content

Commit

Permalink
Merge pull request #21 from howetuft/work
Browse files Browse the repository at this point in the history
Post11
  • Loading branch information
howetuft authored Dec 29, 2024
2 parents b57b8e9 + ad290b3 commit 70dbda4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
#python-minor: [ 12]
#os: [ubuntu-latest]
#python-minor: [ 11]
#os: [windows-latest]
exclude:
- os: macos-14
python-minor: 8
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "pyluxcore"
version = "2.9a1.post10"
version = "2.9a1.post11"
dependencies = [
"numpy >= 2; python_version > '3.8'",
"numpy < 2; python_version <= '3.8'",
Expand Down
7 changes: 5 additions & 2 deletions scripts/patch_source_tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ $SED -i 's/"luxcore\/pyluxcore\/blender_types.h"/<blender_types.h>/g' src/luxcor
echo "Oidn"
replace_anywhere \
"oidn::DeviceRef device = oidn::newDevice(oidn::DeviceType::CPU);" \
'oidn::DeviceRef device = oidn::newDevice(oidn::DeviceType::CPU);
'oidn::DeviceRef device = oidn::newDevice();
printf("%p %p %p %p ", srcBuffer, dstBuffer, albedoBuffer, normalBuffer);
const char* errorMessage2;
if (device.getError(errorMessage2) != oidn::Error::None)
throw std::runtime_error(errorMessage2);
Expand All @@ -134,7 +135,9 @@ replace_anywhere \
snippet="void errorCallback(void* userPtr, oidn::Error error, const char* message) { throw std::runtime_error(message); } "
$SED -i "37s/^/$snippet/" src/slg/film/imagepipeline/plugins/intel_oidn.cpp
replace_anywhere "vector<float> albedoBuffer;" "vector<float> albedoBuffer(3 \* pixelCount);"
replace_anywhere "vector<float> normalBuffer;" "vector<float> normalBuffer(3 \* pixelCount);"
replace_anywhere "vector<float> normalBuffer;" "vector<float> normalBuffer(3 \* pixelCount), dummy1(3 \* pixelCount), dummy2(3 \* pixelCount); "
replace_anywhere "nullptr, nullptr, width, height, false);" "\&dummy1[0], \&dummy2[0], width, height, false);"
cat src/slg/film/imagepipeline/plugins/intel_oidn.cpp # TODO


# Per platform
Expand Down

0 comments on commit 70dbda4

Please sign in to comment.