diff options
author | dan sinclair <dj2@everburning.com> | 2018-11-28 16:22:21 -0500 |
---|---|---|
committer | David Neto <dneto@google.com> | 2018-11-28 16:22:21 -0500 |
commit | e470564d0d0d5d7df3bd5fd46af32a896cb745de (patch) | |
tree | 0a66b31d44d6516bb498beac89bb424165bed95c /src/shader.cc | |
parent | ecd4674ba09e68cbdc8490d3cb39047058577e87 (diff) | |
download | amber-e470564d0d0d5d7df3bd5fd46af32a896cb745de.tar.gz |
Delay VkScript Shader Compilation. (#110)
This CL changes VkScript to delay shader compilation until execution,
instead of at parse time. This allows VkScript to share the Script
object with AmberScript.
Diffstat (limited to 'src/shader.cc')
-rw-r--r-- | src/shader.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/shader.cc b/src/shader.cc new file mode 100644 index 0000000..ad87bd1 --- /dev/null +++ b/src/shader.cc @@ -0,0 +1,23 @@ +// Copyright 2018 The Amber Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/shader.h" + +namespace amber { + +Shader::Shader(ShaderType type) : shader_type_(type) {} + +Shader::~Shader() = default; + +} // namespace amber |