Expose TextureFormatFeatureFlags
, TextureFormatFeatures
from wgpu (#18721)
# Objective This PR exposes the wgpu types necessary to use the result of `RenderAdapter::get_texture_format_features`: ```rust use bevy::render::render_resource::TextureFormatFeatureFlags; // ^ now available let adapter = world.resource::<RenderAdapter>(); let flags = adapter.get_texture_format_features(TextureFormat::R32Float).flags; let filtering = flags.contains(TextureFormatFeatureFlags::FILTERABLE); ``` ## Solution - Expose `TextureFormatFeatureFlags`, `TextureFormatFeatures` like other wgpu types in bevy_render
This commit is contained in:
parent
989b360fec
commit
5dcfa52297
@ -55,10 +55,10 @@ pub use wgpu::{
|
||||
ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState,
|
||||
StencilOperation, StencilState, StorageTextureAccess, StoreOp, TexelCopyBufferInfo,
|
||||
TexelCopyBufferLayout, TexelCopyTextureInfo, TextureAspect, TextureDescriptor,
|
||||
TextureDimension, TextureFormat, TextureSampleType, TextureUsages,
|
||||
TextureView as WgpuTextureView, TextureViewDescriptor, TextureViewDimension, VertexAttribute,
|
||||
VertexBufferLayout as RawVertexBufferLayout, VertexFormat, VertexState as RawVertexState,
|
||||
VertexStepMode, COPY_BUFFER_ALIGNMENT,
|
||||
TextureDimension, TextureFormat, TextureFormatFeatureFlags, TextureFormatFeatures,
|
||||
TextureSampleType, TextureUsages, TextureView as WgpuTextureView, TextureViewDescriptor,
|
||||
TextureViewDimension, VertexAttribute, VertexBufferLayout as RawVertexBufferLayout,
|
||||
VertexFormat, VertexState as RawVertexState, VertexStepMode, COPY_BUFFER_ALIGNMENT,
|
||||
};
|
||||
|
||||
pub use crate::mesh::VertexBufferLayout;
|
||||
|
Loading…
Reference in New Issue
Block a user