Fix text block in descriptor sets ch.

This commit is contained in:
Petr Kraus 2017-12-19 14:45:47 +01:00
parent fe0e06e9fe
commit 939a1318d0
1 changed files with 4 additions and 2 deletions

View File

@ -2368,12 +2368,14 @@ include::../api/structs/VkDescriptorUpdateTemplateEntryKHR.txt[]
structure. structure.
The actual pointer ptr for each array element j of update entry i is The actual pointer ptr for each array element j of update entry i is
computed using the following formula: computed using the following formula:
+
[source,c++] [source,c++]
--------------------------------------------------- ---------------------------------------------------
const char *ptr = (const char *)pData + pDescriptorUpdateEntries[i].offset + j * pDescriptorUpdateEntries[i].stride const char *ptr = (const char *)pData + pDescriptorUpdateEntries[i].offset + j * pDescriptorUpdateEntries[i].stride
--------------------------------------------------- ---------------------------------------------------
The stride is useful in case the bindings are stored in structs along +
with other data. The stride is useful in case the bindings are stored in structs along with
other data.
.Valid Usage .Valid Usage
**** ****