This commit is contained in:
galister
2024-02-01 00:22:47 +01:00
parent 49fb3ce424
commit 7ae7e8f176

View File

@@ -122,9 +122,7 @@ impl WlxGraphics {
pub fn new_openxr(xr_instance: openxr::Instance, system: openxr::SystemId) -> Arc<Self> { pub fn new_openxr(xr_instance: openxr::Instance, system: openxr::SystemId) -> Arc<Self> {
use std::ffi::{self, c_char, CString}; use std::ffi::{self, c_char, CString};
use ash::vk::{ use ash::vk::PhysicalDeviceDynamicRenderingFeatures;
PhysicalDeviceDynamicRenderingFeatures, PhysicalDeviceDynamicRenderingFeaturesBuilder,
};
use vulkano::Handle; use vulkano::Handle;
let vk_target_version = vk::make_api_version(0, 1, 3, 0); // Vulkan 1.1 guarantees multiview support let vk_target_version = vk::make_api_version(0, 1, 3, 0); // Vulkan 1.1 guarantees multiview support
@@ -686,7 +684,6 @@ impl WlxGraphics {
)) ))
} }
#[allow(dead_code)]
pub fn create_pipeline_dynamic( pub fn create_pipeline_dynamic(
self: &Arc<Self>, self: &Arc<Self>,
vert: Arc<ShaderModule>, vert: Arc<ShaderModule>,
@@ -804,7 +801,6 @@ impl WlxCommandBuffer {
.unwrap(); .unwrap();
} }
#[allow(dead_code)]
pub fn begin_rendering(&mut self, render_target: Arc<ImageView>) { pub fn begin_rendering(&mut self, render_target: Arc<ImageView>) {
self.command_buffer self.command_buffer
.begin_rendering(RenderingInfo { .begin_rendering(RenderingInfo {
@@ -900,7 +896,6 @@ impl WlxCommandBuffer {
.unwrap(); .unwrap();
} }
#[allow(dead_code)]
pub fn end_rendering(&mut self) { pub fn end_rendering(&mut self) {
self.command_buffer.end_rendering().unwrap(); self.command_buffer.end_rendering().unwrap();
} }
@@ -921,7 +916,6 @@ impl WlxCommandBuffer {
} }
} }
#[allow(dead_code)]
pub struct WlxPipelineDynamic {} pub struct WlxPipelineDynamic {}
pub struct WlxPipelineLegacy { pub struct WlxPipelineLegacy {
@@ -938,7 +932,6 @@ pub struct WlxPipeline<D> {
} }
impl WlxPipeline<WlxPipelineDynamic> { impl WlxPipeline<WlxPipelineDynamic> {
#[allow(dead_code)]
fn new( fn new(
graphics: Arc<WlxGraphics>, graphics: Arc<WlxGraphics>,
vert: Arc<ShaderModule>, vert: Arc<ShaderModule>,
@@ -1001,7 +994,6 @@ impl WlxPipeline<WlxPipelineDynamic> {
data: WlxPipelineDynamic {}, data: WlxPipelineDynamic {},
} }
} }
#[allow(dead_code)]
pub fn create_pass( pub fn create_pass(
self: &Arc<Self>, self: &Arc<Self>,
dimensions: [f32; 2], dimensions: [f32; 2],