diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-02-12 14:37:09 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-02-18 14:47:06 -0700 |
| commit | 4d52f4d4c8aa4ed9b2bf398bce1d9702fc677cb9 (patch) | |
| tree | 59d899275378b504d91f24c741d81e3d8294ff9d /layers/threading.cpp | |
| parent | e9821fbe3ecbd6b3a9cda927f3ec1f73828378e4 (diff) | |
| download | usermoji-4d52f4d4c8aa4ed9b2bf398bce1d9702fc677cb9.tar.xz | |
layers: Special case VkWriteDescriptorSet safe_struct code
VkWriteDescriptorSet may have non-null ptrs that we don't care about.
Add a special case for this struct in safe_struct codegen that will only
check the array ptrs that we care about based on the descriptorType.
Also update safe_struct codegen so that all ptrs in structs are initially
set as NULL, and then only updated if src struct ptr is non-NULL.
Update unique_objects to base "if" guards around ptrs to be based off of
the shadowed safe_struct ptrs for any ptrs below the first level input
params. This is because safe_struct initialization will have already copied
down any ptrs so if there are any additional guards in safe_struct
shadowing, such as for VkWriteDescriptorSet, this allows unique_objects.cpp
to make use of only valid info and not have to replicate special cases.
Diffstat (limited to 'layers/threading.cpp')
0 files changed, 0 insertions, 0 deletions
