aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline.cc
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-02-13 10:29:18 -0500
committerGitHub <noreply@github.com>2019-02-13 10:29:18 -0500
commitee667acc11775ca0835949bdc4f33b5567fbb555 (patch)
tree9b6ed10b93e678f790cca22f609b03cd58b2febe /src/pipeline.cc
parenta64615b73c30195f4e6827c0843320328a9243a2 (diff)
downloadamber-ee667acc11775ca0835949bdc4f33b5567fbb555.tar.gz
Execute from pipeline, not script. (#286)
This CL changes the executor to read information from the pipeline instead of using the script object.
Diffstat (limited to 'src/pipeline.cc')
-rw-r--r--src/pipeline.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipeline.cc b/src/pipeline.cc
index b40a3e8..3cae869 100644
--- a/src/pipeline.cc
+++ b/src/pipeline.cc
@@ -220,6 +220,7 @@ Result Pipeline::SetDepthBuffer(Buffer* buf) {
if (depth_buffer_.buffer != nullptr)
return Result("can only bind one depth buffer in a PIPELINE");
+ depth_buffer_.type = BufferType::kDepth;
depth_buffer_.buffer = buf;
depth_buffer_.width = fb_width_;
depth_buffer_.height = fb_height_;
@@ -247,6 +248,7 @@ Result Pipeline::AddVertexBuffer(Buffer* buf, uint32_t location) {
vertex_buffers_.push_back(BufferInfo{buf});
vertex_buffers_.back().location = location;
+ vertex_buffers_.back().type = BufferType::kVertex;
return {};
}