From dbf9aea0bad930006776fe0aa85c39ba9a5d36fd Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Sun, 28 Jul 2024 10:21:40 +0200 Subject: [PATCH] DynDevice fence --- wgpu-hal/src/dynamic/device.rs | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/wgpu-hal/src/dynamic/device.rs b/wgpu-hal/src/dynamic/device.rs index 3bfd9df78..c2dd42ac7 100644 --- a/wgpu-hal/src/dynamic/device.rs +++ b/wgpu-hal/src/dynamic/device.rs @@ -4,14 +4,14 @@ use crate::{ Api, BindGroupDescriptor, BindGroupLayoutDescriptor, BufferDescriptor, BufferMapping, CommandEncoderDescriptor, ComputePipelineDescriptor, Device, DeviceError, DynBuffer, - DynResource, Label, MemoryRange, PipelineCacheDescriptor, PipelineCacheError, PipelineError, - PipelineLayoutDescriptor, RenderPipelineDescriptor, SamplerDescriptor, ShaderError, - ShaderInput, ShaderModuleDescriptor, TextureDescriptor, TextureViewDescriptor, + DynResource, FenceValue, Label, MemoryRange, PipelineCacheDescriptor, PipelineCacheError, + PipelineError, PipelineLayoutDescriptor, RenderPipelineDescriptor, SamplerDescriptor, + ShaderError, ShaderInput, ShaderModuleDescriptor, TextureDescriptor, TextureViewDescriptor, }; use super::{ DynAccelerationStructure, DynBindGroup, DynBindGroupLayout, DynCommandEncoder, - DynComputePipeline, DynPipelineCache, DynPipelineLayout, DynQuerySet, DynQueue, + DynComputePipeline, DynFence, DynPipelineCache, DynPipelineLayout, DynQuerySet, DynQueue, DynRenderPipeline, DynResourceExt as _, DynSampler, DynShaderModule, DynTexture, DynTextureView, }; @@ -123,6 +123,10 @@ pub trait DynDevice: DynResource { desc: &wgt::QuerySetDescriptor