diff options
author | dan sinclair <dj2@everburning.com> | 2019-04-09 18:09:47 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2019-04-09 18:09:47 -0400 |
commit | 43248b29723575d27eb96187ef9ca594739140ed (patch) | |
tree | 1f00ee30857a26b62a8a170d263698d52f9e17c0 /docs | |
parent | 539730372bb8145fa029759be17dff320c970895 (diff) | |
download | amber-43248b29723575d27eb96187ef9ca594739140ed.tar.gz |
[AmberScript] Add DERIVE_PIPELINE (#453)
This CL adds the DERIVE_PIPELINE command to allow pipelines to be based
off of previously declared pipelines.
Fixes #435.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/amber_script.md | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/amber_script.md b/docs/amber_script.md index c7d1399..c755d2a 100644 --- a/docs/amber_script.md +++ b/docs/amber_script.md @@ -159,8 +159,14 @@ argument to an EXPECT command. PIPELINE <pipeline_type> <pipeline_name> ... END + +# Create a pipeline and inherit from a previously declared pipeline. +DERIVE_PIPELINE <<pipeline_name> FROM <parent_pipeline> +... +END ``` + ### Pipeline Content The following commands are all specified within the `PIPELINE` command. @@ -225,10 +231,6 @@ attachment content, depth/stencil content, uniform buffers, etc. # and binding. The buffer will use a start index of 0. BIND BUFFER <buffer_name> AS <buffer_type> DESCRIPTOR_SET <id> \ BINDING <id> - # Bind the buffer of the given |buffer_type| at the given descriptor set - # and binding and index at the given value. - BIND BUFFER <buffer_name> AS <buffer_type> DESCRIPTOR_SET <id> \ - BINDING <id> IDX <val> # Bind the sampler at the given descriptor set and binding. BIND SAMPLER <sampler_name> DESCRIPTOR_SET <id> BINDING <id> @@ -482,7 +484,7 @@ PIPELINE graphics kRedPipeline ATTACH kFragmentShader ENTRY_POINT red FRAMEBUFFER_SIZE 256 256 - BIND BUFFER kImgBuffer AS image IDX 0 + BIND BUFFER kImgBuffer AS color LOCATION 0 END # pipeline PIPELINE graphics kGreenPipeline @@ -490,7 +492,7 @@ PIPELINE graphics kGreenPipeline ATTACH kFragmentShader ENTRY_POINT green FRAMEBUFFER_SIZE 256 256 - BIND BUFFER kImgBuffer AS image IDX 0 + BIND BUFFER kImgBuffer AS color LOCATION 0 END # pipeline RUN kRedPipeline DRAW_RECT POS 0 0 SIZE 256 256 @@ -597,7 +599,7 @@ CLEAR_COLOR kGraphicsPipeline 255 0 0 255 CLEAR kGraphicsPipeline RUN kGraphicsPipeline DRAW_ARRAY AS triangle_list START_IDX 0 COUNT 24 - ``` +``` ### Image Formats * A1R5G5B5_UNORM_PACK16 |