Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Unity doesn't recognize compute shader

$
0
0
Hi, everyone! I'm brand new to writing compute shaders in Unity, and I seem to have issues very early off. When I try to use any of the ComputeShader [functions][1] defined by Unity, it throws an error. ![alt text][2] Also, when I generate the default compute shader and try to click and drag the shader onto the public ComputeShader variable to attach it to my very simple script, it simply won't do it. It recognizes it as a type "Compute shader" since it populates in the window of suggested objects to attach, but it does not actually attach the shader when I click on it, no matter what I do. ![alt text][3] I tried updating to Unity 2017.2 and Visual Studio 2017, and I've had no issues with Unlit shaders. I also set the device target to HoloLens which runs DX11. I've gotten errors (silly ones that I resolved) that suggest it is using DX11, so compute shaders should be supported. The computer I'm developing on runs DX12. Has anyone seen this before? I'm very sorry if this is just "user error". [1]: https://docs.unity3d.com/ScriptReference/ComputeShader.html [2]: /storage/temp/105315-computeshadererror.png [3]: /storage/temp/105316-computeshadererror2.png

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>