Started to Dive into the Compute Shader!
3,554
4
Advertisement
I admit personally that when I heard about Compute Shader that I thought it was an over complex odeal. It's actually fascinating because of the parallel possibilities. It's literally turbo charging your game's speed to create box blurs or any other post processing effect; even managing physics with particles.
I created a Unorder Access View then from that I was able to save the image you see below. It's simple example not over the top but gave me the basic idea on how a compute shader works. The texture I created for the UAV and SRV was 1024 and so for every 1 pixel to fill up the 1024 image; the gradiant ramp you see is the results of the XY threads.
I'm digging the whole compute shaders and I'll be exploring the unlimited possiblities with them. I understand the compute shaders won't solve everything and it helps hide some stalling. I'm actually glad I looked more in depth into Compute Shaders.
This is just me overly exciting ranting
Edit: A new attached photo shows what's being rendered to a render target to compute shader as is not post process effect via compute shader.
There's more to learn from this great experience I must admit! I look forward to it!
I created a Unorder Access View then from that I was able to save the image you see below. It's simple example not over the top but gave me the basic idea on how a compute shader works. The texture I created for the UAV and SRV was 1024 and so for every 1 pixel to fill up the 1024 image; the gradiant ramp you see is the results of the XY threads.
I'm digging the whole compute shaders and I'll be exploring the unlimited possiblities with them. I understand the compute shaders won't solve everything and it helps hide some stalling. I'm actually glad I looked more in depth into Compute Shaders.
This is just me overly exciting ranting
Edit: A new attached photo shows what's being rendered to a render target to compute shader as is not post process effect via compute shader.
There's more to learn from this great experience I must admit! I look forward to it!
Previous
Performance testing with bit operations, SSE2 and asm
Next
Another great way to reduce my insantiy with interfaces...
Advertisement
Advertisement
Advertisement
Discussion