mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
tint: Rename kInvalid to kUndefined for enums
This is a more neutral term for an unassigned enum value. Change-Id: Ic69d912472f26fd8a2c8348281b27edfcc145eab Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105480 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
78c839be97
commit
d2e0db3af2
@@ -121,7 +121,7 @@ void BindingRemapper::Run(CloneContext& ctx, const DataMap& inputs, DataMap&) co
|
||||
auto ac_it = remappings->access_controls.find(from);
|
||||
if (ac_it != remappings->access_controls.end()) {
|
||||
ast::Access ac = ac_it->second;
|
||||
if (ac == ast::Access::kInvalid) {
|
||||
if (ac == ast::Access::kUndefined) {
|
||||
ctx.dst->Diagnostics().add_error(
|
||||
diag::System::Transform,
|
||||
"invalid access mode (" + std::to_string(static_cast<uint32_t>(ac)) + ")");
|
||||
|
||||
@@ -223,7 +223,7 @@ struct CanonicalizeEntryPointIO::State {
|
||||
(ast::HasAttribute<ast::LocationAttribute>(attributes) ||
|
||||
cfg.shader_style == ShaderStyle::kSpirv)) {
|
||||
attributes.Push(ctx.dst->Interpolate(ast::InterpolationType::kFlat,
|
||||
ast::InterpolationSampling::kInvalid));
|
||||
ast::InterpolationSampling::kUndefined));
|
||||
}
|
||||
|
||||
// Disable validation for use of the `input` address space.
|
||||
@@ -292,7 +292,7 @@ struct CanonicalizeEntryPointIO::State {
|
||||
ast::HasAttribute<ast::LocationAttribute>(attributes) &&
|
||||
!ast::HasAttribute<ast::InterpolateAttribute>(attributes)) {
|
||||
attributes.Push(ctx.dst->Interpolate(ast::InterpolationType::kFlat,
|
||||
ast::InterpolationSampling::kInvalid));
|
||||
ast::InterpolationSampling::kUndefined));
|
||||
}
|
||||
|
||||
// In GLSL, if it's a builtin, override the name with the
|
||||
|
||||
Reference in New Issue
Block a user