lluvia.util
- copyright:
2018, Juan David Adarve Bermudez. See AUTHORS for more details.
- license:
Apache-2 license, see LICENSE for more details.
- lluvia.util.calculateGridSize(local, imgShape)
Calculates the grid size of a compute node given its local size and an image parameter.
Parameters
- local3-int tuple.
local size of the compute node.
- imgShape4-int tuple.
Image shape in (depth, height, width, channels) format.
Returns
- grid3-int tuple.
(X, Y, Z) grid size.
- lluvia.util.loadNodes(session, glslPath, luaPath)
Load GLSL and Lua nodes into a session.
Parameters
- sessionSession.
Session where the nodes will be loaded.
- glslPathstr.
Path where the SPIR-V files can be found.
- luaPathstd.
Path where the Lua files can be found.