Merge pull request #635 from krOoze/fix_text_block

Fix text block in descriptor sets ch.
This commit is contained in:
Jon Leech 2017-12-20 16:18:39 -08:00 committed by GitHub
commit 68b851236f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -2368,12 +2368,14 @@ include::../api/structs/VkDescriptorUpdateTemplateEntryKHR.txt[]
structure.
The actual pointer ptr for each array element j of update entry i is
computed using the following formula:
+
[source,c++]
---------------------------------------------------
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
****