mirror of
https://github.com/bevyengine/bevy
synced 2025-02-17 06:28:34 +00:00
Naga export (#3714)
# Objective In order to create a glsl shader, we must provide the `naga::ShaderStage` type which is not exported by bevy, meaning a user would have to manually include naga just to access this type. `pub fn from_glsl(source: impl Into<Cow<'static, str>>, stage: naga::ShaderStage) -> Shader {` ## Solution Re-rexport naga::ShaderStage from `render_resources`
This commit is contained in:
parent
44d09dc46d
commit
ca029ef0eb
1 changed files with 2 additions and 0 deletions
|
@ -42,3 +42,5 @@ pub use wgpu::{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use bevy_crevice::*;
|
pub use bevy_crevice::*;
|
||||||
|
|
||||||
|
pub use naga::ShaderStage;
|
||||||
|
|
Loading…
Add table
Reference in a new issue