英文:
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-
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论