Skip to content

Commit 1f168a1

Browse files
torsteingrindvikTorstein Grindvik
andauthored
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>
1 parent 951c9bb commit 1f168a1

File tree

1 file changed

+17
-16
lines changed
  • crates/bevy_render/src/render_resource

1 file changed

+17
-16
lines changed

crates/bevy_render/src/render_resource/mod.rs

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,23 @@ pub use uniform_buffer::*;
3232
pub use wgpu::{
3333
util::BufferInitDescriptor, AdapterInfo as WgpuAdapterInfo, AddressMode, BindGroupDescriptor,
3434
BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingResource, BindingType,
35-
BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferBinding,
36-
BufferBindingType, BufferDescriptor, BufferSize, BufferUsages, ColorTargetState, ColorWrites,
37-
CommandEncoder, CommandEncoderDescriptor, CompareFunction, ComputePass, ComputePassDescriptor,
38-
ComputePipelineDescriptor as RawComputePipelineDescriptor, DepthBiasState, DepthStencilState,
39-
Extent3d, Face, Features as WgpuFeatures, FilterMode, FragmentState as RawFragmentState,
40-
FrontFace, ImageCopyBuffer, ImageCopyBufferBase, ImageCopyTexture, ImageCopyTextureBase,
41-
ImageDataLayout, ImageSubresourceRange, IndexFormat, Limits as WgpuLimits, LoadOp, Maintain,
42-
MapMode, MultisampleState, Operations, Origin3d, PipelineLayout, PipelineLayoutDescriptor,
43-
PolygonMode, PrimitiveState, PrimitiveTopology, PushConstantRange, RenderPassColorAttachment,
44-
RenderPassDepthStencilAttachment, RenderPassDescriptor,
45-
RenderPipelineDescriptor as RawRenderPipelineDescriptor, SamplerBindingType, SamplerDescriptor,
46-
ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState,
47-
StencilOperation, StencilState, StorageTextureAccess, TextureAspect, TextureDescriptor,
48-
TextureDimension, TextureFormat, TextureSampleType, TextureUsages, TextureViewDescriptor,
49-
TextureViewDimension, VertexAttribute, VertexBufferLayout as RawVertexBufferLayout,
50-
VertexFormat, VertexState as RawVertexState, VertexStepMode,
35+
BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferAsyncError,
36+
BufferBinding, BufferBindingType, BufferDescriptor, BufferSize, BufferUsages, ColorTargetState,
37+
ColorWrites, CommandEncoder, CommandEncoderDescriptor, CompareFunction, ComputePass,
38+
ComputePassDescriptor, ComputePipelineDescriptor as RawComputePipelineDescriptor,
39+
DepthBiasState, DepthStencilState, Extent3d, Face, Features as WgpuFeatures, FilterMode,
40+
FragmentState as RawFragmentState, FrontFace, ImageCopyBuffer, ImageCopyBufferBase,
41+
ImageCopyTexture, ImageCopyTextureBase, ImageDataLayout, ImageSubresourceRange, IndexFormat,
42+
Limits as WgpuLimits, LoadOp, Maintain, MapMode, MultisampleState, Operations, Origin3d,
43+
PipelineLayout, PipelineLayoutDescriptor, PolygonMode, PrimitiveState, PrimitiveTopology,
44+
PushConstantRange, RenderPassColorAttachment, RenderPassDepthStencilAttachment,
45+
RenderPassDescriptor, RenderPipelineDescriptor as RawRenderPipelineDescriptor,
46+
SamplerBindingType, SamplerDescriptor, ShaderModule, ShaderModuleDescriptor, ShaderSource,
47+
ShaderStages, StencilFaceState, StencilOperation, StencilState, StorageTextureAccess,
48+
TextureAspect, TextureDescriptor, TextureDimension, TextureFormat, TextureSampleType,
49+
TextureUsages, TextureViewDescriptor, TextureViewDimension, VertexAttribute,
50+
VertexBufferLayout as RawVertexBufferLayout, VertexFormat, VertexState as RawVertexState,
51+
VertexStepMode,
5152
};
5253

5354
pub mod encase {

0 commit comments

Comments
 (0)