Remove ECS pattern: Split into new repo
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 6m2s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 6m2s
This commit is contained in:
parent
d232706f68
commit
f486486be3
32 changed files with 23 additions and 1823 deletions
|
@ -1,36 +0,0 @@
|
|||
use bevy_app::App;
|
||||
use engine_render::RenderPlugin;
|
||||
use engine_vulkan::{VulkanConfig, VulkanPlugin};
|
||||
use engine_window::{WindowPlugin, config::WindowConfig};
|
||||
use vulkano::device::{DeviceExtensions, DeviceFeatures};
|
||||
|
||||
pub fn init(app: &mut App) {
|
||||
let window_config = WindowConfig {
|
||||
title: "Rust ASH Test".to_string(),
|
||||
width: 800,
|
||||
height: 600,
|
||||
};
|
||||
|
||||
let device_extensions = DeviceExtensions {
|
||||
khr_dynamic_rendering: true,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let device_features = DeviceFeatures {
|
||||
dynamic_rendering: true,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let vulkan_config = VulkanConfig {
|
||||
instance_layers: vec![String::from("VK_LAYER_KHRONOS_validation")],
|
||||
device_extensions,
|
||||
device_features,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
app.add_plugins((
|
||||
WindowPlugin { window_config },
|
||||
VulkanPlugin { vulkan_config },
|
||||
RenderPlugin,
|
||||
));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue