VkStridedBufferRegionKHR(3)

# VkStridedBufferRegionKHR(3) Manual Page

## Name

VkStridedBufferRegionKHR - Structure specifying a region of a VkBuffer with a stride

Loading… please wait.

## C Specification

The `VkStridedBufferRegionKHR` structure is defined as:

    // Provided by VK_KHR_ray_tracing
    typedef struct VkStridedBufferRegionKHR {
        VkBuffer        buffer;
        VkDeviceSize    offset;
        VkDeviceSize    stride;
        VkDeviceSize    size;
    } VkStridedBufferRegionKHR;

## Members

- `buffer` is the buffer containing this region.

- `offset` is the byte offset in `buffer` at which the region starts.

- `stride` is the byte stride between consecutive elements.

- `size` is the size in bytes of the region starting at `offset`.

## Description

Valid Usage

- VUID-VkStridedBufferRegionKHR-buffer-03515
  If `buffer` is not VK_NULL_HANDLE, `size` plus `offset` must be less than or equal to the size of `buffer`

- VUID-VkStridedBufferRegionKHR-buffer-03516
  If `buffer` is not VK_NULL_HANDLE, `stride` must be less than the size of `buffer`

Valid Usage (Implicit)

- VUID-VkStridedBufferRegionKHR-buffer-parameter
  If `buffer` is not VK_NULL_HANDLE, `buffer` must be a valid VkBuffer handle

## See Also

VkBuffer, `VkDeviceSize`, vkCmdTraceRaysIndirectKHR, vkCmdTraceRaysKHR

## Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

## Copyright

Copyright (c) 2014-2020 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0