forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
missing generators; added missing dependecies
- Loading branch information
Showing
488 changed files
with
170,240 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...les/gdextensions/submodules/environment/proc_rocks/generators/procrockgen/procrockgen.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
#ifdef TOOLS_ENABLED | ||
#include "demo.h" | ||
#endif | ||
|
||
#include <procrocklib/gen/icosahedron_generator.h> | ||
#include <procrocklib/mod/subdivision_modifier.h> | ||
#include <procrocklib/par/xatlas_parameterizer.h> | ||
#include <procrocklib/texgen/noise_texture_generator.h> | ||
|
||
#include "abstracted_pipeline/abstracted_pipeline_factory.h" | ||
#include "abstracted_pipeline/igneous_pipeline.h" | ||
#include "abstracted_pipeline/metamorphic_pipeline.h" | ||
#include "abstracted_pipeline/sedimentary_pipeline.h" | ||
|
||
#include "common/gd_core.h" | ||
|
||
#include <memory> | ||
|
||
using namespace procrock; | ||
|
||
Pipeline *create_pipeline() { | ||
Pipeline *pipeline = memnew(Pipeline); | ||
pipeline->setGenerator(std::make_unique<IcosahedronGenerator>()); | ||
pipeline->addModifier(std::make_unique<SubdivisionModifier>()); | ||
pipeline->setParameterizer(std::make_unique<XAtlasParameterizer>()); | ||
pipeline->setTextureGenerator(std::make_unique<NoiseTextureGenerator>()); | ||
return pipeline; | ||
} | ||
|
||
AbstractedPipeline *create_abstracted_pipeline(int p_kind) { | ||
if (auto p = createAbstractPipelineFromId(p_kind)) { | ||
return p.release(); | ||
} | ||
return nullptr; | ||
} |
9 changes: 9 additions & 0 deletions
9
modules/gdextensions/submodules/environment/proc_rocks/generators/procrockgen/procrockgen.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef PROCROCKGEN_H | ||
#define PROCROCKGEN_H | ||
|
||
#include <procrocklib/pipeline.h> | ||
|
||
procrock::Pipeline *create_pipeline(); | ||
procrock::Pipeline *create_abstracted_pipeline(int p_kind); | ||
|
||
#endif // PROCROCKGEN_H |
8 changes: 8 additions & 0 deletions
8
modules/gdextensions/submodules/environment/proc_rocks/generators/rockgen/rockgen.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef ROCKGEN_H | ||
#define ROCKGEN_H | ||
|
||
#include "core/variant.h" | ||
|
||
Array rock_gen(int depth = 3, int randseed = 0, real_t smoothness = 1, bool smoothed = false); // main generator | ||
|
||
#endif // ROCKGEN_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
qrc_*cxx | ||
*.orig | ||
*.pyc | ||
*.diff | ||
diff | ||
*.save | ||
save | ||
*.old | ||
*.gmo | ||
*.qm | ||
core | ||
core.* | ||
*.bak | ||
*~ | ||
*build* | ||
*.moc.* | ||
*.moc | ||
ui_* | ||
CMakeCache.txt | ||
tags | ||
.*.swp | ||
activity.png | ||
*.out | ||
*.php* | ||
*.log | ||
*.orig | ||
*.rej | ||
log | ||
patch | ||
*.patch | ||
a | ||
a.* | ||
lapack/testing | ||
lapack/reference | ||
.*project | ||
.settings | ||
Makefile | ||
!ci/build.gitlab-ci.yml | ||
!scripts/buildtests.in | ||
!Eigen/Core | ||
!Eigen/src/Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This file is part of Eigen, a lightweight C++ template library | ||
# for linear algebra. | ||
# | ||
# Copyright (C) 2020 Arm Ltd. and Contributors | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla | ||
# Public License v. 2.0. If a copy of the MPL was not distributed | ||
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
stages: | ||
- buildsmoketests | ||
- smoketests | ||
- build | ||
- test | ||
|
||
variables: | ||
BUILDDIR: builddir | ||
EIGEN_CI_CMAKE_GENEATOR: "Ninja" | ||
|
||
include: | ||
- "/ci/smoketests.gitlab-ci.yml" | ||
- "/ci/build.gitlab-ci.yml" | ||
- "/ci/test.gitlab-ci.yml" |
69 changes: 69 additions & 0 deletions
69
modules/gdextensions/thirdparty/eigenmath/.gitlab/issue_templates/Bug Report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<!-- | ||
Please read this! | ||
Before opening a new issue, make sure to search for keywords in the issues | ||
filtered by "bug::confirmed" or "bug::unconfirmed" and "bugzilla" label: | ||
- https://gitlab.com/libeigen/eigen/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=bug%3A%3Aconfirmed | ||
- https://gitlab.com/libeigen/eigen/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=bug%3A%3Aunconfirmed | ||
- https://gitlab.com/libeigen/eigen/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=bugzilla | ||
and verify the issue you're about to submit isn't a duplicate. --> | ||
|
||
### Summary | ||
<!-- Summarize the bug encountered concisely. --> | ||
|
||
### Environment | ||
<!-- Please provide your development environment here --> | ||
- **Operating System** : Windows/Linux | ||
- **Architecture** : x64/Arm64/PowerPC ... | ||
- **Eigen Version** : 3.3.9 | ||
- **Compiler Version** : Gcc7.0 | ||
- **Compile Flags** : -O3 -march=native | ||
- **Vector Extension** : SSE/AVX/NEON ... | ||
|
||
### Minimal Example | ||
<!-- If possible, please create a minimal example here that exhibits the problematic behavior. | ||
You can also link to [godbolt](https://godbolt.org). But please note that you need to click | ||
the "Share" button in the top right-hand corner of the godbolt page where you reproduce the sample | ||
code to get the share link instead of in your browser address bar. | ||
You can read [the guidelines on stackoverflow](https://stackoverflow.com/help/minimal-reproducible-example) | ||
on how to create a good minimal example. --> | ||
|
||
```cpp | ||
//show your code here | ||
``` | ||
|
||
### Steps to reproduce | ||
<!-- Describe how one can reproduce the issue - this is very important. Please use an ordered list. --> | ||
|
||
1. first step | ||
2. second step | ||
3. ... | ||
|
||
### What is the current *bug* behavior? | ||
<!-- Describe what actually happens. --> | ||
|
||
### What is the expected *correct* behavior? | ||
<!-- Describe what you should see instead. --> | ||
|
||
### Relevant logs | ||
<!-- Add relevant code snippets or program output within blocks marked by " ``` " --> | ||
|
||
<!-- OPTIONAL: remove this section if you are not reporting a compilation warning issue.--> | ||
### Warning Messages | ||
<!-- Show us the warning messages you got! --> | ||
|
||
<!-- OPTIONAL: remove this section if you are not reporting a performance issue. --> | ||
### Benchmark scripts and results | ||
<!-- Please share any benchmark scripts - either standalone, or using [Google Benchmark](https://github.com/google/benchmark). --> | ||
|
||
### Anything else that might help | ||
<!-- It will be better to provide us more information to help narrow down the cause. | ||
Including but not limited to the following: | ||
- lines of code that might help us diagnose the problem. | ||
- potential ways to address the issue. | ||
- last known working/first broken version (release number or commit hash). --> | ||
|
||
- [ ] Have a plan to fix this issue. |
7 changes: 7 additions & 0 deletions
7
...es/gdextensions/thirdparty/eigenmath/.gitlab/issue_templates/Feature Request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Describe the feature you would like to be implemented. | ||
|
||
### Would such a feature be useful for other users? Why? | ||
|
||
### Any hints on how to implement the requested feature? | ||
|
||
### Additional resources |
26 changes: 26 additions & 0 deletions
26
.../thirdparty/eigenmath/.gitlab/merge_request_templates/Merge Request Template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- | ||
Thanks for contributing a merge request! Please name and fully describe your MR as you would for a commit message. | ||
If the MR fixes an issue, please include "Fixes #issue" in the commit message and the MR description. | ||
In addition, we recommend that first-time contributors read our [contribution guidelines](https://eigen.tuxfamily.org/index.php?title=Contributing_to_Eigen) and [git page](https://eigen.tuxfamily.org/index.php?title=Git), which will help you submit a more standardized MR. | ||
Before submitting the MR, you also need to complete the following checks: | ||
- Make one PR per feature/bugfix (don't mix multiple changes into one PR). Avoid committing unrelated changes. | ||
- Rebase before committing | ||
- For code changes, run the test suite (at least the tests that are likely affected by the change). | ||
See our [test guidelines](https://eigen.tuxfamily.org/index.php?title=Tests). | ||
- If possible, add a test (both for bug-fixes as well as new features) | ||
- Make sure new features are documented | ||
Note that we are a team of volunteers; we appreciate your patience during the review process. | ||
Again, thanks for contributing! --> | ||
|
||
### Reference issue | ||
<!-- You can link to a specific issue using the gitlab syntax #<issue number> --> | ||
|
||
### What does this implement/fix? | ||
<!--Please explain your changes.--> | ||
|
||
### Additional information | ||
<!--Any additional information you think is important.--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[patterns] | ||
*.sh = LF | ||
*.MINPACK = CRLF | ||
scripts/*.in = LF | ||
debug/msvc/*.dat = CRLF | ||
debug/msvc/*.natvis = CRLF | ||
unsupported/test/mpreal/*.* = CRLF | ||
** = native | ||
|
||
[repository] | ||
native = LF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// This file is part of Eigen, a lightweight C++ template library | ||
// for linear algebra. | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla | ||
// Public License v. 2.0. If a copy of the MPL was not distributed | ||
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
#ifndef EIGEN_CHOLESKY_MODULE_H | ||
#define EIGEN_CHOLESKY_MODULE_H | ||
|
||
#include "Core" | ||
#include "Jacobi" | ||
|
||
#include "src/Core/util/DisableStupidWarnings.h" | ||
|
||
/** \defgroup Cholesky_Module Cholesky module | ||
* | ||
* | ||
* | ||
* This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices. | ||
* Those decompositions are also accessible via the following methods: | ||
* - MatrixBase::llt() | ||
* - MatrixBase::ldlt() | ||
* - SelfAdjointView::llt() | ||
* - SelfAdjointView::ldlt() | ||
* | ||
* \code | ||
* #include <Eigen/Cholesky> | ||
* \endcode | ||
*/ | ||
|
||
#include "src/Cholesky/LLT.h" | ||
#include "src/Cholesky/LDLT.h" | ||
#ifdef EIGEN_USE_LAPACKE | ||
#ifdef EIGEN_USE_MKL | ||
#include "mkl_lapacke.h" | ||
#else | ||
#include "src/misc/lapacke.h" | ||
#endif | ||
#include "src/Cholesky/LLT_LAPACKE.h" | ||
#endif | ||
|
||
#include "src/Core/util/ReenableStupidWarnings.h" | ||
|
||
#endif // EIGEN_CHOLESKY_MODULE_H | ||
/* vim: set filetype=cpp et sw=2 ts=2 ai: */ |
48 changes: 48 additions & 0 deletions
48
modules/gdextensions/thirdparty/eigenmath/Eigen/CholmodSupport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// This file is part of Eigen, a lightweight C++ template library | ||
// for linear algebra. | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla | ||
// Public License v. 2.0. If a copy of the MPL was not distributed | ||
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
#ifndef EIGEN_CHOLMODSUPPORT_MODULE_H | ||
#define EIGEN_CHOLMODSUPPORT_MODULE_H | ||
|
||
#include "SparseCore" | ||
|
||
#include "src/Core/util/DisableStupidWarnings.h" | ||
|
||
extern "C" { | ||
#include <cholmod.h> | ||
} | ||
|
||
/** \ingroup Support_modules | ||
* \defgroup CholmodSupport_Module CholmodSupport module | ||
* | ||
* This module provides an interface to the Cholmod library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package. | ||
* It provides the two following main factorization classes: | ||
* - class CholmodSupernodalLLT: a supernodal LLT Cholesky factorization. | ||
* - class CholmodDecomposiiton: a general L(D)LT Cholesky factorization with automatic or explicit runtime selection of the underlying factorization method (supernodal or simplicial). | ||
* | ||
* For the sake of completeness, this module also propose the two following classes: | ||
* - class CholmodSimplicialLLT | ||
* - class CholmodSimplicialLDLT | ||
* Note that these classes does not bring any particular advantage compared to the built-in | ||
* SimplicialLLT and SimplicialLDLT factorization classes. | ||
* | ||
* \code | ||
* #include <Eigen/CholmodSupport> | ||
* \endcode | ||
* | ||
* In order to use this module, the cholmod headers must be accessible from the include paths, and your binary must be linked to the cholmod library and its dependencies. | ||
* The dependencies depend on how cholmod has been compiled. | ||
* For a cmake based project, you can use our FindCholmod.cmake module to help you in this task. | ||
* | ||
*/ | ||
|
||
#include "src/CholmodSupport/CholmodSupport.h" | ||
|
||
#include "src/Core/util/ReenableStupidWarnings.h" | ||
|
||
#endif // EIGEN_CHOLMODSUPPORT_MODULE_H | ||
|
Oops, something went wrong.