icculus / mojoshader

Use Direct3D shaders with other 3D rendering APIs.
https://icculus.org/mojoshader/
zlib License
150 stars 37 forks source link

Fix mojoshader hlsl not emitting POSITION inputs with an index other than 0 #45

Closed kg closed 3 years ago

kg commented 3 years ago

Fix mojoshader hlsl not emitting POSITION inputs with an index other than 0 Add an assert for the case where a buggy VS is missing outputs its PS needs (the shader will fail to compile anyway and produce a mystery crash later, so this is an improvement)

See https://gist.github.com/kg/33f3b1b3e51bc49ff4ae30ad05903f15 and https://gist.github.com/kg/ccd3a8b676a26346867735b61b83c7c6

flibitijibibo commented 3 years ago

Applied: https://hg.icculus.org/icculus/mojoshader/rev/f9b8e34cc41f