aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-03-29 00:10:09 -0400
committerDavid Neto <dneto@google.com>2019-03-29 00:10:09 -0400
commitf23a84c68a7fa5a86429d1261f02f427402ce4db (patch)
tree529fe9e3c9c3d3c0a5ae3850831fb2b8238f3c7a /docs
parentd70c0e42f5723834ab03977c4e3c92185ecaf900 (diff)
downloadamber-f23a84c68a7fa5a86429d1261f02f427402ce4db.tar.gz
[amberscript] add DEVICE_FEATURE. (#434)
[amberscript] add DEVICE_FEATURE. This CL adds the DEVICE_FEATURE command which allows requesting specific features be enabled. Fixes #347.
Diffstat (limited to 'docs')
-rw-r--r--docs/amber_script.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/amber_script.md b/docs/amber_script.md
index 1b28f10..93fad69 100644
--- a/docs/amber_script.md
+++ b/docs/amber_script.md
@@ -23,6 +23,20 @@ user-specified (such as for buffer data).
Hex values: Whenever an integer is expected, you may use a hexadecimal number,
which is the characters `0x` followed by hexadecimal digits.
+### Requesting features
+
+If specific device featuers are required you can use the DEVICE_FEATURE command
+to enable them.
+
+```
+DEVICE_FEATURE vertexPipelineStoresAndAtomics
+DEVICE_FEATURE VariablePointerFeatures.variablePointersStorageBuffer
+```
+
+Currently each of the items in `VkPhysicalDeviceFeatures` are recognized along
+with `VariablePointerFeatures.variablePointers` and
+`VariablePointerFeatures.variablePointersStorageBuffer`.
+
### Shaders
#### Shader Type