Lines Matching defs:offset
171 // returns the offset to the start of pipeline index entries in the cache
196 uint64_t offset = getPipelineIndexOffset() + (index * getPipelineIndexStride());
197 VKSC_ASSERT(offset + sizeof(VkPipelineCacheSafetyCriticalIndexEntry) <= m_CacheSize);
200 reinterpret_cast<const VkPipelineCacheSafetyCriticalIndexEntry*>(m_CacheData + offset);
215 uint64_t offset = pipelineIndexOffset + (i * pipelineIndexStride);
216 VKSC_ASSERT(offset + sizeof(VkPipelineCacheSafetyCriticalIndexEntry) <= m_CacheSize);
219 reinterpret_cast<const VkPipelineCacheSafetyCriticalIndexEntry*>(m_CacheData + offset);
234 uint64_t offset = pipelineIndexEntry->jsonOffset;
235 if (0U == offset) return nullptr;
237 VKSC_ASSERT(offset + pipelineIndexEntry->jsonSize <= m_CacheSize);
239 return (m_CacheData + offset);
248 uint64_t offset = pipelineIndexEntry->stageIndexOffset + (stage * pipelineIndexEntry->stageIndexStride);
249 VKSC_ASSERT(offset + sizeof(VkPipelineCacheStageValidationIndexEntry) <= m_CacheSize);
252 reinterpret_cast<const VkPipelineCacheStageValidationIndexEntry*>(m_CacheData + offset);
261 uint64_t offset = stageIndexEntry->codeOffset;
262 if (0U == offset) return nullptr;
264 VKSC_ASSERT(offset + stageIndexEntry->codeSize <= m_CacheSize);
266 return (m_CacheData + offset);