Lines Matching defs:offset
269 vk_image_offset_to_elements(const struct vk_image *image, VkOffset3D offset)
274 offset = vk_image_sanitize_offset(image, offset);
276 assert(offset.x % fmt->block.width == 0);
277 assert(offset.y % fmt->block.height == 0);
278 assert(offset.z % fmt->block.depth == 0);
280 offset.x /= fmt->block.width;
281 offset.y /= fmt->block.height;
282 offset.z /= fmt->block.depth;
284 return offset;