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
f3323f8b14
commit
3b1cda2ebd
@ -55,10 +55,10 @@ pub use wgpu::{
|
|||||||
ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState,
|
ShaderModule, ShaderModuleDescriptor, ShaderSource, ShaderStages, StencilFaceState,
|
||||||
StencilOperation, StencilState, StorageTextureAccess, StoreOp, TexelCopyBufferInfo,
|
StencilOperation, StencilState, StorageTextureAccess, StoreOp, TexelCopyBufferInfo,
|
||||||
TexelCopyBufferLayout, TexelCopyTextureInfo, TextureAspect, TextureDescriptor,
|
TexelCopyBufferLayout, TexelCopyTextureInfo, TextureAspect, TextureDescriptor,
|
||||||
TextureDimension, TextureFormat, TextureSampleType, TextureUsages,
|
TextureDimension, TextureFormat, TextureFormatFeatureFlags, TextureFormatFeatures,
|
||||||
TextureView as WgpuTextureView, TextureViewDescriptor, TextureViewDimension, VertexAttribute,
|
TextureSampleType, TextureUsages, TextureView as WgpuTextureView, TextureViewDescriptor,
|
||||||
VertexBufferLayout as RawVertexBufferLayout, VertexFormat, VertexState as RawVertexState,
|
TextureViewDimension, VertexAttribute, VertexBufferLayout as RawVertexBufferLayout,
|
||||||
VertexStepMode, COPY_BUFFER_ALIGNMENT,
|
VertexFormat, VertexState as RawVertexState, VertexStepMode, COPY_BUFFER_ALIGNMENT,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use crate::mesh::VertexBufferLayout;
|
pub use crate::mesh::VertexBufferLayout;
|
||||||
|
Loading…
Reference in New Issue
Block a user