Questions tagged [compute-shader]
The compute-shader tag has no summary.
70 questions
0 votes
1 answer
69 views
Does it make sense to use a compute shader with Dispatch(1,1,1) and Numthreads[1,1,1] to draw a cone?
I was working on this idea of drawing a cone rotating on the y axis with a parametric equation, using a compute shader with a function like: ...
0 votes
1 answer
284 views
how to pass result of Compute Shader using UAV to Target View and render it in Direct3D11?
I'm trying to get a very basic Compute Shader to write to a Texture2D and render its result to screen. so far I have written this code to bind UAV to Texture2D and pass that to my Compute Shader. but ...
0 votes
0 answers
98 views
How to implement graphics API functions like setUniform on a cross-platform shader in VLang?
I've been working on a C++ game engine for a while, but I decided to scrap the project because doing it in C++, despite my best efforts, I could feel the technical dept building. As such, I switched ...
0 votes
0 answers
107 views
Frustum culling works correctly but results in flickering meshes
I've written a C# code and Compute Shader that makes frustum culling and it works correctly but it makes the grass flicker. I can't figure out what is behind this issue so I'm asking here. Does ...
0 votes
0 answers
62 views
In Unity 2021.3.29, why is a total volumeDepth of just 100 for global texture arrays slowing down the entire game?
In order to apply the metaball effect on a pixel in the Dest RenderTexture, I need the minimum distance to every game object that is involved in generating the metaball effect for that pixel. This ...
1 vote
0 answers
41 views
Some of the assignment operations in the directx11 compute shader are getting skipped, even though the assigned values are used later
I'm implementing an algorithm called Fast3x3 SVD on my compute shader. However, while I was debugging my compute shader in RenderDoc, I noticed some assignment operators were completely getting ...
1 vote
0 answers
53 views
How to connect terrain chunks smoothly? [duplicate]
I'm generating a 3D terrain chunk based on Simplex Noise and Marching Cubes algorithm to create mesh. My chunks have global coordinates (x,y) e.g: (0, 1), (-1, 1)... Noise is generated using Compute ...
0 votes
2 answers
125 views
error X3671: loop termination conditions in varying flow control cannot depend on data read from a UAV
I have a problem with converting my pixel shader to compute shader. The error is in this piece of code: ...