问题
I'm looking for a most efficient way of drawing a 2-dimensional background in metal. This requires rendering a textured rectangle.
The basic geometry example shows an example on how to draw a triangle. Is there an easy and non-bloated way to draw a rectangle (a polygon with 4 corners)?
回答1:
The Basic Texturing sample draws a textured rectangle
来源:https://stackoverflow.com/questions/52515513/how-to-draw-a-textured-rectangle-with-metal