diff options
author | dan sinclair <dj2@everburning.com> | 2019-02-13 10:29:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 10:29:18 -0500 |
commit | ee667acc11775ca0835949bdc4f33b5567fbb555 (patch) | |
tree | 9b6ed10b93e678f790cca22f609b03cd58b2febe /src/pipeline.cc | |
parent | a64615b73c30195f4e6827c0843320328a9243a2 (diff) | |
download | amber-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.cc | 2 |
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 {}; } |