| 2276 | } |
| 2277 | |
| 2278 | static void float24to32(int w, int h, const float* img24, float *img32) |
| 2279 | { |
| 2280 | const int numPixels = w * h; |
| 2281 | for (int i = 0; i != numPixels; i++) |
| 2282 | { |
| 2283 | *img32++ = *img24++; |
| 2284 | *img32++ = *img24++; |
| 2285 | *img32++ = *img24++; |
| 2286 | *img32++ = 1.0f; |
| 2287 | } |
| 2288 | } |
| 2289 | |
| 2290 | bool createMIPTextureImage(VulkanRenderDevice& vkDev, const char* filename, uint32_t mipLevels, VkImage& textureImage, VkDeviceMemory& textureImageMemory, uint32_t* width, uint32_t* height) |
| 2291 | { |
no outgoing calls
no test coverage detected