{"id":20708359,"url":"https://github.com/weakknight/cpurt","last_synced_at":"2026-04-28T03:05:29.284Z","repository":{"id":198818462,"uuid":"697291077","full_name":"WeakKnight/CPURT","owner":"WeakKnight","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-11T02:55:09.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T20:35:44.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WeakKnight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-27T12:37:19.000Z","updated_at":"2024-06-11T02:55:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"57c887fd-9702-4075-a24a-fbfecb33997b","html_url":"https://github.com/WeakKnight/CPURT","commit_stats":null,"previous_names":["weakknight/cpurt"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeakKnight%2FCPURT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeakKnight%2FCPURT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeakKnight%2FCPURT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeakKnight%2FCPURT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WeakKnight","download_url":"https://codeload.github.com/WeakKnight/CPURT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242976776,"owners_count":20215660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T01:30:47.947Z","updated_at":"2025-12-25T03:38:47.888Z","avatar_url":"https://github.com/WeakKnight.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPURT\n\n![Build Status](https://github.com/WeakKnight/CPURT/workflows/build/badge.svg)\n\na handy cpu ray tracing kernel based on [BVH](https://github.com/madmann91/bvh).\n\n### C++\n```cpp\nContext* cpurt_init(float* trisPtr, int triNum);\n\nvoid cpurt_dispatch_rays(Context* context, RayDesc* rayDescs, int rayCount, HitInfo* results);\n\nvoid cpurt_release(Context* context);\n```\n\n### Unity C#\n``` csharp\nIntPtr Init(Mesh mesh);\n\nvoid DispatchRays(IntPtr context, NativeArray\u003cRayDesc\u003e rays, NativeArray\u003cHitInfo\u003e hitInfos);\n\nvoid Release(IntPtr context);\n```\n\n### Performance\nOn an AMD Ryzen 9 5950X, it takes 0.2ms to shoot 512 rays at a mesh consisting of 15,000 triangles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakknight%2Fcpurt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweakknight%2Fcpurt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakknight%2Fcpurt/lists"}