diff options
author | dan sinclair <dsinclair@google.com> | 2019-05-21 13:00:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 13:00:38 -0400 |
commit | e5dc020a6f781aaa7c1dd61a59307e51437c114f (patch) | |
tree | a7ff03f769c217724611f687ba2dd1c21ad10b34 /docs | |
parent | e73da38f453e1927eed02d52b517107fadefbde0 (diff) | |
download | amber-e5dc020a6f781aaa7c1dd61a59307e51437c114f.tar.gz |
[vkscript] Set default format into buffers. (#514)
When the SSBO size command is used there is currently no format set into
a buffer. This CL sets a default format of `R8_SINT`. A flag is also set
that the format is defaulted and allows it to be overridden.
This permits the usage of scratch buffers, but allows the buffer to be
transferred to/from the device as we can set the buffer size to the
number of provided elements.
Fixes #513
Issue #501
Diffstat (limited to 'docs')
-rw-r--r-- | docs/vk_script.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/vk_script.md b/docs/vk_script.md index 7004134..72919ae 100644 --- a/docs/vk_script.md +++ b/docs/vk_script.md @@ -231,9 +231,9 @@ use the same `type` or the script will be rejected as invalid. ### SSBO size * `ssbo _binding_ _size_` -Sets the number of elements in the SSBO at `binding` to `size`. Note, Amber -requires a buffer to have a format. So, a `subdata` or `probe ssbo` call must -be made with this buffer in order to set the buffer format. +Sets the number of elements in the SSBO at `binding` to `size`. The buffer will +be created with a default format of `char`. This default format will be +overridden by a call to `ssbo subdata` or `probe ssbo`. ### SSBO subdata |