bevy_render/render_resource/
mod.rs

1mod batched_uniform_buffer;
2mod bind_group;
3mod bind_group_entries;
4mod bind_group_layout;
5mod bind_group_layout_entries;
6mod buffer;
7mod buffer_vec;
8mod gpu_array_buffer;
9mod pipeline;
10mod pipeline_cache;
11mod pipeline_specializer;
12pub mod resource_macros;
13mod shader;
14mod storage_buffer;
15mod texture;
16mod uniform_buffer;
17
18pub use bind_group::*;
19pub use bind_group_entries::*;
20pub use bind_group_layout::*;
21pub use bind_group_layout_entries::*;
22pub use buffer::*;
23pub use buffer_vec::*;
24pub use gpu_array_buffer::*;
25pub use pipeline::*;
26pub use pipeline_cache::*;
27pub use pipeline_specializer::*;
28pub use shader::*;
29pub use storage_buffer::*;
30pub use texture::*;
31pub use uniform_buffer::*;
32
33// TODO: decide where re-exports should go
34pub use wgpu::{
35    util::{
36        BufferInitDescriptor, DispatchIndirectArgs, DrawIndexedIndirectArgs, DrawIndirectArgs,
37        TextureDataOrder,
38    },
39    AdapterInfo as WgpuAdapterInfo, AddressMode, AstcBlock, AstcChannel, BindGroupDescriptor,
40    BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingResource, BindingType,
41    BlendComponent, BlendFactor, BlendOperation, BlendState, BufferAddress, BufferAsyncError,
42    BufferBinding, BufferBindingType, BufferDescriptor, BufferSize, BufferUsages, ColorTargetState,
43    ColorWrites, CommandEncoder, CommandEncoderDescriptor, CompareFunction, ComputePass,
44    ComputePassDescriptor, ComputePipelineDescriptor as RawComputePipelineDescriptor,
45    DepthBiasState, DepthStencilState, DownlevelFlags, Extent3d, Face, Features as WgpuFeatures,
46    FilterMode, FragmentState as RawFragmentState, FrontFace, ImageCopyBuffer, ImageCopyBufferBase,
47    ImageCopyTexture, ImageCopyTextureBase, ImageDataLayout, ImageSubresourceRange, IndexFormat,
48    Limits as WgpuLimits, LoadOp, Maintain, MapMode, MultisampleState, Operations, Origin3d,
49    PipelineCompilationOptions, PipelineLayout, PipelineLayoutDescriptor, PolygonMode,
50    PrimitiveState, PrimitiveTopology, PushConstantRange, RenderPassColorAttachment,
51    RenderPassDepthStencilAttachment, RenderPassDescriptor,
52    RenderPipelineDescriptor as RawRenderPipelineDescriptor, SamplerBindingType, SamplerDescriptor,
53    ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState,
54    StencilOperation, StencilState, StorageTextureAccess, StoreOp, TextureAspect,
55    TextureDescriptor, TextureDimension, TextureFormat, TextureSampleType, TextureUsages,
56    TextureViewDescriptor, TextureViewDimension, VertexAttribute,
57    VertexBufferLayout as RawVertexBufferLayout, VertexFormat, VertexState as RawVertexState,
58    VertexStepMode, COPY_BUFFER_ALIGNMENT,
59};
60
61pub use crate::mesh::VertexBufferLayout;
62
63pub mod encase {
64    pub use bevy_encase_derive::ShaderType;
65    pub use encase::*;
66}
67
68pub use self::encase::{ShaderSize, ShaderType};
69
70pub use naga::ShaderStage;