mesh correct and textures too
This commit is contained in:
parent
31d4a139ef
commit
8afb2d2a3c
5 changed files with 9 additions and 5 deletions
src
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue