feat: CUDA/OptiX implementation of TextureSystem

未关闭
#4,938 8 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
cpp

调研方向

这个 issue 更像是规划和设计讨论,而不是范围明确的代码任务,并且没有列出任何文件或测试。首先审查现有的 CPU-based OIIO TextureSystem 以及已提出的 CUDA/OptiX 设计目标。只有在就涵盖交付、API 兼容性、共享计算和按需加载纹理的 MVP 范围与实现计划达成一致后,才算完成。

由索引模型根据 Issue 内容生成。

描述

feature request gpu texture / image cache

Most production renderers that use OSL for shading also use OIIO's TextureSystem as their texture engine, and also quite a few non-OSL renderers still use OIIO TextureSystem. But as those renderers add GPU abilities with CUDA and OptiX, they are pretty much on their own when it comes to texture (OSL gives them a customization point where the renderer itself provides texture facilities).

We've talked for some time about OIIO providing a CUDA/OptiX implementation of TS, and it's time to finally get it underway. I think we can get to an MVP in main relatively rapidly, and then continue work to make this a major supported feature.

I would consider the basic design goals to be the following:

  • Delivered as part of OIIO somehow, and in a form easily consumable by OSL and other renderers.
  • With full feature/quality parity with the existing and future development of the CPU-based OIIO TS (this can happen in stages, with an MVP delivering basic functionality and additions over time getting us to full parity and higher quality).
  • With as close as possible an API to existing TS.
  • Sharing as much computational code as possible between CPU and GPU implementations.
  • Using the OptiX toolkit's on-demand texture loading to provide similar functionality to ImageCache (or maybe as part of, or in conjunction with IC?).

Using this issue to plan, discuss design, track progress, and rally participation from interested parties.

主要语言
C++
星标
2.4k
派生
718
平均合并
2 天 18 小时
30 天内合并 PR
85

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AcademySoftwareFoundation/OpenImageIO 的其他 Issue

查看 AcademySoftwareFoundation/OpenImageIO 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。