Skip to content

WeakKnight/CPURT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPURT

Build Status

a handy cpu ray tracing kernel based on BVH.

C++

Context* cpurt_init(float* trisPtr, int triNum);

void cpurt_dispatch_rays(Context* context, RayDesc* rayDescs, int rayCount, HitInfo* results);

void cpurt_release(Context* context);

Unity C#

IntPtr Init(Mesh mesh);

void DispatchRays(IntPtr context, NativeArray<RayDesc> rays, NativeArray<HitInfo> hitInfos);

void Release(IntPtr context);

Performance

On an AMD Ryzen 9 5950X, it takes 0.2ms to shoot 512 rays at a mesh consisting of 15,000 triangles.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages