MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / float24to32

Function float24to32

shared/UtilsVulkan.cpp:2278–2288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2276}
2277
2278static 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
2290bool createMIPTextureImage(VulkanRenderDevice& vkDev, const char* filename, uint32_t mipLevels, VkImage& textureImage, VkDeviceMemory& textureImageMemory, uint32_t* width, uint32_t* height)
2291{

Callers 2

createCubeTextureImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected