mesh correct and textures too

This commit is contained in:
zomseffen 2024-04-27 08:06:18 +02:00
parent 31d4a139ef
commit 8afb2d2a3c
5 changed files with 9 additions and 5 deletions

View file

@ -29,6 +29,10 @@ pub unsafe fn create_texture_image(
let size = reader.info().raw_bytes() as u64;
let (width, height) = reader.info().size();
if width != 1024 || height != 1024 || reader.info().color_type != png::ColorType::Rgba {
panic!("Invalid texture image (use https://kylemayes.github.io/vulkanalia/images/viking_room.png).");
}
let (staging_buffer, staging_buffer_memory) = buffer::create_buffer(
instance,
device,