graphicscommand: Add 'dst-region' to String of DrawTriangles command

This commit is contained in:
Hajime Hoshi 2020-11-27 01:48:17 +09:00
parent 4d545b9ad8
commit 9a69c3ea9c

View File

@ -399,7 +399,9 @@ func (c *drawTrianglesCommand) String() string {
} }
} }
return fmt.Sprintf("draw-triangles: dst: %s <- src: [%s], num of indices: %d, colorm: %v, mode %s, filter: %s, address: %s", dst, strings.Join(srcstrs[:], ", "), c.nindices, c.color, mode, filter, address) r := fmt.Sprintf("(x:%d, y:%d, width:%d, height:%d)",
int(c.dstRegion.X), int(c.dstRegion.Y), int(c.dstRegion.Width), int(c.dstRegion.Height))
return fmt.Sprintf("draw-triangles: dst: %s <- src: [%s], dst region: %s, num of indices: %d, colorm: %v, mode %s, filter: %s, address: %s", dst, strings.Join(srcstrs[:], ", "), r, c.nindices, c.color, mode, filter, address)
} }
// Exec executes the drawTrianglesCommand. // Exec executes the drawTrianglesCommand.