mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
Make CreateRenderPipelineAsync use Descriptor2
Since it isn't used by anyone yet we can make a breaking change to CreateRenderPipelineAsync to immediately start using RenderPipelineDescriptor2. Bug: dawn:1177501 Change-Id: I9f88c6fc1b325b7a9356536e2a071d4f17abd6ea Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45280 Commit-Queue: Brandon Jones <bajones@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
6b80743d3f
commit
8ac6a481a3
@@ -277,7 +277,7 @@ namespace dawn_wire { namespace client {
|
||||
return true;
|
||||
}
|
||||
|
||||
void Device::CreateRenderPipelineAsync(WGPURenderPipelineDescriptor const* descriptor,
|
||||
void Device::CreateRenderPipelineAsync(WGPURenderPipelineDescriptor2 const* descriptor,
|
||||
WGPUCreateRenderPipelineAsyncCallback callback,
|
||||
void* userdata) {
|
||||
if (client->IsDisconnected()) {
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace dawn_wire { namespace client {
|
||||
void CreateComputePipelineAsync(WGPUComputePipelineDescriptor const* descriptor,
|
||||
WGPUCreateComputePipelineAsyncCallback callback,
|
||||
void* userdata);
|
||||
void CreateRenderPipelineAsync(WGPURenderPipelineDescriptor const* descriptor,
|
||||
void CreateRenderPipelineAsync(WGPURenderPipelineDescriptor2 const* descriptor,
|
||||
WGPUCreateRenderPipelineAsyncCallback callback,
|
||||
void* userdata);
|
||||
|
||||
|
||||
@@ -149,10 +149,11 @@ namespace dawn_wire { namespace server {
|
||||
SerializeCommand(cmd);
|
||||
}
|
||||
|
||||
bool Server::DoDeviceCreateRenderPipelineAsync(ObjectId deviceId,
|
||||
uint64_t requestSerial,
|
||||
ObjectHandle pipelineObjectHandle,
|
||||
const WGPURenderPipelineDescriptor* descriptor) {
|
||||
bool Server::DoDeviceCreateRenderPipelineAsync(
|
||||
ObjectId deviceId,
|
||||
uint64_t requestSerial,
|
||||
ObjectHandle pipelineObjectHandle,
|
||||
const WGPURenderPipelineDescriptor2* descriptor) {
|
||||
auto* device = DeviceObjects().Get(deviceId);
|
||||
if (device == nullptr) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user