From c05a9cf8f5133c9ebcd6fa0f39780aecdad82f11 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 8 Dec 2021 00:41:32 +0000 Subject: [PATCH] Expose command encoders (#3271) # Objective I'm exposing these command encoders so bevy user's can create their own command encoders. This is useful when you want to copy a texture to a texture or create a compute pass manually for example. Note: I formatted this file which might of changed the order of some exports. ## Solution Just re-export `CommandEncoder` and `CommandEncoderDescriptor`. --- pipelined/bevy_render2/src/render_resource/mod.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pipelined/bevy_render2/src/render_resource/mod.rs b/pipelined/bevy_render2/src/render_resource/mod.rs index 144fe4917f..8bf500c7d7 100644 --- a/pipelined/bevy_render2/src/render_resource/mod.rs +++ b/pipelined/bevy_render2/src/render_resource/mod.rs @@ -25,13 +25,13 @@ pub use wgpu::{ util::BufferInitDescriptor, AddressMode, BindGroupDescriptor, BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingResource, BindingType, BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferBindingType, BufferSize, - BufferUsages, ColorTargetState, ColorWrites, CompareFunction, ComputePassDescriptor, - ComputePipelineDescriptor, DepthBiasState, DepthStencilState, Extent3d, Face, FilterMode, - FragmentState as RawFragmentState, FrontFace, ImageCopyBuffer, ImageCopyBufferBase, - ImageCopyTexture, ImageCopyTextureBase, ImageDataLayout, ImageSubresourceRange, IndexFormat, - LoadOp, MultisampleState, Operations, Origin3d, PipelineLayout, PipelineLayoutDescriptor, - PolygonMode, PrimitiveState, PrimitiveTopology, RenderPassColorAttachment, - RenderPassDepthStencilAttachment, RenderPassDescriptor, + BufferUsages, ColorTargetState, ColorWrites, CommandEncoder, CommandEncoderDescriptor, + CompareFunction, ComputePassDescriptor, ComputePipelineDescriptor, DepthBiasState, + DepthStencilState, Extent3d, Face, FilterMode, FragmentState as RawFragmentState, FrontFace, + ImageCopyBuffer, ImageCopyBufferBase, ImageCopyTexture, ImageCopyTextureBase, ImageDataLayout, + ImageSubresourceRange, IndexFormat, LoadOp, MultisampleState, Operations, Origin3d, + PipelineLayout, PipelineLayoutDescriptor, PolygonMode, PrimitiveState, PrimitiveTopology, + RenderPassColorAttachment, RenderPassDepthStencilAttachment, RenderPassDescriptor, RenderPipelineDescriptor as RawRenderPipelineDescriptor, SamplerDescriptor, ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState, StencilOperation, StencilState, StorageTextureAccess, TextureAspect, TextureDescriptor, TextureDimension,