af89c729ed
Adds a new single-function API for the generators, which applies the sanitizing transform and performs the generation in one step, and returns a result object which contains the generated code and success status/diagnostics. The new APIs take an `Option` structure to control backend-specific generation details (e.g. MSL fixed sample mask). The result objects also provide backend-specific feedback (e.g. whether a UBO of buffer lengths was generated). HLSL needs a list of entry points to validate, and it's the HLSL sanitizer that generates an entry point for programs that do not have one. This change makes the HLSL generator return the list of post-sanitize entry points so that the Tint executable can forward them to the validation code. Change-Id: I2d5aa27fda95d7c50c5bef41e206aee38f2fd2eb Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57101 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@chromium.org> |
||
---|---|---|
.. | ||
BUILD.gn | ||
CMakeLists.txt | ||
main.cc |