VK_KHR_ray_tracing_position_fetch adds the ability to fetch the vertex positions in the shader from a hit triangle as stored in the acceleration structure.
An application adds BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR to the acceleration structure at build time. Then, if the hit is a triangle geometry, the shader (any-hit or closest hit for ray pipelines or using ray query) can fetch the three, three-component vertex positions in object space, of the triangle which was hit.
VK_KHR_ray_tracing_position_fetchVK_KHR_acceleration_structureSPV_KHR_ray_tracing_position_fetchGLSL_EXT_ray_tracing_position_fetchVK_KHR_ray_tracing_pipelineVK_KHR_ray_query| Modifier and Type | Field and Description |
|---|---|
| public static final int | VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR
Extends |
| public static final String | VK_KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_POSITION_FETCH_FEATURES_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR | back to summary |
|---|---|
| public static final int VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR Extends | |
| VK_KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME The extension name. | |
| VK_KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_POSITION_FETCH_FEATURES_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_POSITION_FETCH_FEATURES_KHR Extends | |
| KHRRayTracingPositionFetch | back to summary |
|---|---|
| private KHRRayTracingPositionFetch() | |