0
Files
src/gpu/command_buffer/webgpu_cmd_buffer_functions.txt
Brandon Jones c23d2a84b4 Reland "Implement Associate/DissociateForBuffer For Dawn."
This is a reland of commit 74dcee8825

Original change's description:
> Implement Associate/DissociateForBuffer For Dawn.
>
> Adds Associate/DissociateForBuffer for Dawn. This allows Dawn to
> import SharedImages backed by buffers. Includes tests on D3D12.
>
> Validate-Test-Flakiness: skip
> Bug: chromium:368222757
> Change-Id: Ibbc6285b19cfb8506a74210fcb5882b863036314
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5874610
> Reviewed-by: Colin Blundell <blundell@chromium.org>
> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
> Commit-Queue: Brandon1 Jones <brandon1.jones@intel.com>
> Cr-Commit-Position: refs/heads/main@{#1367621}

Validate-Test-Flakiness: skip
Bug: chromium:368222757
Change-Id: I8984d3d2a982a9d36c207169160b354c5883fbed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5935950
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Brandon1 Jones <brandon1.jones@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372508}
2024-10-23 05:13:59 +00:00

19 lines
1.5 KiB
Plaintext

// 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 read by build_webgpu_cmd_buffer.py to generate commands.
// WebGPU commands. Note the first 2 characters (usually 'wg') are
// completely ignored.
GL_APICALL void GL_APIENTRY wgDawnCommands (uint32_t trace_id_high, uint32_t trace_id_low, const char* commands, size_t size);
GL_APICALL void GL_APIENTRY wgAssociateMailbox (GLuint device_id, GLuint device_generation, GLuint id, GLuint generation, uint64_t usage, uint64_t internal_usage, MailboxFlags flags, GLuint view_format_count, GLuint count, const GLuint* mailbox_and_view_formats);
GL_APICALL void GL_APIENTRY wgAssociateMailboxForBuffer (GLuint device_id, GLuint device_generation, GLuint id, GLuint generation, uint64_t usage, const GLuint* mailbox);
GL_APICALL void GL_APIENTRY wgDissociateMailbox (GLuint texture_id, GLuint texture_generation);
GL_APICALL void GL_APIENTRY wgDissociateMailboxForBuffer (GLuint buffer_id, GLuint buffer_generation);
GL_APICALL void GL_APIENTRY wgDissociateMailboxForPresent (GLuint device_id, GLuint device_generation, GLuint texture_id, GLuint texture_generation);
// The WebGPUExecutionContextTokens are represented by two 64 bit uints, but the
// generator only supports 32 bit members so we break the token into 4 parts.
GL_APICALL void GL_APIENTRY wgSetWebGPUExecutionContextToken (uint32_t type, uint32_t high_high, uint32_t high_low, uint32_t low_high, uint32_t low_low);