forked from pupbrained/vulkan-test
oops
This commit is contained in:
parent
b97a9e2b7b
commit
bdc1ebc047
|
@ -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.
Loading…
Reference in a new issue