mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Nuke Builders Part 2: remove all builder code from wire
This removes blocks of code that were obviously builder-specific but also removes the ObjectStorage::valid member that was used to implement the maybe monad on the wire server side. This is no longer needed since dawn_native handles the maybe monad internally now. BUG=dawn:125 Change-Id: I8c30daae9fc70853bc1996d85a860b4877c5976c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6161 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
20b0c33913
commit
cb2c64f7d9
@@ -57,20 +57,6 @@ def compute_wire_params(api_params, wire_json):
|
||||
command.derived_method = method
|
||||
commands.append(command)
|
||||
|
||||
# Create builder return ErrorCallback commands
|
||||
# This can be removed when WebGPU error handling is implemented
|
||||
if api_object.is_builder:
|
||||
command_name = concat_names(api_object.name, Name('error callback'))
|
||||
built_object = common.RecordMember(Name('built object'), types['ObjectHandle'], 'value', False, False)
|
||||
built_object.set_handle_type(api_object.built_type)
|
||||
command = common.Command(command_name, [
|
||||
built_object,
|
||||
callback_status_member,
|
||||
string_message_member,
|
||||
])
|
||||
command.derived_object = api_object
|
||||
return_commands.append(command)
|
||||
|
||||
for (name, json_data) in wire_json['commands'].items():
|
||||
commands.append(common.Command(name, common.linked_record_members(json_data, types)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user