openxr lasers

This commit is contained in:
galister
2024-01-28 17:15:50 +01:00
parent d66d39066c
commit e1e8165cc6
8 changed files with 380 additions and 198 deletions

View File

@@ -737,12 +737,12 @@ impl WlxGraphics {
}
pub struct WlxCommandBuffer {
graphics: Arc<WlxGraphics>,
command_buffer: RecordingCommandBuffer,
pub graphics: Arc<WlxGraphics>,
pub command_buffer: RecordingCommandBuffer,
}
impl WlxCommandBuffer {
pub fn begin_render_pass(mut self, pipeline: &WlxPipeline) -> Self {
pub fn begin_render_pass(&mut self, pipeline: &WlxPipeline) {
self.command_buffer
.begin_render_pass(
RenderPassBeginInfo {
@@ -755,7 +755,6 @@ impl WlxCommandBuffer {
},
)
.unwrap();
self
}
pub fn run_ref(&mut self, pass: &WlxPass) -> &mut Self {
@@ -832,11 +831,10 @@ impl WlxCommandBuffer {
}
impl WlxCommandBuffer {
pub fn end_render_pass(mut self) -> Self {
pub fn end_render_pass(&mut self) {
self.command_buffer
.end_render_pass(SubpassEndInfo::default())
.unwrap();
self
}
pub fn build(self) -> Arc<CommandBuffer> {