Usage of Pixel Shader & Pixel Shader (for custom render pass)

Nick24_3
Thu, 19 Sep 2024 04:20:28 +0000
Rendering

Hi, I know that this question can be very typical and general. I know that the pixel shader is for drawing or interpolating the color for each vertex. This also implies clearly that the inputs for the pixel shader will be the vertex location, colors, normal, etc.

My question is, would be possible for me to use RWStructure<type_name> to compute the differences between two depth textures in the pixel shader? because all the usage for RWStructure is for the compute shader, not the pixel shader.

I am a bit confused because the purpose of pixel shader is quite different than the compute shader.