| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenXR.Extensions.XR_KHR_visibility_mask
Description
Name
XR_KHR_visibility_mask - instance extension
Specification
See XR_KHR_visibility_mask in the main specification for complete information.
Registered Extension Number
32
Revision
2
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
EventDataVisibilityMaskChangedKHR, VisibilityMaskKHR,
VisibilityMaskTypeKHR, getVisibilityMaskKHR
Document Notes
For more information, see the OpenXR Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- getVisibilityMaskKHR :: forall io. MonadIO io => Session -> ViewConfigurationType -> ("viewIndex" ::: Word32) -> VisibilityMaskTypeKHR -> io (Result, VisibilityMaskKHR)
- data EventDataVisibilityMaskChangedKHR = EventDataVisibilityMaskChangedKHR {}
- data VisibilityMaskKHR = VisibilityMaskKHR {}
- newtype VisibilityMaskTypeKHR where
- type KHR_visibility_mask_SPEC_VERSION = 2
- pattern KHR_visibility_mask_SPEC_VERSION :: forall a. Integral a => a
- type KHR_VISIBILITY_MASK_EXTENSION_NAME = "XR_KHR_visibility_mask"
- pattern KHR_VISIBILITY_MASK_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
Arguments
| :: forall io. MonadIO io | |
| => Session |
|
| -> ViewConfigurationType |
|
| -> ("viewIndex" ::: Word32) |
|
| -> VisibilityMaskTypeKHR |
|
| -> io (Result, VisibilityMaskKHR) |
xrGetVisibilityMaskKHR - Gets visibility mask
Parameter Descriptions
Description
getVisibilityMaskKHR retrieves the view mask for a given view. This
function follows the
two-call idiom
for filling multiple buffers in a struct. Specifically, if either
vertexCapacityInput or indexCapacityInput is 0, the runtime must
respond as if both fields were set to 0, returning the vertex count
and index count through vertexCountOutput or indexCountOutput
respectively. If a view mask for the specified view isn’t available, the
returned vertex and index counts must be 0.
Valid Usage (Implicit)
- The @@ extension
must be enabled prior to calling
getVisibilityMaskKHR
-
sessionmust be a validSessionhandle -
viewConfigurationTypemust be a validViewConfigurationTypevalue -
visibilityMaskTypemust be a validVisibilityMaskTypeKHRvalue -
visibilityMaskmust be a pointer to anVisibilityMaskKHRstructure
Return Codes
See Also
Session,
ViewConfigurationType,
VisibilityMaskKHR, VisibilityMaskTypeKHR
data EventDataVisibilityMaskChangedKHR Source #
XrEventDataVisibilityMaskChangedKHR - Visibility Mask
Valid Usage (Implicit)
- The
@@ extension must be enabled prior to using
EventDataVisibilityMaskChangedKHR
-
typemust beTYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR -
nextmust beNULLor a valid pointer to the next structure in a structure chain -
sessionmust be a validSessionhandle -
viewConfigurationTypemust be a validViewConfigurationTypevalue
See Also
Constructors
| EventDataVisibilityMaskChangedKHR | |
Fields
| |
Instances
data VisibilityMaskKHR Source #
XrVisibilityMaskKHR - Visibility Mask
Member Descriptions
typeis theStructureTypeof this structure.
nextisNULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.vertexCapacityInputis the capacity of theverticesarray, or0to indicate a request to retrieve the required capacity.vertexCountOutputis filled in by the runtime with the count of vertices written or the required capacity in the case thatvertexCapacityInputorindexCapacityInputis0.verticesis an array of vertices filled in by the runtime that specifies mask coordinates in the z=-1 plane of the rendered view—i.e., one meter in front of the view. When rendering the mask for use in a projection layer, these vertices must be transformed by the application’s projection matrix used for the respectiveCompositionLayerProjectionView.
Description
indexCapacityInputis the capacity of theindicesarray, or0to indicate a request to retrieve the required capacity.
indexCountOutputis filled in by the runtime with the count of indices written or the required capacity in the case thatvertexCapacityInputorindexCapacityInputis0.indicesis an array of indices filled in by the runtime, specifying the indices of the mask geometry in theverticesarray.
Valid Usage (Implicit)
- The @@ extension
must be enabled prior to using
VisibilityMaskKHR
-
typemust beTYPE_VISIBILITY_MASK_KHR -
nextmust beNULLor a valid pointer to the next structure in a structure chain - If
vertexCapacityInputis not0,verticesmust be a pointer to an array ofvertexCapacityInputVector2fstructures - If
indexCapacityInputis not0,indicesmust be a pointer to an array ofindexCapacityInputuint32_tvalues
See Also
Constructors
| VisibilityMaskKHR | |
Fields | |
Instances
newtype VisibilityMaskTypeKHR Source #
Constructors
| VisibilityMaskTypeKHR Int32 |
Bundled Patterns
| pattern VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR :: VisibilityMaskTypeKHR |
|
| pattern VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHR :: VisibilityMaskTypeKHR |
|
| pattern VISIBILITY_MASK_TYPE_LINE_LOOP_KHR :: VisibilityMaskTypeKHR |
|
Instances
type KHR_visibility_mask_SPEC_VERSION = 2 Source #
pattern KHR_visibility_mask_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_VISIBILITY_MASK_EXTENSION_NAME = "XR_KHR_visibility_mask" Source #
pattern KHR_VISIBILITY_MASK_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #