按年被提到
20212022 · 2 次2026
编程语言与编译器›编译器与运行时优化·arXiv:2109.14682 · cs.GR

Supporting Unified Shader Specialization by Co-opting C++ Features

Kerry A. Seitz, Theresa Foley, Serban D. Porumbescu, John D. Owens · 2021
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 2 人首次 2021-10-03 · 最近 2022-03-12
2不同的人
3活跃月份
3讨论串
8被引(OpenAlex)
arXiv 摘要(候选层不写导读)

Modern unified programming models (such as CUDA and SYCL) that combine host (CPU) code and GPU code into the same programming language, same file, and same lexical scope lack adequate support for GPU code specialization, which is a key optimization in real-time graphics. Furthermore, current methods used to implement specialization do not translate to a unified environment. In this paper, we create a unified shader programming environment in C++ that provides first-class support for specialization by co-opting C++'s attribute and virtual function features and reimplementing them with alternate semantics to express the services required. By co-opting existing features, we enable programmers to use familiar C++ programming techniques to write host and GPU code together, while still achieving efficient generated C++ and HLSL code via our source-to-source translator.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
评论raphlinus · 2022-02

“While it has roots in C, I think it's better to consider it a separate language, especially in more modern forms (Metal is C++14). Metal is locked into Apple's proprietary platforms, but there is other work in compiling C++ to portable shaders, particularly Sean Baxter's Circle, as well as some academic work[1]. There's also of course rust-gpu. I think i…”

A Review of Shader Languages原评论 ↗
评论raphlinus · 2022-03

“It may be close to a technical impossibility, but the Circle compiler by Sean Baxter is attempting it. That's based on an aggressive "de-pointerization" (see [1] in particular for details). There's also academic work[2] to compile C++ to shaders. I agree that it's an open question how well that will work out. Also as pointed out elsethread, now that buff…”

Adding HLSL and DirectX Support to Clang and LLVM原评论 ↗
被提交为 story · 1 次