Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Name
VK_KHR_ray_tracing_position_fetch - device extension
VK_KHR_ray_tracing_position_fetch
- Name String
VK_KHR_ray_tracing_position_fetch
- Extension Type
- Device extension
- Registered Extension Number
- 482
- Revision
- 1
- Ratification Status
- Ratified
- Extension and Version Dependencies
- VK_KHR_acceleration_structure
- Contact
- Eric Werness
- Extension Proposal
- VK_KHR_ray_tracing_position_fetch
Other Extension Metadata
- Last Modified Date
- 2023-02-17
- Interactions and External Dependencies
- This extension requires SPV_KHR_ray_tracing_position_fetch
- This extension provides API support for GLSL_EXT_ray_tracing_position_fetch
- Interacts with
VK_KHR_ray_tracing_pipeline
- Interacts with
VK_KHR_ray_query
- Contributors
- Eric Werness, NVIDIA
- Stu Smith, AMD
- Yuriy O’Donnell, Epic Games
- Ralph Potter, Samsung
- Joshua Barczak, Intel
- Lionel Landwerlin, Intel
- Andrew Garrard, Imagination Technologies
- Alex Bourd, Qualcomm
- Yunpeng Zhu, Huawei Technologies
- Marius Bjorge, Arm
- Daniel Koch, NVIDIA
Description
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.
New Structures
Extending
PhysicalDeviceFeatures2
,DeviceCreateInfo
:
New Enum Constants
KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION
Extending
BuildAccelerationStructureFlagBitsKHR
:Extending
StructureType
:
New Built-In Variables
New SPIR-V Capabilities
Issues
None Yet!
Version History
Revision 1, 2023-02-17 (Eric Werness)
- internal revisions
See Also
PhysicalDeviceRayTracingPositionFetchFeaturesKHR
Document Notes
For more information, see the Vulkan Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- data PhysicalDeviceRayTracingPositionFetchFeaturesKHR = PhysicalDeviceRayTracingPositionFetchFeaturesKHR {}
- type KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION = 1
- pattern KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION :: forall a. Integral a => a
- type KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME = "VK_KHR_ray_tracing_position_fetch"
- pattern KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- newtype BuildAccelerationStructureFlagBitsKHR where
- BuildAccelerationStructureFlagBitsKHR Flags
- pattern BUILD_ACCELERATION_STRUCTURE_ALLOW_UPDATE_BIT_KHR :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT_KHR :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_TRACE_BIT_KHR :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_BUILD_BIT_KHR :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_LOW_MEMORY_BIT_KHR :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_ALLOW_DATA_ACCESS_KHR :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_ALLOW_DISPLACEMENT_MICROMAP_UPDATE_NV :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_ALLOW_OPACITY_MICROMAP_DATA_UPDATE_EXT :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_ALLOW_DISABLE_OPACITY_MICROMAPS_EXT :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_ALLOW_OPACITY_MICROMAP_UPDATE_EXT :: BuildAccelerationStructureFlagBitsKHR
- pattern BUILD_ACCELERATION_STRUCTURE_MOTION_BIT_NV :: BuildAccelerationStructureFlagBitsKHR
- type BuildAccelerationStructureFlagsKHR = BuildAccelerationStructureFlagBitsKHR
Documentation
data PhysicalDeviceRayTracingPositionFetchFeaturesKHR Source #
VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR - Structure describing support for fetching vertex positions of hit triangles
Members
This structure describes the following feature:
Description
If the PhysicalDeviceRayTracingPositionFetchFeaturesKHR
structure is
included in the pNext
chain of the
PhysicalDeviceFeatures2
structure passed to
getPhysicalDeviceFeatures2
,
it is filled in to indicate whether each corresponding feature is
supported. PhysicalDeviceRayTracingPositionFetchFeaturesKHR
can also
be used in the pNext
chain of DeviceCreateInfo
to selectively enable these features.
Valid Usage (Implicit)
See Also
Instances
pattern KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME = "VK_KHR_ray_tracing_position_fetch" Source #
pattern KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #
newtype BuildAccelerationStructureFlagBitsKHR Source #
VkBuildAccelerationStructureFlagBitsKHR - Bitmask specifying additional parameters for acceleration structure builds
Description
Note
BUILD_ACCELERATION_STRUCTURE_ALLOW_UPDATE_BIT_KHR
and
BUILD_ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT_KHR
may take more
time and memory than a normal build, and so should only be used when
those features are needed.
See Also
VK_KHR_acceleration_structure,
VK_NV_ray_tracing,
BuildAccelerationStructureFlagsKHR