slangpy
Advanced tools
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
+2
-2
| Metadata-Version: 2.4 | ||
| Name: slangpy | ||
| Version: 0.38.0 | ||
| Version: 0.38.1 | ||
| Summary: Easily call Slang functions and integrate with PyTorch auto diff directly from Python. | ||
@@ -104,5 +104,5 @@ Author-email: Simon Kallweit <skallweit@nvidia.com>, Chris Cummings <chriscummings@nvidia.com>, Benedikt Bitterli <bbitterli@nvidia.com>, Sai Bangaru <sbangaru@nvidia.com>, Yong He <yhe@nvidia.com> | ||
| note = {https://github.com/shader-slang/slangpy}, | ||
| version = {0.38.0}, | ||
| version = {0.38.1}, | ||
| year = 2025 | ||
| } | ||
| ``` |
+17
-17
| slangpy/__init__.py,sha256=PsbtOD5NRRgDcN2C7SbPnePNpAzce326xQM9tZhBT9M,1948 | ||
| slangpy/__init__.pyi,sha256=hdJCkGxZ44CBGW7CBAI4UP0jTjlJxOJfIXK1B4b2itU,201693 | ||
| slangpy/libsgl.dylib,sha256=8ap9DUmUF91-xo_l1us9BlvVZgSJ0hGmWjypa41WRV8,8447232 | ||
| slangpy/libslang-compiler.0.2025.21.dylib,sha256=ESIcIVVl-5DOWk3oDetBJGAZGHH80LT3sKv9AIu-3vU,19952128 | ||
| slangpy/libslang-glsl-module-2025.21.dylib,sha256=J-oK3qy9Y7RSkxQYxXzueDKdct61fDO8PQEBSfBYjtw,1423296 | ||
| slangpy/libslang-glslang-2025.21.dylib,sha256=uipHT1pgF9Y7P9Dy6EyR4gTvPq1Hm-8mxhGx0qVurNc,8067248 | ||
| slangpy/libslang-rhi.a,sha256=9-9Snfg6ElYdssheypMNRCbSnppeytQcaEU-GxcHofE,74025760 | ||
| slangpy/slangpy_ext.cpython-310-darwin.so,sha256=64OfxaMq_Foujaucg7HkjLzmV3M9MHYTYyS9KtAN6GA,6728464 | ||
| slangpy/__init__.pyi,sha256=I5ETsY_ME9IIwFXxFAwCkBkEUr--aBVBpwOdVn1w26k,201730 | ||
| slangpy/libsgl.dylib,sha256=zTsljt2rm59l9iaFeLp8RVAP0xxmOTjP0KBujzDughk,8446688 | ||
| slangpy/libslang-compiler.0.2025.21.2.dylib,sha256=Rj34xxP1n1Yqkw662zWlWsLpTbHQxu9Ek1WTgmmO3HY,19394240 | ||
| slangpy/libslang-glsl-module-2025.21.2.dylib,sha256=lDECXBGszq28SwqLvyDroiDWxZdqM3tmmFzK_UFNefY,1243440 | ||
| slangpy/libslang-glslang-2025.21.2.dylib,sha256=A0zDRm2BlymygGR1EfzvPjwjORu2RhnMMeVwMRtiPiQ,8085520 | ||
| slangpy/libslang-rhi.a,sha256=5UqCcr0yGWEORpy-nQAkf42h0n0raGFrSYKqS6GkjNA,74008776 | ||
| slangpy/slangpy_ext.cpython-310-darwin.so,sha256=JkwmrvZOLMvkzY4uBE0WwRYHQLsnfCKsI2svs720ifc,6729568 | ||
| slangpy/benchmarks/conftest.py,sha256=rAYyblUkfrklcEe_TbJ0UuSAzQ8b0pmAbrWG2_s1nrg,438 | ||
@@ -105,6 +105,6 @@ slangpy/benchmarks/test_benchmark_interop.py,sha256=7xkivr7F1sD7_VRUVivVy125whirpZkbuttauURqgDw,15467 | ||
| slangpy/include/slang-rhi-config.h,sha256=ohwkpTGf_x9M0msi11rP5Kebjo-CDTNAgDdDaS1s74A,493 | ||
| slangpy/include/slang-rhi.h,sha256=Q3T_5acDM7mgYRYaNS3McqOqV8aQ0z6yItO54Uu8oyk,107429 | ||
| slangpy/include/slang-rhi.h,sha256=ifpsMWVpCG89RsxDlkjIzCt4clDqH5WBAq--bMdJoHc,107529 | ||
| slangpy/include/slang-user-config.h,sha256=-DTfKSDXKnCWR_NU6n96RYbQyYmM5ms2IFQH8UWNn7Y,151 | ||
| slangpy/include/slang.h,sha256=tRIX8LBuy5aqmrqSR8exmEjzgm1yCGytsCwhLDeEjxM,179110 | ||
| slangpy/include/sgl/sgl.h,sha256=7rBjNzv2tw158kNaGuEse7FFv7v5ghgKWftQbKL0JUI,610 | ||
| slangpy/include/slang.h,sha256=IotUlCexMCX5FJiIRaa4T-158K6zr5v4woXASteAtKM,178924 | ||
| slangpy/include/sgl/sgl.h,sha256=Ps2T2z5SFoFieb2Jla5vzvck6iDTgmFRa19gtTKTlgc,610 | ||
| slangpy/include/sgl/sgl_pch.h,sha256=SD1ALBpwwkcMlCnU_V8nHdSvS6-NZIXZOv5Rd6_r5z8,131 | ||
@@ -181,3 +181,3 @@ slangpy/include/sgl/app/app.h,sha256=tyvkNXNrsvsYWL98uSxVKcYesdiJ2ZRqdwJpfw9dbwA,2809 | ||
| slangpy/include/sgl/device/surface.h,sha256=hyd2Q82rXpqOG4KW0UXW5Yfma2rLJALsirR5AfhAfR4,1863 | ||
| slangpy/include/sgl/device/types.h,sha256=Uc3a3lLT9yYKxGSBsl1PDYUpSsIsl4e33DnBWaqmdU8,30147 | ||
| slangpy/include/sgl/device/types.h,sha256=pE08BFCkvXXL3KjAURIaumJ3J-AEtYDtuwucO9ny_cI,30312 | ||
| slangpy/include/sgl/math/colorspace.h,sha256=y6wpMYWhuOa2KNKC99J-b0d1dvupLvpnPNtVH5eXwP8,1715 | ||
@@ -385,3 +385,3 @@ slangpy/include/sgl/math/constants.h,sha256=yDkfoAxmNN9zJM70zp-4w_cTscHoU8t-UT2yFxiZklA,285 | ||
| slangpy/torchintegration/autogradhook.py,sha256=B30g2QqHsIPLwbE2-oLITrLuvVjWjtW8mRHXvCkiJFY,7238 | ||
| slangpy/torchintegration/torchtensormarshall.py,sha256=_mC815l6xyMmBkqG9zukirdhMRDZ3u0CNfQIYjrahr4,10282 | ||
| slangpy/torchintegration/torchtensormarshall.py,sha256=auw9c3crsD089tjWpsIlUBAqdjH02GDRuR312-mS8tY,9830 | ||
| slangpy/types/__init__.py,sha256=fmSHX1CNHOdyiFQ6Q2QVsTHghJiADss_Wf9Y23SruNU,731 | ||
@@ -399,6 +399,6 @@ slangpy/types/buffer.py,sha256=4OAvobmJrlSSTt819FS_1vVcgo3WGCRO4RonIb4k5jU,16531 | ||
| slangpy/ui/__init__.pyi,sha256=ufVijkyyxsGtuXbi8_L8uqzRopz0UAl3Wj2W80GRKng,30471 | ||
| slangpy-0.38.0.dist-info/licenses/LICENSE,sha256=tzjZi3clQUtTTBGaxmEmh2uMvUCqiuSCENsZBxS4FnA,1490 | ||
| slangpy-0.38.0.dist-info/METADATA,sha256=D24xMXdBPXHEmC2RJxDvBie7qhMqokwZ2GMZlqJcWlw,4389 | ||
| slangpy-0.38.0.dist-info/WHEEL,sha256=QbwVjH-TlueSdsOKSic424jsJD30r52gknYt4wXVwF0,109 | ||
| slangpy-0.38.0.dist-info/top_level.txt,sha256=Wo7_Eny8d-MI3ZHT-XHGGMEKKIK38FlAmUCz8AffxA0,8 | ||
| slangpy-0.38.0.dist-info/RECORD,, | ||
| slangpy-0.38.1.dist-info/licenses/LICENSE,sha256=tzjZi3clQUtTTBGaxmEmh2uMvUCqiuSCENsZBxS4FnA,1490 | ||
| slangpy-0.38.1.dist-info/METADATA,sha256=IIUZDf3-Z04alOzo2FcxkYsRc2KJts1hNUgfRcU7AAM,4389 | ||
| slangpy-0.38.1.dist-info/WHEEL,sha256=QbwVjH-TlueSdsOKSic424jsJD30r52gknYt4wXVwF0,109 | ||
| slangpy-0.38.1.dist-info/top_level.txt,sha256=Wo7_Eny8d-MI3ZHT-XHGGMEKKIK38FlAmUCz8AffxA0,8 | ||
| slangpy-0.38.1.dist-info/RECORD,, |
@@ -54,2 +54,3 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| sampler_feedback = static_cast<uint32_t>(rhi::Feature::SamplerFeedback), | ||
| combined_texture_sampler = static_cast<uint32_t>(rhi::Feature::CombinedTextureSampler), | ||
| // Ray tracing features | ||
@@ -126,2 +127,3 @@ acceleration_structure = static_cast<uint32_t>(rhi::Feature::AccelerationStructure), | ||
| {Feature::sampler_feedback, "sampler_feedback"}, | ||
| {Feature::combined_texture_sampler, "combined_texture_sampler"}, | ||
| {Feature::acceleration_structure, "acceleration_structure"}, | ||
@@ -128,0 +130,0 @@ {Feature::acceleration_structure_spheres, "acceleration_structure_spheres"}, |
@@ -9,3 +9,3 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| #define SGL_VERSION_MINOR 38 | ||
| #define SGL_VERSION_PATCH 0 | ||
| #define SGL_VERSION_PATCH 1 | ||
@@ -12,0 +12,0 @@ #define SGL_VERSION \ |
@@ -125,2 +125,4 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| # For CUDA tensors, the C++ fast path handles marshalling directly | ||
| # This Python method is only used for non-CUDA device interop | ||
| if context.device.info.type != DeviceType.cuda: | ||
@@ -165,24 +167,10 @@ | ||
| ) | ||
| return result | ||
| else: | ||
| primal_calldata = { | ||
| "buffer": primal.data_ptr(), | ||
| "layout": {"offset": 0, "strides": strides}, | ||
| "_shape": shape, | ||
| } | ||
| # CUDA tensors are handled by C++ fast path - this should not be reached | ||
| raise RuntimeError( | ||
| "CUDA tensors should be handled by C++ fast path, not Python marshalling" | ||
| ) | ||
| if not self.d_in and not self.d_out: | ||
| return primal_calldata | ||
| result = {"primal": primal_calldata} | ||
| if self.d_in is not None: | ||
| if data.grad_in is None: | ||
| raise ValueError("Missing required input gradients") | ||
| result["d_in"] = self.d_in.create_calldata(context, binding, data.grad_in) | ||
| if self.d_out is not None: | ||
| if data.grad_out is None: | ||
| raise ValueError("Missing tensor to hold output gradients") | ||
| result["d_out"] = self.d_out.create_calldata(context, binding, data.grad_out) | ||
| return result | ||
| def read_calldata( | ||
@@ -189,0 +177,0 @@ self, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.