#include "exception/UnsupportedTextureFormatError.hpp"
#include "resource/Context.hpp"
#include "resource/Image.hpp"
#include "utils/GetBytesPerPixel.hpp"
#include "utils/webgpu.hpp"
#include <array>
#include <bit>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <functional>
#include <glm/gtc/packing.hpp>
#include <glm/vec2.hpp>
#include <glm/vec4.hpp>
#include <vector>
Go to the source code of this file.
|
| static void | Graphic::Resource::TextureRetrieveCallback (WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2) |
| | Callback invoked when a readback buffer mapping completes; converts mapped texture data into RGBA8 pixels stored in the provided CallbackData.
|