DirectX 12 基本计算示例

huangapple go评论71阅读模式
英文:

DirectX 12 Basic Compute Sample

问题

我尝试了Chuck Walbourn的BasicCompute11示例。
https://github.com/walbourn/directx-sdk-samples/tree/main/BasicCompute11

而且我可以尝试使用DirectX 11来实现其他计算功能,如简单的高斯滤波器、中值滤波器。
非常感谢@ChuckWalbourn提供的DirectX 11计算示例。

而在DirectX 12中,我无法实现简单的加法运算。

我尝试阅读了大部分的概念并尝试实现。编译和执行都成功了,但输出只是零值。

能否请有人提供DirectX 12中的基本计算示例。
我看了@ChuckWalbourn在此链接中的示例
https://github.com/microsoft/Xbox-ATG-Samples

但对于简单的计算操作来说,它看起来很复杂。

英文:

Duplicate
https://stackoverflow.com/questions/67429198/directx12-compute-shader-does-nothing

I tried BasicCompute11 sample by Mr.Chuck Walbourn.
https://github.com/walbourn/directx-sdk-samples/tree/main/BasicCompute11

And I'm able to try out other compute functions like simple gaussian filter, median filter using DirectX 11.
Thank you very much @ChuckWalbourn for DirectX 11 compute sample.

And in DirectX 12, I'm unable to achieve simple addition also.

I tried to read most of the concepts and tried implementing. Compilation and Execution is successful but output is just zero values.

could anyone please provide basic compute sample in DirectX 12.
I looked at @ChuckWalbourn samples in this link
https://github.com/microsoft/Xbox-ATG-Samples

But it looks complex to understand for simple compute operation.

答案1

得分: 0

Found one sample in C language.
https://github.com/zenny-chen/Use-Direct3D-12-Compute-Shader-in-C-Basic-

英文:

Found one sample in C language.
https://github.com/zenny-chen/Use-Direct3D-12-Compute-Shader-in-C-Basic-

huangapple
  • 本文由 发表于 2023年6月27日 21:58:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76565632.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定