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::{ | pub use wgpu::{ | ||||||
|     util::BufferInitDescriptor, AdapterInfo as WgpuAdapterInfo, AddressMode, BindGroupDescriptor, |     util::BufferInitDescriptor, AdapterInfo as WgpuAdapterInfo, AddressMode, BindGroupDescriptor, | ||||||
|     BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingResource, BindingType, |     BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingResource, BindingType, | ||||||
|     BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferBinding, |     BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferAsyncError, | ||||||
|     BufferBindingType, BufferDescriptor, BufferSize, BufferUsages, ColorTargetState, ColorWrites, |     BufferBinding, BufferBindingType, BufferDescriptor, BufferSize, BufferUsages, ColorTargetState, | ||||||
|     CommandEncoder, CommandEncoderDescriptor, CompareFunction, ComputePass, ComputePassDescriptor, |     ColorWrites, CommandEncoder, CommandEncoderDescriptor, CompareFunction, ComputePass, | ||||||
|     ComputePipelineDescriptor as RawComputePipelineDescriptor, DepthBiasState, DepthStencilState, |     ComputePassDescriptor, ComputePipelineDescriptor as RawComputePipelineDescriptor, | ||||||
|     Extent3d, Face, Features as WgpuFeatures, FilterMode, FragmentState as RawFragmentState, |     DepthBiasState, DepthStencilState, Extent3d, Face, Features as WgpuFeatures, FilterMode, | ||||||
|     FrontFace, ImageCopyBuffer, ImageCopyBufferBase, ImageCopyTexture, ImageCopyTextureBase, |     FragmentState as RawFragmentState, FrontFace, ImageCopyBuffer, ImageCopyBufferBase, | ||||||
|     ImageDataLayout, ImageSubresourceRange, IndexFormat, Limits as WgpuLimits, LoadOp, Maintain, |     ImageCopyTexture, ImageCopyTextureBase, ImageDataLayout, ImageSubresourceRange, IndexFormat, | ||||||
|     MapMode, MultisampleState, Operations, Origin3d, PipelineLayout, PipelineLayoutDescriptor, |     Limits as WgpuLimits, LoadOp, Maintain, MapMode, MultisampleState, Operations, Origin3d, | ||||||
|     PolygonMode, PrimitiveState, PrimitiveTopology, PushConstantRange, RenderPassColorAttachment, |     PipelineLayout, PipelineLayoutDescriptor, PolygonMode, PrimitiveState, PrimitiveTopology, | ||||||
|     RenderPassDepthStencilAttachment, RenderPassDescriptor, |     PushConstantRange, RenderPassColorAttachment, RenderPassDepthStencilAttachment, | ||||||
|     RenderPipelineDescriptor as RawRenderPipelineDescriptor, SamplerBindingType, SamplerDescriptor, |     RenderPassDescriptor, RenderPipelineDescriptor as RawRenderPipelineDescriptor, | ||||||
|     ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState, |     SamplerBindingType, SamplerDescriptor, ShaderModule, ShaderModuleDescriptor, ShaderSource, | ||||||
|     StencilOperation, StencilState, StorageTextureAccess, TextureAspect, TextureDescriptor, |     ShaderStages, StencilFaceState, StencilOperation, StencilState, StorageTextureAccess, | ||||||
|     TextureDimension, TextureFormat, TextureSampleType, TextureUsages, TextureViewDescriptor, |     TextureAspect, TextureDescriptor, TextureDimension, TextureFormat, TextureSampleType, | ||||||
|     TextureViewDimension, VertexAttribute, VertexBufferLayout as RawVertexBufferLayout, |     TextureUsages, TextureViewDescriptor, TextureViewDimension, VertexAttribute, | ||||||
|     VertexFormat, VertexState as RawVertexState, VertexStepMode, |     VertexBufferLayout as RawVertexBufferLayout, VertexFormat, VertexState as RawVertexState, | ||||||
|  |     VertexStepMode, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| pub mod encase { | pub mod encase { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Torstein Grindvik
						Torstein Grindvik