core: rename mbgl namespace to mln (#4487)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -62,4 +62,4 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace gfx {
|
||||
class Renderable;
|
||||
} // namespace gfx
|
||||
@@ -75,10 +75,10 @@ protected:
|
||||
std::vector<GroupEntry> debugGroupNames;
|
||||
std::vector<gfx::DebugGroup<gfx::RenderPass>> renderDebugGroups;
|
||||
std::vector<gfx::DebugGroup<gfx::UploadPass>> uploadDebugGroups;
|
||||
mbgl::unordered_set<RenderPass*> renderPasses;
|
||||
mbgl::unordered_set<UploadPass*> uploadPasses;
|
||||
mln::unordered_set<RenderPass*> renderPasses;
|
||||
mln::unordered_set<UploadPass*> uploadPasses;
|
||||
UploadPass* currentUploadPass = nullptr;
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
class RenderStaticData;
|
||||
namespace gfx {
|
||||
// Forward declaration
|
||||
@@ -130,4 +130,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <mbgl/gfx/draw_scope.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -17,4 +17,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// Forward declare WebGPU types
|
||||
typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout;
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace gfx {
|
||||
class UploadPass;
|
||||
class DepthMode;
|
||||
@@ -61,4 +61,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -26,4 +26,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <mbgl/gfx/dynamic_texture.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -27,4 +27,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <mbgl/gfx/index_buffer.hpp>
|
||||
#include <mbgl/webgpu/buffer_resource.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class IndexBufferResource : public gfx::IndexBufferResource {
|
||||
@@ -30,4 +30,4 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <mbgl/renderer/layer_group.hpp>
|
||||
#include <mbgl/webgpu/uniform_buffer.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class PaintParameters;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace webgpu {
|
||||
/**
|
||||
* A layer group for non-tile-based drawables
|
||||
*/
|
||||
class LayerGroup : public mbgl::LayerGroup {
|
||||
class LayerGroup : public mln::LayerGroup {
|
||||
public:
|
||||
LayerGroup(int32_t layerIndex, std::size_t initialCapacity, std::string name);
|
||||
~LayerGroup() override {}
|
||||
@@ -28,4 +28,4 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <mbgl/gfx/offscreen_texture.hpp>
|
||||
#include <mbgl/gfx/types.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -20,4 +20,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// Forward declare WebGPU types
|
||||
typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder;
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace gfx {
|
||||
class CommandEncoder;
|
||||
class UniformBufferArray;
|
||||
@@ -49,4 +49,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <cstdlib>
|
||||
#include <optional>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class RendererBackend;
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
// explicitly can override this method.
|
||||
}
|
||||
|
||||
virtual const mbgl::webgpu::RendererBackend& getBackend() const = 0;
|
||||
virtual const mln::webgpu::RendererBackend& getBackend() const = 0;
|
||||
virtual const WGPUCommandEncoder& getCommandEncoder() const = 0;
|
||||
virtual WGPURenderPassEncoder getRenderPassEncoder() const = 0;
|
||||
|
||||
@@ -51,4 +51,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <mbgl/webgpu/wgpu_cpp_compat.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class ProgramParameters;
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
// Surface texture access - can be overridden by platform backends
|
||||
virtual void* getCurrentTextureView();
|
||||
virtual void* getDepthStencilView();
|
||||
virtual mbgl::Size getFramebufferSize() const;
|
||||
virtual mln::Size getFramebufferSize() const;
|
||||
|
||||
void setDepthStencilFormat(wgpu::TextureFormat);
|
||||
wgpu::TextureFormat getDepthStencilFormat() const;
|
||||
@@ -68,4 +68,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -60,5 +60,5 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
#include <functional>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <mbgl/renderer/layer_group.hpp>
|
||||
#include <mbgl/webgpu/uniform_buffer.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class PaintParameters;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace webgpu {
|
||||
/**
|
||||
* A layer group for tile-based drawables
|
||||
*/
|
||||
class TileLayerGroup : public mbgl::TileLayerGroup {
|
||||
class TileLayerGroup : public mln::TileLayerGroup {
|
||||
public:
|
||||
TileLayerGroup(int32_t layerIndex, std::size_t initialCapacity, std::string name);
|
||||
~TileLayerGroup() override {}
|
||||
@@ -28,4 +28,4 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <mbgl/gfx/uniform_buffer.hpp>
|
||||
#include <webgpu/webgpu.h>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -57,4 +57,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <mbgl/gfx/upload_pass.hpp>
|
||||
#include <mbgl/gfx/renderbuffer.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace gfx {
|
||||
class CommandEncoder;
|
||||
class Renderable;
|
||||
@@ -67,4 +67,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <mbgl/gfx/types.hpp>
|
||||
#include <mbgl/gfx/vertex_attribute.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace gfx {
|
||||
class VertexBufferResource;
|
||||
} // namespace gfx
|
||||
@@ -49,4 +49,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class Context;
|
||||
@@ -41,4 +41,4 @@ protected:
|
||||
using UniqueVertexBufferResource = std::unique_ptr<VertexBufferResource>;
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
Reference in New Issue
Block a user