diff options
author | dan sinclair <dj2@everburning.com> | 2018-11-14 14:26:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 14:26:27 -0500 |
commit | 5d89796a571d16f2427a6b12c517cd164eef330b (patch) | |
tree | abf73c71029c96faf5dfd965a44bfb60bd837dfe /src/CMakeLists.txt | |
parent | d717c4767f1e3bb7f749c19d83b4194ed8e21921 (diff) | |
download | amber-5d89796a571d16f2427a6b12c517cd164eef330b.tar.gz |
AmberScript: Parse BUFFER commands. (#6)
This CL adds parsing for the various buffer commands available in
AmberScript.
BUFFER vertex my_buf DATA_TYPE vec2<int32> SIZE 5 FILL 0
BUFFER index my_buf DATA_TYPE int32 SIZE 5 SERIES_FROM 2 INC_BY 1
BUFFER framebuffer my_frame DIMS 256 256
BUFFER storage my_store DATA_TYPE uint32 DATA
1 2 3 4 5
END
For each type, the internal buffer will be filled with the data before
it leaves the parser.
Fixes #5
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5876121..bad120e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,6 +15,7 @@ set(AMBER_SOURCES amber.cc amber_impl.cc + amberscript/buffer.cc amberscript/executor.cc amberscript/parser.cc amberscript/pipeline.cc @@ -64,8 +65,10 @@ if (${Dawn_FOUND}) endif() set(TEST_SRCS + amberscript/buffer_test.cc amberscript/parser_test.cc amberscript/pipeline_test.cc + amberscript/script_test.cc command_data_test.cc result_test.cc shader_compiler_test.cc |