dawn_native: Fixup namespace from backend:: to dawn_native::

This commit is contained in:
Corentin Wallez
2018-07-24 16:45:45 +02:00
committed by Corentin Wallez
parent 30965a7729
commit 49a65d0c0c
232 changed files with 474 additions and 474 deletions

View File

@@ -16,7 +16,7 @@
#include "common/Assert.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
namespace {
GLenum GLBlendFactor(dawn::BlendFactor factor, bool alpha) {
@@ -93,4 +93,4 @@ namespace backend { namespace opengl {
info.colorWriteMask & dawn::ColorWriteMask::Alpha);
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class BlendState : public BlendStateBase {
public:
@@ -28,6 +28,6 @@ namespace backend { namespace opengl {
void ApplyNow(uint32_t attachment);
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_BLENDSTATEGL_H_

View File

@@ -14,7 +14,7 @@
#include "dawn_native/opengl/BufferGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
// Buffer
@@ -59,4 +59,4 @@ namespace backend { namespace opengl {
BufferView::BufferView(BufferViewBuilder* builder) : BufferViewBase(builder) {
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
@@ -43,6 +43,6 @@ namespace backend { namespace opengl {
BufferView(BufferViewBuilder* builder);
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_BUFFERGL_H_

View File

@@ -28,7 +28,7 @@
#include <cstring>
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
namespace {
@@ -653,4 +653,4 @@ namespace backend { namespace opengl {
UNREACHABLE();
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -18,11 +18,11 @@
#include "dawn_native/CommandAllocator.h"
#include "dawn_native/CommandBuffer.h"
namespace backend {
namespace dawn_native {
class RenderPassDescriptorBase;
} // namespace backend
} // namespace dawn_native
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
@@ -40,6 +40,6 @@ namespace backend { namespace opengl {
CommandIterator mCommands;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_COMMANDBUFFERGL_H_

View File

@@ -14,7 +14,7 @@
#include "dawn_native/opengl/ComputePipelineGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
ComputePipeline::ComputePipeline(ComputePipelineBuilder* builder)
: ComputePipelineBase(builder), PipelineGL(this, builder) {
@@ -24,4 +24,4 @@ namespace backend { namespace opengl {
PipelineGL::ApplyNow();
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -21,7 +21,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class ComputePipeline : public ComputePipelineBase, public PipelineGL {
public:
@@ -30,6 +30,6 @@ namespace backend { namespace opengl {
void ApplyNow();
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_COMPUTEPIPELINEGL_H_

View File

@@ -17,7 +17,7 @@
#include "common/Assert.h"
#include "dawn_native/opengl/PersistentPipelineStateGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
namespace {
GLuint OpenGLCompareFunction(dawn::CompareFunction compareFunction) {
@@ -113,4 +113,4 @@ namespace backend { namespace opengl {
glStencilMask(stencilInfo.writeMask);
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -17,7 +17,7 @@
#include "dawn_native/DepthStencilState.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
class PersistentPipelineState;
@@ -29,6 +29,6 @@ namespace backend { namespace opengl {
void ApplyNow(PersistentPipelineState& persistentPipelineState) const;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_DEPTHSTENCILSTATEGL_H_

View File

@@ -31,7 +31,7 @@
#include "dawn_native/opengl/SwapChainGL.h"
#include "dawn_native/opengl/TextureGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
dawnProcTable GetNonValidatingProcs();
dawnProcTable GetValidatingProcs();
@@ -112,4 +112,4 @@ namespace backend { namespace opengl {
void Device::TickImpl() {
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -28,7 +28,7 @@
# include "common/windows_with_undefs.h"
#endif
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device : public DeviceBase {
public:
@@ -60,6 +60,6 @@ namespace backend { namespace opengl {
const dawn::SamplerDescriptor* descriptor) override;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_DEVICEGL_H_

View File

@@ -23,7 +23,7 @@ namespace {
class RenderPassDescriptor;
} // namespace
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
using BindGroup = BindGroupBase;
using BindGroupLayout = BindGroupLayoutBase;
@@ -73,6 +73,6 @@ namespace backend { namespace opengl {
return ToBackendBase<OpenGLBackendTraits>(common);
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_FORWARD_H_

View File

@@ -16,7 +16,7 @@
#include "common/Assert.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
InputState::InputState(InputStateBuilder* builder) : InputStateBase(builder) {
glGenVertexArrays(1, &mVertexArrayObject);
@@ -58,4 +58,4 @@ namespace backend { namespace opengl {
return mVertexArrayObject;
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
@@ -35,6 +35,6 @@ namespace backend { namespace opengl {
std::array<std::bitset<kMaxVertexAttributes>, kMaxVertexInputs> attributesUsingInput;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_INPUTSTATEGL_H_

View File

@@ -14,7 +14,7 @@
#include "dawn_native/opengl/PersistentPipelineStateGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
void PersistentPipelineState::SetDefaultState() {
CallGLStencilFunc();
@@ -51,4 +51,4 @@ namespace backend { namespace opengl {
mStencilReadMask);
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class PersistentPipelineState {
public:
@@ -38,6 +38,6 @@ namespace backend { namespace opengl {
GLuint mStencilReference = 0;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_PERSISTENTPIPELINESTATEGL_H_

View File

@@ -24,7 +24,7 @@
#include <iostream>
#include <set>
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
namespace {
@@ -212,4 +212,4 @@ namespace backend { namespace opengl {
glUseProgram(mProgram);
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -21,7 +21,7 @@
#include <vector>
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
class PersistentPipelineState;
@@ -49,6 +49,6 @@ namespace backend { namespace opengl {
std::vector<std::vector<GLuint>> mUnitsForTextures;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_PIPELINEGL_H_

View File

@@ -18,7 +18,7 @@
#include "dawn_native/BindGroupLayout.h"
#include "dawn_native/opengl/DeviceGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
PipelineLayout::PipelineLayout(Device* device, const dawn::PipelineLayoutDescriptor* descriptor)
: PipelineLayoutBase(device, descriptor) {
@@ -77,4 +77,4 @@ namespace backend { namespace opengl {
return mNumSampledTextures;
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
@@ -41,6 +41,6 @@ namespace backend { namespace opengl {
size_t mNumSampledTextures;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_PIPELINELAYOUTGL_H_

View File

@@ -17,7 +17,7 @@
#include "dawn_native/opengl/CommandBufferGL.h"
#include "dawn_native/opengl/DeviceGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
Queue::Queue(Device* device) : QueueBase(device) {
}
@@ -28,4 +28,4 @@ namespace backend { namespace opengl {
}
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -17,7 +17,7 @@
#include "dawn_native/Queue.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class CommandBuffer;
class Device;
@@ -30,6 +30,6 @@ namespace backend { namespace opengl {
void Submit(uint32_t numCommands, CommandBuffer* const* commands);
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_QUEUEGL_H_

View File

@@ -20,7 +20,7 @@
#include "dawn_native/opengl/InputStateGL.h"
#include "dawn_native/opengl/PersistentPipelineStateGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
namespace {
GLenum GLPrimitiveTopology(dawn::PrimitiveTopology primitiveTopology) {
@@ -65,4 +65,4 @@ namespace backend { namespace opengl {
}
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -23,7 +23,7 @@
#include <vector>
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class PersistentPipelineState;
@@ -39,6 +39,6 @@ namespace backend { namespace opengl {
GLenum mGlPrimitiveTopology;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_RENDERPIPELINEGL_H_

View File

@@ -17,7 +17,7 @@
#include "common/Assert.h"
#include "dawn_native/opengl/DeviceGL.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
namespace {
GLenum MagFilterMode(dawn::FilterMode filter) {
@@ -86,4 +86,4 @@ namespace backend { namespace opengl {
return mHandle;
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
@@ -33,6 +33,6 @@ namespace backend { namespace opengl {
GLuint mHandle;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_SAMPLERGL_H_

View File

@@ -21,7 +21,7 @@
#include <sstream>
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
std::string GetBindingName(uint32_t group, uint32_t binding) {
std::ostringstream o;
@@ -129,4 +129,4 @@ namespace backend { namespace opengl {
return mCombinedInfo;
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
@@ -52,6 +52,6 @@ namespace backend { namespace opengl {
std::string mGlslSource;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_SHADERMODULEGL_H_

View File

@@ -19,7 +19,7 @@
#include <dawn/dawn_wsi.h>
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
SwapChain::SwapChain(SwapChainBuilder* builder) : SwapChainBase(builder) {
const auto& im = GetImplementation();
@@ -44,4 +44,4 @@ namespace backend { namespace opengl {
void SwapChain::OnBeforePresent(TextureBase*) {
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
class Device;
@@ -33,6 +33,6 @@ namespace backend { namespace opengl {
void OnBeforePresent(TextureBase* texture) override;
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_SWAPCHAINGL_H_

View File

@@ -19,7 +19,7 @@
#include <algorithm>
#include <vector>
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
namespace {
@@ -116,4 +116,4 @@ namespace backend { namespace opengl {
TextureView::TextureView(TextureViewBuilder* builder) : TextureViewBase(builder) {
}
}} // namespace backend::opengl
}} // namespace dawn_native::opengl

View File

@@ -19,7 +19,7 @@
#include "glad/glad.h"
namespace backend { namespace opengl {
namespace dawn_native { namespace opengl {
struct TextureFormatInfo {
GLenum internalFormat;
@@ -47,6 +47,6 @@ namespace backend { namespace opengl {
TextureView(TextureViewBuilder* builder);
};
}} // namespace backend::opengl
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_TEXTUREGL_H_