find out which polygon were front facing (drawn) after the rasterization stage
问题 I want to be able to access the polygon id (PrimitiveID) of the the front facing polygons of a mesh. I can only see this happening after the rasterizer stage, in the pixel shader. I was thinking about creating an append buffer but since the pixel shader is executed multiple times it might append the same polygon id more than once. I also thought about creating an array boolean variables and using the primitive id from the input assembler stage in the pixel shader as an index and set it to