msl: Default the sample mask config parameter

This is needed to roll Tint into Dawn, and makes sense for this to be
optional anyway.

Bug: tint:387
Change-Id: Ia3a42f8add36dfba954dd0a5e06f2f84d8e95464
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55684
Commit-Queue: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price 2021-06-22 22:57:09 +00:00 committed by Tint LUCI CQ
parent e0cc771e0a
commit ae0bf04ad2
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ class Msl : public Transform {
/// Constructor
/// @param buffer_size_ubo_idx the index to use for the buffer size UBO
/// @param sample_mask the fixed sample mask to use for fragment shaders
explicit Config(uint32_t buffer_size_ubo_idx, uint32_t sample_mask);
explicit Config(uint32_t buffer_size_ubo_idx,
uint32_t sample_mask = 0xFFFFFFFF);
/// Copy constructor
Config(const Config&);