07bf1bd87b5f837424762089386a5e7903fe7d25
Use MTLPatchShaderSource to provide the patch basis shader source on all Apple platforms. The immediate advantage of this change is ability to use GPU subdivision on iOS. Another advantage is that it moves us further away from frameworks which got deprecated by Apple and it might save us some headache in the future. Also tweak backend-specific defines to match definitions from OpenSubdiv. The annoying difference is that OSD_PATCH_BASIS_METAL is defined by the OpenSubdiv as 1 in the very beginning of the base code, which is not done for the OSD_PATCH_BASIS_GLSL is not defined by the OpenSubdiv at all. Ref #143445 --- TODO: - [X] Check it works correctly on macOS - [x] Check it works correctly on Linux Pull Request: https://projects.blender.org/blender/blender/pulls/143462
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
