mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Format: src/backend/opengl
This commit is contained in:
committed by
Corentin Wallez
parent
1aa4d5604f
commit
c7807abf04
@@ -20,8 +20,7 @@
|
||||
#include "backend/opengl/OpenGLBackend.h"
|
||||
#include "backend/opengl/PersistentPipelineStateGL.h"
|
||||
|
||||
namespace backend {
|
||||
namespace opengl {
|
||||
namespace backend { namespace opengl {
|
||||
|
||||
namespace {
|
||||
GLenum GLPrimitiveTopology(nxt::PrimitiveTopology primitiveTopology) {
|
||||
@@ -40,10 +39,11 @@ namespace opengl {
|
||||
UNREACHABLE();
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
RenderPipeline::RenderPipeline(RenderPipelineBuilder* builder)
|
||||
: RenderPipelineBase(builder), PipelineGL(this, builder),
|
||||
: RenderPipelineBase(builder),
|
||||
PipelineGL(this, builder),
|
||||
mGlPrimitiveTopology(GLPrimitiveTopology(GetPrimitiveTopology())) {
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace opengl {
|
||||
return mGlPrimitiveTopology;
|
||||
}
|
||||
|
||||
void RenderPipeline::ApplyNow(PersistentPipelineState &persistentPipelineState) {
|
||||
void RenderPipeline::ApplyNow(PersistentPipelineState& persistentPipelineState) {
|
||||
PipelineGL::ApplyNow();
|
||||
|
||||
auto inputState = ToBackend(GetInputState());
|
||||
@@ -68,5 +68,4 @@ namespace opengl {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}} // namespace backend::opengl
|
||||
|
||||
Reference in New Issue
Block a user