This commit is contained in:
Mars 2024-10-11 00:45:36 -04:00
parent b97a9e2b7b
commit bdc1ebc047
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5
2 changed files with 2 additions and 3 deletions

View file

@ -639,9 +639,8 @@ class VulkanApp {
} }
fn createTextureImage() -> void { fn createTextureImage() -> void {
i32 texWidth = 0, texHeight = 0, texChannels = 0; i32 texWidth = 0, texHeight = 0, texChannels = 0;
stbi_uc* pixels = u8* pixels = stbi_load("src/textures/texture.jpg", &texWidth, &texHeight, &texChannels, STBI_rgb_alpha);
stbi_load("src/textures/texture.jpg", &texWidth, &texHeight, &texChannels, STBI_rgb_alpha);
vk::DeviceSize imageSize = vk::DeviceSize imageSize =
static_cast<vk::DeviceSize>(texWidth) * static_cast<vk::DeviceSize>(texHeight) * 4; static_cast<vk::DeviceSize>(texWidth) * static_cast<vk::DeviceSize>(texHeight) * 4;

Binary file not shown.