Repository navigation
Vector Fields & Vendor Neutral Copy Headers - #92
Merged
Merged
Conversation
Place holder code for 3d fields has been added. An example for 2d field is added.
Member
Author
|
@arrayfire/core-devel Current |
| vec4 rightTop = pos + trans * vec4( 0.167, -0.333, 0.0, 1.0); // (6) | ||
| vec4 rightTip = pos + trans * vec4( 0.333, -0.333, 0.0, 1.0); // (4) | ||
|
|
||
| // (2/5) |
Also includes other fixes and changes given below * Add chart ticks at end of axes as well * Remove obsolete transformation related code from all renderables * Updated 2d vector field example * Fixed plot axes limits for bubblechart and plotting examples
Orientation of 2d and 3d fields is not per expection due a bug, working on it now. Other than that, everything else related to fields seems to be working fine now.
These copy functions can be used to transfer data compute
backend buffers to OpenGL graphics related buffers.
One of the following macros must be defined to use the helper
functions with a given compute backend.
- USE_FORGE_CPU_COPY_HELPERS for cpu based functionality
- USE_FORGE_CUDA_COPY_HELPERS for cuda-opengl interop
- USE_FORGE_OPENCL_COPY_HELPERS for opencl-opengl interop
For example, to use the header with cpu, cuda backend, you have to
do the following:
```cpp
\#define USE_FORGE_CPU_COPY_HELPERS
\#include <ComputeCopy.h>
```
For opencl backend, couple of additional things need to be defined
apart from above macro definition and header inclusion.
```cpp
cl_context getContext()
{
// You need to return a valid cl_context object
}
```
```cpp
cl_command_queue getCommandQueue()
{
// You need to return a valid cl_command_queue object
}
```
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #69
Fixes #70
Fixes #95
Fixes #96