convert the replacement modules to wesl
This commit is contained in:
@@ -47,9 +47,9 @@ pub struct TapeRenderAssetPlugin;
|
||||
|
||||
impl Plugin for TapeRenderAssetPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
load_shader_library!(app, "aabb.wesl");
|
||||
load_shader_library!(app, "metadata_types.wesl");
|
||||
load_shader_library!(app, "implicit.wesl");
|
||||
load_shader_library!(app, "../../shaders/aabb.wesl");
|
||||
load_shader_library!(app, "../../shaders/metadata_types.wesl");
|
||||
load_shader_library!(app, "../../shaders/implicit.wesl");
|
||||
|
||||
app.add_plugins(RenderAssetPlugin::<RenderTape>::default())
|
||||
.add_plugins(TapeAllocatorPlugin);
|
||||
@@ -58,9 +58,9 @@ impl Plugin for TapeRenderAssetPlugin {
|
||||
return;
|
||||
};
|
||||
|
||||
let enable_gen = include_spirv!("../../shaders_out/replacement/enable_gen.comp.glsl.spv");
|
||||
let enable_gen = include_spirv!("../../shaders_out/enable_gen.orig.spv");
|
||||
|
||||
render_app.insert_resource(ReplacementModules {
|
||||
let modules = ReplacementModules {
|
||||
enable_gen: get_module(enable_gen.clone()),
|
||||
fuzz: get_module(enable_gen.clone()),
|
||||
normals: get_module(enable_gen.clone()),
|
||||
@@ -69,7 +69,9 @@ impl Plugin for TapeRenderAssetPlugin {
|
||||
enable_gen_layout: BindGroupLayoutDescriptor::new("Enable Gen Layout", &[]),
|
||||
fuzz_layout: BindGroupLayoutDescriptor::new("Tape Fuzz Layout", &[]),
|
||||
spatial_texture_layout: BindGroupLayoutDescriptor::new("Spatial Texture Layout", &[]),
|
||||
});
|
||||
};
|
||||
|
||||
render_app.insert_resource(modules);
|
||||
|
||||
render_app.add_systems(
|
||||
Render,
|
||||
|
||||
Reference in New Issue
Block a user