This commit is contained in:
janis 2026-10-24 13:14:57 +02:00
parent e2f1ceffd8
commit 08fbc0323c
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8
4 changed files with 10 additions and 6 deletions

View file

@ -181,7 +181,7 @@ mod api_demo {
BufferUsageFlags::TRANSFER_DST | BufferUsageFlags::INDIRECT_BUFFER,
MemoryLocation::GpuOnly,
);
let texture_indices = builder.make_buffer(
let _texture_indices = builder.make_buffer(
textures_indices_size as u64,
BufferUsageFlags::TRANSFER_DST | BufferUsageFlags::STORAGE_BUFFER,
MemoryLocation::GpuOnly,

View file

@ -396,7 +396,7 @@ impl<'cmd> CommandList<'cmd> {
// construct barriers
// TODO: need to know each images aspects at this point
for barrier in barriers {
for _barrier in barriers {
// stuff
}

View file

@ -1,7 +1,11 @@
use std::sync::Arc;
use ash::vk;
use glam::{f32::Mat4, vec3};
use glam::{
camera::rh::{proj, view},
f32::Mat4,
vec3,
};
use gpu_allocator::MemoryLocation;
pub use crate::egui_pass::{egui_pass, egui_pre_pass};
@ -319,14 +323,14 @@ impl Wireframe {
let cmd = &ctx.cmd;
//let model = Mat4::from_scale(vec3(0.01, 0.01, 0.01));
let proj = Mat4::perspective_lh(
let proj = proj::vulkan::perspective(
core::f32::consts::FRAC_PI_4,
target.width() as f32 / target.height() as f32,
0.1,
100.0,
);
let pos = vec3(0.0, 0.0, -5.0);
let view = Mat4::look_at_rh(pos, pos + vec3(0.0, 0.0, 1.0), vec3(0.0, 1.0, 0.0));
let view = view::look_at_mat4(pos, pos + vec3(0.0, 0.0, 1.0), vec3(0.0, 1.0, 0.0));
let to_clip = proj * view; // * model;
let color_attachment = &vk::RenderingAttachmentInfo::default()

View file

@ -62,7 +62,7 @@ impl SyncThreadpool {
use std::sync::atomic::Ordering;
match self
.num_threads
.fetch_update(Ordering::Release, Ordering::Acquire, |i| {
.try_update(Ordering::Release, Ordering::Acquire, |i| {
if i < self.max_threads {
Some(i + 1)
} else {