aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipeline.cc')
-rw-r--r--src/pipeline.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/pipeline.cc b/src/pipeline.cc
index b7e2780..a759aeb 100644
--- a/src/pipeline.cc
+++ b/src/pipeline.cc
@@ -21,6 +21,15 @@
#include "src/make_unique.h"
namespace amber {
+namespace {
+
+const char* kDefaultColorBufferFormat = "B8G8R8A8_UNORM";
+const char* kDefaultDepthBufferFormat = "D32_SFLOAT_S8_UINT";
+
+} // namespace
+
+const char* Pipeline::kGeneratedColorBuffer = "framebuffer";
+const char* Pipeline::kGeneratedDepthBuffer = "depth_buffer";
Pipeline::ShaderInfo::ShaderInfo(const Shader* shader, ShaderType type)
: shader_(shader), shader_type_(type), entry_point_("main") {}
@@ -29,11 +38,6 @@ Pipeline::ShaderInfo::ShaderInfo(const ShaderInfo&) = default;
Pipeline::ShaderInfo::~ShaderInfo() = default;
-const char* Pipeline::kDefaultColorBufferFormat = "B8G8R8A8_UNORM";
-const char* Pipeline::kDefaultDepthBufferFormat = "D32_SFLOAT_S8_UINT";
-const char* Pipeline::kGeneratedColorBuffer = "framebuffer";
-const char* Pipeline::kGeneratedDepthBuffer = "depth_buffer";
-
Pipeline::Pipeline(PipelineType type) : pipeline_type_(type) {}
Pipeline::~Pipeline() = default;