1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
gpu / command_buffer / service / webgpu_cmd_validation_implementation_autogen.h [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is auto-generated from
// gpu/command_buffer/build_webgpu_cmd_buffer.py
// It's formatted by clang-format using chromium coding style:
// clang-format -i -style=chromium filename
// DO NOT EDIT!
#ifndef GPU_COMMAND_BUFFER_SERVICE_WEBGPU_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_
#define GPU_COMMAND_BUFFER_SERVICE_WEBGPU_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_
static const MailboxFlags valid_mailbox_flags_table[] = {
WEBGPU_MAILBOX_NONE,
WEBGPU_MAILBOX_DISCARD,
};
static const PowerPreference valid_power_preference_table[] = {
PowerPreference::kDefault,
PowerPreference::kHighPerformance,
PowerPreference::kLowPower,
};
Validators::Validators()
: mailbox_flags(valid_mailbox_flags_table,
std::size(valid_mailbox_flags_table)),
power_preference(valid_power_preference_table,
std::size(valid_power_preference_table)) {}
#endif // GPU_COMMAND_BUFFER_SERVICE_WEBGPU_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_