slembcke,
@slembcke@mastodon.gamedev.place avatar

Metal API masters, is there a trick to flip the viewport other than flipping the y-axis of the projection matrix? I started out with GL conventions and Vulkan supports flipping the viewport rectangle so I just ignored the issue until now. Doing it CPU side would be messy, but maybe I can do some macro magic shader side with spirv-cross...

Solution: I'm using spirv-cross, and it has a --flip-vert-y flag. I totally missed that because I was only looking in the Metal specific section, whoops.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • cubers
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • tester
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • anitta
  • Leos
  • provamag3
  • modclub
  • megavids
  • lostlight
  • All magazines