Try add renderdoc vulkan layer
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 4m59s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 4m59s
This commit is contained in:
parent
6b6534df76
commit
1d0ef32f60
2 changed files with 11 additions and 3 deletions
|
@ -41,6 +41,10 @@ impl App {
|
|||
pub fn new(event_loop: &EventLoop<()>) -> Self {
|
||||
let library = VulkanLibrary::new().unwrap();
|
||||
|
||||
for layer in library.layer_properties().unwrap() {
|
||||
log::debug!("Available layer: {}", layer.name());
|
||||
}
|
||||
|
||||
let required_extensions = Surface::required_extensions(event_loop).unwrap();
|
||||
|
||||
let instance = Instance::new(
|
||||
|
@ -52,6 +56,7 @@ impl App {
|
|||
enabled_extensions: required_extensions,
|
||||
enabled_layers: vec![
|
||||
String::from("VK_LAYER_KHRONOS_validation"),
|
||||
String::from("VK_LAYER_RENDERDOC_Capture"),
|
||||
],
|
||||
..Default::default()
|
||||
},
|
||||
|
@ -90,7 +95,7 @@ impl App {
|
|||
})
|
||||
.expect("no suitable physical device found");
|
||||
|
||||
println!(
|
||||
log::debug!(
|
||||
"Using device: {} (type: {:?})",
|
||||
physical_device.properties().device_name,
|
||||
physical_device.properties().device_type,
|
||||
|
@ -100,6 +105,8 @@ impl App {
|
|||
device_extensions.khr_dynamic_rendering = true;
|
||||
}
|
||||
|
||||
log::debug!("Using device extensions: {:#?}", device_extensions);
|
||||
|
||||
let (device, mut queues) = Device::new(
|
||||
physical_device,
|
||||
DeviceCreateInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue