logoalt Hacker News

yuriksyesterday at 3:36 AM1 replyview on HN

I thought that the implication was that the shader compiler produces a second shader from the same source that went through a dead code elimination pass which maintains only the code necessary to calculate the position, ignoring other attributes.


Replies

modelessyesterday at 4:43 AM

Sure, but that only goes so far, especially when users aren't writing their shaders with knowledge that this transform is going to be applied or any tools to verify that it's able to eliminate anything.

show 2 replies