mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
ast::AccessControl: Remove 'Only' suffix from enums
As requested in: https://dawn-review.googlesource.com/c/tint/+/52503/1..3/src/intrinsics.def#38 Bug: tint:832 Change-Id: I88881d0654305cdbc6c05256e227a3b048fbff29 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/52640 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
3264765bc2
commit
646f4a9958
@@ -128,9 +128,9 @@ fn f() {
|
||||
data.Add<BindingRemapper::Remappings>(
|
||||
BindingRemapper::BindingPoints{},
|
||||
BindingRemapper::AccessControls{
|
||||
{{2, 1}, ast::AccessControl::kWriteOnly}, // Modify access control
|
||||
{{2, 1}, ast::AccessControl::kWrite}, // Modify access control
|
||||
// Keep [[group(3), binding(2)]] as is
|
||||
{{4, 3}, ast::AccessControl::kReadOnly}, // Add access control
|
||||
{{4, 3}, ast::AccessControl::kRead}, // Add access control
|
||||
});
|
||||
auto got = Run<BindingRemapper>(src, data);
|
||||
|
||||
@@ -188,9 +188,9 @@ fn f() {
|
||||
data.Add<BindingRemapper::Remappings>(
|
||||
BindingRemapper::BindingPoints{},
|
||||
BindingRemapper::AccessControls{
|
||||
{{2, 1}, ast::AccessControl::kWriteOnly}, // Modify access control
|
||||
{{2, 1}, ast::AccessControl::kWrite}, // Modify access control
|
||||
// Keep [[group(3), binding(2)]] as is
|
||||
{{4, 3}, ast::AccessControl::kReadOnly}, // Add access control
|
||||
{{4, 3}, ast::AccessControl::kRead}, // Add access control
|
||||
});
|
||||
auto got = Run<BindingRemapper>(src, data);
|
||||
|
||||
@@ -233,8 +233,8 @@ fn f() {
|
||||
{{3, 2}, {6, 7}},
|
||||
},
|
||||
BindingRemapper::AccessControls{
|
||||
{{2, 1}, ast::AccessControl::kWriteOnly},
|
||||
{{3, 2}, ast::AccessControl::kWriteOnly},
|
||||
{{2, 1}, ast::AccessControl::kWrite},
|
||||
{{3, 2}, ast::AccessControl::kWrite},
|
||||
});
|
||||
auto got = Run<BindingRemapper>(src, data);
|
||||
|
||||
|
||||
@@ -214,8 +214,7 @@ struct State {
|
||||
ctx.dst->create<ast::StructBlockDecoration>(),
|
||||
});
|
||||
for (uint32_t i = 0; i < cfg.vertex_state.size(); ++i) {
|
||||
auto* access =
|
||||
ctx.dst->ty.access(ast::AccessControl::kReadOnly, struct_type);
|
||||
auto* access = ctx.dst->ty.access(ast::AccessControl::kRead, struct_type);
|
||||
// The decorated variable with struct type
|
||||
ctx.dst->Global(
|
||||
GetVertexBufferName(i), access, ast::StorageClass::kStorage, nullptr,
|
||||
|
||||
Reference in New Issue
Block a user