MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / write_image

Function write_image

components/filesystem/src/legacy.cpp:135–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void write_image(const uint8_t *data, const std::string &filename, const uint32_t width, const uint32_t height, const uint32_t components, const uint32_t row_stride)
136{
137 stbi_write_png((path::get(path::Type::Screenshots) + filename + ".png").c_str(), width, height, components, data, row_stride);
138}
139
140} // namespace fs
141} // namespace vkb

Callers 1

screenshotFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected