Re-export wgpu BufferAsyncError (#10611)
# Objective The `map_async` method involves a type `BufferAsyncError`: https://docs.rs/bevy/latest/bevy/render/render_resource/struct.BufferSlice.html#method.map_async This type is not re-exported in Bevy, so if a user wants to store a struct involving this type they have to add wgpu manually to their manifest. ## Solution - Re-export wgpu::BufferAsyncError --- ## Changelog ### Added - Re-export wgpu::BufferAsyncError Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com> Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
This commit is contained in:
		
							parent
							
								
									951c9bb1a2
								
							
						
					
					
						commit
						1f168a154b
					
				| @ -32,22 +32,23 @@ pub use uniform_buffer::*; | ||||
| pub use wgpu::{ | ||||
|     util::BufferInitDescriptor, AdapterInfo as WgpuAdapterInfo, AddressMode, BindGroupDescriptor, | ||||
|     BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingResource, BindingType, | ||||
|     BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferBinding, | ||||
|     BufferBindingType, BufferDescriptor, BufferSize, BufferUsages, ColorTargetState, ColorWrites, | ||||
|     CommandEncoder, CommandEncoderDescriptor, CompareFunction, ComputePass, ComputePassDescriptor, | ||||
|     ComputePipelineDescriptor as RawComputePipelineDescriptor, DepthBiasState, DepthStencilState, | ||||
|     Extent3d, Face, Features as WgpuFeatures, FilterMode, FragmentState as RawFragmentState, | ||||
|     FrontFace, ImageCopyBuffer, ImageCopyBufferBase, ImageCopyTexture, ImageCopyTextureBase, | ||||
|     ImageDataLayout, ImageSubresourceRange, IndexFormat, Limits as WgpuLimits, LoadOp, Maintain, | ||||
|     MapMode, MultisampleState, Operations, Origin3d, PipelineLayout, PipelineLayoutDescriptor, | ||||
|     PolygonMode, PrimitiveState, PrimitiveTopology, PushConstantRange, RenderPassColorAttachment, | ||||
|     RenderPassDepthStencilAttachment, RenderPassDescriptor, | ||||
|     RenderPipelineDescriptor as RawRenderPipelineDescriptor, SamplerBindingType, SamplerDescriptor, | ||||
|     ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState, | ||||
|     StencilOperation, StencilState, StorageTextureAccess, TextureAspect, TextureDescriptor, | ||||
|     TextureDimension, TextureFormat, TextureSampleType, TextureUsages, TextureViewDescriptor, | ||||
|     TextureViewDimension, VertexAttribute, VertexBufferLayout as RawVertexBufferLayout, | ||||
|     VertexFormat, VertexState as RawVertexState, VertexStepMode, | ||||
|     BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferAsyncError, | ||||
|     BufferBinding, BufferBindingType, BufferDescriptor, BufferSize, BufferUsages, ColorTargetState, | ||||
|     ColorWrites, CommandEncoder, CommandEncoderDescriptor, CompareFunction, ComputePass, | ||||
|     ComputePassDescriptor, ComputePipelineDescriptor as RawComputePipelineDescriptor, | ||||
|     DepthBiasState, DepthStencilState, Extent3d, Face, Features as WgpuFeatures, FilterMode, | ||||
|     FragmentState as RawFragmentState, FrontFace, ImageCopyBuffer, ImageCopyBufferBase, | ||||
|     ImageCopyTexture, ImageCopyTextureBase, ImageDataLayout, ImageSubresourceRange, IndexFormat, | ||||
|     Limits as WgpuLimits, LoadOp, Maintain, MapMode, MultisampleState, Operations, Origin3d, | ||||
|     PipelineLayout, PipelineLayoutDescriptor, PolygonMode, PrimitiveState, PrimitiveTopology, | ||||
|     PushConstantRange, RenderPassColorAttachment, RenderPassDepthStencilAttachment, | ||||
|     RenderPassDescriptor, RenderPipelineDescriptor as RawRenderPipelineDescriptor, | ||||
|     SamplerBindingType, SamplerDescriptor, ShaderModule, ShaderModuleDescriptor, ShaderSource, | ||||
|     ShaderStages, StencilFaceState, StencilOperation, StencilState, StorageTextureAccess, | ||||
|     TextureAspect, TextureDescriptor, TextureDimension, TextureFormat, TextureSampleType, | ||||
|     TextureUsages, TextureViewDescriptor, TextureViewDimension, VertexAttribute, | ||||
|     VertexBufferLayout as RawVertexBufferLayout, VertexFormat, VertexState as RawVertexState, | ||||
|     VertexStepMode, | ||||
| }; | ||||
| 
 | ||||
| pub mod encase { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Torstein Grindvik
						Torstein Grindvik