From 41756e71df532ef9921917e4ef23c84c6ee8ffd0 Mon Sep 17 00:00:00 2001 From: Xiang Silian Date: Fri, 19 Sep 2025 15:54:03 +0800 Subject: [PATCH] =?UTF-8?q?windows=E7=AB=AF=E8=BF=90=E8=A1=8C=E9=80=9A?= =?UTF-8?q?=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/api/texture_loading/texture_loading.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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();