reuse ImageKey for gpucanvascontext (#33517)

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-09-22 13:57:50 +02:00 committed by GitHub
parent 3a0d27b231
commit bab769a7cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 37 deletions

View file

@ -103,7 +103,7 @@ pub enum WebGPURequest {
/// present only on ASYNC versions
async_sender: Option<IpcSender<WebGPUResponse>>,
},
CreateContext(IpcSender<WebGPUContextId>),
CreateContext(IpcSender<(WebGPUContextId, ImageKey)>),
CreatePipelineLayout {
device_id: id::DeviceId,
pipeline_layout_id: id::PipelineLayoutId,
@ -134,7 +134,7 @@ pub enum WebGPURequest {
queue_id: id::QueueId,
buffer_ids: ArrayVec<id::BufferId, PRESENTATION_BUFFER_COUNT>,
context_id: WebGPUContextId,
sender: IpcSender<ImageKey>,
image_key: ImageKey,
format: ImageFormat,
size: DeviceIntSize,
},