davidalgis / interopunitycuda Goto Github PK
View Code? Open in Web Editor NEWDemonstrate interoperability between Unity Engine and CUDA
License: MIT License
Demonstrate interoperability between Unity Engine and CUDA
License: MIT License
We need to do a unity package from the C# code, to avoid making copy of each file to other project
When I try to register in CUDA a texture DX11 that has been created in Unity, I get the following error : ErrorCuda error: 1 invalid argument
.
I wanted to generate the mip map of a Texture2D
directly from the graphics API. But with DX11 a Texture2D
is created with miscflag 0
, and the function to generate mip maps with DX11 needs to have the flag D3D11_RESOURCE_MISC_GENERATE_MIPS
. (cf.
https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-id3d11devicecontext-generatemips)
When render doc is loaded in Unity the function IsSupported()
return false and make everything failed.
When you create a Texture2DArray
in Unity, there are two different behavior depending on graphics API :
GL_TEXTURE_3D
) and therefore we can use only one surface object in which we write with surf3DWrite
see eg. 39039e5surf2DWrite
see 84220a4.The philosophy of this plugin is to make user agnostic of the graphics API. That's why we need to find a way to make the user wrote into the texture array with only one method that will work with each API.
DirectX12 is not supported yet. The interoperability with CUDA doesn't work in the same way see https://forums.developer.nvidia.com/t/cuda-interop-with-d3d12-possible/54671/7
I need to add a git hook to make sure unit test have passed. Like in pre-push
.
There are unit test for texture and compute buffer, but I need to implement it for texture array.
CUDA is fast, but it's only supported by Nvidia's GPU. It would be better to use HIP to support more GPU.
For now, when there are errors, most of the time the application just crash.
We need to add a unit test that test if the plugin works for all supported graphics API
Unity does crash when we are not mapping and unmapping at update a buffer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.