Files
MapLibreParticleLab/include/mbgl/webgpu/offscreen_texture.hpp
2026-07-07 14:26:16 +02:00

24 lines
550 B
C++

#pragma once
#include <mbgl/gfx/offscreen_texture.hpp>
#include <mbgl/gfx/types.hpp>
namespace mbgl {
namespace webgpu {
class Context;
class Texture2D;
class OffscreenTexture final : public gfx::OffscreenTexture {
public:
OffscreenTexture(Context&, Size size, gfx::TextureChannelDataType type, bool depth, bool stencil);
bool isRenderable() override;
PremultipliedImage readStillImage() override;
const gfx::Texture2DPtr& getTexture() override;
gfx::Texture2DPtr takeTexture();
};
} // namespace webgpu
} // namespace mbgl