[graphite-dawn] Correctly calculate num textures for pipeline's layout

Currently number of sampled textures when creating a
DawnGraphicsPipeline's layout is hardcoded as 1. This could lead to
Dawn's validation error.

We should be able to calculate the exact number of textures based on the
generated SkSL code.

Bug: b/265697751
Change-Id: I4273138520772d6ee1fe74ec0b369300c7136d2f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/628779
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
11 files changed