diff --git a/samples/api/texture_loading/texture_loading.cpp b/samples/api/texture_loading/texture_loading.cpp index 40b6413..a5cdd41 100644 --- a/samples/api/texture_loading/texture_loading.cpp +++ b/samples/api/texture_loading/texture_loading.cpp @@ -1189,17 +1189,23 @@ bool TextureLoading::prepare(const vkb::ApplicationOptions& options) int rowStride = width*4; auto testImage = generateSimpleTestImage(width, height, 80); size_t dataSize = testImage.size(); - std::cout << "Generated test image: " << width << "x" << height << std::endl; - std::cout << "Row stride: " << rowStride << std::endl; - std::cout << "Data size: " << dataSize << " bytes" << std::endl; processWithVulkan(testImage.data(), width, height, rowStride, dataSize, cam_text); + width = 256; + height = 256; + rowStride = width * 4; + auto arrowImage = generateSimpleTestImage(width, height, 80); + dataSize = arrowImage.size(); + processWithVulkan(arrowImage.data(), width, height, rowStride, dataSize, texture_point); + load_texture(); generate_quad(); prepare_uniform_buffers(); prepare_uniform_buffers_point(); + setup_descriptor_pool(); + setup_descriptor_set_layout(); setup_descriptor_set(); @@ -1213,7 +1219,7 @@ bool TextureLoading::prepare(const vkb::ApplicationOptions& options) prepare_pipeline_bg(); prepare_pipeline_point(); - setup_descriptor_pool(); + prepared = true; //start();