mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Add support for Tint's HLSL writer as a Toggle
This commit adds a Toggle that switches SPIRV-cross's HLSL generator for Tint's HLSL writer. New Toggle currently defaults to false. Bug: dawn:548 Change-Id: I37e238c6ba887efd65727809c8a6919df515a35e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/31640 Reviewed-by: Bryan Bernhart <bryan.bernhart@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Enrico Galli <enrico.galli@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
c1dbb2625b
commit
2b6b0f45ff
@@ -637,6 +637,15 @@ bool DawnTestBase::IsAsan() const {
|
||||
#endif
|
||||
}
|
||||
|
||||
bool DawnTestBase::HasToggleEnabled(const char* toggle) const {
|
||||
for (const char* toggleEnabled : mParam.forceEnabledWorkarounds) {
|
||||
if (strcmp(toggle, toggleEnabled) == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool DawnTestBase::HasVendorIdFilter() const {
|
||||
return gTestEnv->HasVendorIdFilter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user