Questions tagged [compute-shader]
The compute-shader tag has no usage guidance.
17
questions with no upvoted or accepted answers
4
votes
0
answers
296
views
Direct3D Global Atomic Issue
Recently I ran into an odd issue with some of my DirectX11 DirectCompute code
when trying it on an AMD GPU for the first time where as on a NVIDIA one it had worked fine all through development. The ...
2
votes
0
answers
551
views
How to retrieve data from Compute Shader to CPU?
I want to retrieve data that has created by the compute shader but have no clue how it works. After researching a few forums and articles on how it should work and this is what I came up with.
Compute ...
2
votes
0
answers
1k
views
Groupshared memory and parallel reduction over multiple kernel dispatch
I am doing some parallel reduction and mostly following these nVidia slides. However they are not very detailed in places or I might be missing/misunderstanding something.
Edit 2:
While I figured ...
1
vote
0
answers
321
views
Compute shader in DirextX: difference between four kinds of memory barriers
There are four kinds of memory barriers in DirectX. Their names and definitions are:
DeviceMemoryBarrier: Blocks execution of all threads in a group until all ...
1
vote
0
answers
107
views
GL_OUT_OF_MEMORY Error when glDispatchCompute takes longer
I built a simple Ray Tracer which takes use of OpenGL's Compute Shader and traces ".obj" Files.
The results are passed to the Host-Program via glMapBufferRange after finishing computing.
...
1
vote
0
answers
757
views
Is a smaller local-size/threadgroup-size better for compute shader performance?
A compute shader defines the number of threads it requires to be executed.
This number can be called "local size" or "threadgroup size" according to the API, and be factored into 3 separate dimensions ...
0
votes
1
answer
102
views
Do GL compute shaders trigger TDR if they crash. Not just timeout?
I'm getting a TDR trigger after 4ms with a GL4.3 compute shader. tdrDelay is currently set to 30 secs, this obviously isn't long enough to get a timeout with the default Windows 11 tdrDelay value let ...
0
votes
0
answers
49
views
Opengl binding different mipmap levels of same texture2darray for use in compute shader. How to handle variable nr of levels?
So I want to make a compute shader that uses a coarse-to-fine approach.
As I have learned about open gl mipmap levels it seems they could be very useful.
However the only binding method which I have ...
0
votes
1
answer
205
views
How to properly create textures using DSA for ImageTexture in OpenGL
For the old approach, generating a texture for the ImageTexture for compute shaders would look like this:
...
0
votes
0
answers
267
views
Does RWStructuredBuffer have built-in overflow protection in hlsl?
It appears that reads to indices outside the range of a ComputeBuffer always return 0, and writes to out-of-range indices do not cause any exceptions or runtime errors. Is there built-in range-...
0
votes
0
answers
396
views
Is it possible to put matrix computation in Compute Shader?
With the library glm, we can do matrix computations on the CPU. However, the GPU is more suitable to do this. So what if I put the matrix computations in a Compute ...
0
votes
0
answers
558
views
Bind shader storage buffer object for vertex input
I'm trying to learn about compute shaders, and as such decided to give it a go at implementing the particle system described in these slides: https://www.khronos.org/assets/uploads/developers/library/...
0
votes
0
answers
111
views
Inter-Process communication in compute shaders
How do I write a code to facilitate common shared memory for communication between multiple shaders as well as processes within them in python?
0
votes
0
answers
45
views
Offsetting value in shader causes unexpected/wrong logic
Let me explain what I am doing. I am trying to reduce the memory footprint of a voxel based algorithm by storing the voxel data as a hash map in an SSBO, as opposed to a 3D image.
I am visualizing the ...
0
votes
0
answers
104
views
Unity crashes when running path tracing
I'm studying path tracing, at the moment I created a compute shader that aims to calculate the intersection of rays with meshes.
However, when I run the code the unity crashes, displaying a graphics ...
0
votes
0
answers
73
views
Unity path tracing makes the pc crash
Good Morning. I'm testing Path Tracing techniques with unity, following this tutorial.
http://three-eyed-games.com/2019/03/18/gpu-path-tracing-in-unity-part-3/
But I'm in trouble.
Whenever I try to ...
-1
votes
1
answer
157
views
How do I view my vertex colors that I specified through the texture I've applied on my objec [OpenGL]?
I thought that if I used an image with a transparent background, I would still be able to see the colors I had specified in my vertex attribute buffer.
...