Comments (1)
For the time being this on hold, there aren't current plans to add support for it to PythonAPI.
The C version is pretty simple (and hopefully obvious).
FLAMEGPU_CUSTOM_REDUCTION(glm_min, a, b) {
return glm::min(a, b);
}
FLAMEGPU_CUSTOM_REDUCTION(glm_max, a, b) {
return glm::max(a, b);
}
FLAMEGPU_HOST_FUNCTION(host_fn) {
const glm::vec3 min_pos = FLAMEGPU->agent("agent").reduce<glm::vec3>("xyz", glm_min, glm::vec3(std::numeric_limits<float>().max()));
const glm::vec3 max_pos = FLAMEGPU->agent("agent").reduce<glm::vec3>("xyz", glm_max, glm::vec3(-std::numeric_limits<float>().max()));
}
from flamegpu2-docs.
Related Issues (20)
- Critical title level warnings HOT 4
- Documentation landing page
- Sidebar link order
- Windows CMake guide, how to use non-default CUDA version HOT 2
- Add VSCode debugging example(s) HOT 1
- Github Actions node deprecation warnings
- Document cleanup() HOT 1
- JSON is no longer strictly valid JSON
- Message list persistence
- Improve documentation around how to use agent states
- Vis Agent State hiding HOT 1
- `newProperty` in Agent Variables documentation
- Array msg, how to get message index within array during iteration
- CI: purge `gh-pages` on each publication
- Beginner's feedback for improving documentation HOT 6
- Python agent sort code example wrong
- CMake: flamegpu_add_library
- AgentDescription::setSortPeriod(0) is not documented
- Improve coverage of agent state transitions.
- API Docs not currently built on docs website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flamegpu2-docs.