OpenShadingLanguage icon indicating copy to clipboard operation
OpenShadingLanguage copied to clipboard

Advanced shading language for production GI renderers

Results 103 OpenShadingLanguage issues
Sort by recently updated
recently updated
newest added

### Problem In OSL on 3ds Max (Windows), compiling attached shader and running it crashes. The crash is in LLVM. **Expected behavior:** It should compile and work fine. If you...

Failed to build ### Problem ```console [ 19%] Building CXX object src/liboslexec/CMakeFiles/oslexec.dir/__/liboslcomp/oslcomp.cpp.o cd ....../OpenShadingLanguage/build/src/liboslexec && ccache /usr/bin/c++ -DCUDA_TARGET_ARCH=\"sm_75\" -DOIIO_HIDE_FORMAT=1 -DOSL_CUDA_VERSION=\"\" -DOSL_EXPORTS -DOSL_FAST_MATH=1 -DOSL_INTERNAL=1 -DOSL_LLVM_FULL_VERSION=\"15.0.0git\" -DOSL_LLVM_VERSION=150 -DOSL_OPTIX_VERSION=\"\" -DUSE_PARTIO=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Doslexec_EXPORTS...

### Problem The custom command to serialize the bitcode for liboslexec fails if the `Python_EXECUTABLE` CMake variable is not set. This is due to a slight change in the invocation...

https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/blob/a056e181c216b8124048bf1c7a2408bcbef44cf2/src/liboslexec/llvm_util.cpp#L48 https://github.com/llvm/llvm-project/commit/89b57061f7b769e9ea9bf6ed686e284f3e55affe > Move TargetRegistry.(h|cpp) from Support to MC

There is some assumption Partio uses size_t for its index type: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/blob/7e34ce27c7f759b40333a99cf26860f99c9ba2dd/src/liboslexec/pointcloud.cpp#L360-L365 which is apparently wrong (for the last 12 years): https://github.com/wdas/partio/blob/7cb3743c6e19c04ac049c05f8f81af2f24410ea3/src/lib/Partio.h#L55 `typedef uint64_t ParticleIndex;` On 32 bit archs the...

## Description This PR changes how CMake searches for LLVM. Rather then having a custom FindLLVM setup, it is possible to rely on importable targets setup by the LLVM project....

This patch ties in with an OIIO patch: [Add get_texture_info_type to query TypeDesc..](https://github.com/OpenImageIO/oiio/pull/3207). It extends the gettextureinfo call with an extra int output parameter, output int param_array_len; ```c++ int gettextureinfo(string...

This is a stepping stone to "shader globals placement". Turns out that there were only two functions in llvm_ops.cpp that directly needed to know the layout of the ShaderGlobals struct:...

Add them now. Also, an additional variety that takes a vector offset in a non-common space. There's no good reason why these were never implemented. I think that people just...

## Description Ads ability to invoke and define functions with an implicit **this** argument for both structs and vector types. ``` struct A { int val; int testA(int i) {...