Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
:: 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
-
session
must be a validSession
handle -
viewConfigurationType
must be a validViewConfigurationType
value -
visibilityMaskType
must be a validVisibilityMaskTypeKHR
value -
visibilityMask
must be a pointer to anVisibilityMaskKHR
structure
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
-
type
must beTYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
session
must be a validSession
handle -
viewConfigurationType
must be a validViewConfigurationType
value
See Also
EventDataVisibilityMaskChangedKHR | |
|
Instances
data VisibilityMaskKHR Source #
XrVisibilityMaskKHR - Visibility Mask
Member Descriptions
type
is theStructureType
of this structure.
next
isNULL
or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.vertexCapacityInput
is the capacity of thevertices
array, or0
to indicate a request to retrieve the required capacity.vertexCountOutput
is filled in by the runtime with the count of vertices written or the required capacity in the case thatvertexCapacityInput
orindexCapacityInput
is0
.vertices
is 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
indexCapacityInput
is the capacity of theindices
array, or0
to indicate a request to retrieve the required capacity.
indexCountOutput
is filled in by the runtime with the count of indices written or the required capacity in the case thatvertexCapacityInput
orindexCapacityInput
is0
.indices
is an array of indices filled in by the runtime, specifying the indices of the mask geometry in thevertices
array.
Valid Usage (Implicit)
- The @@ extension
must be enabled prior to using
VisibilityMaskKHR
-
type
must beTYPE_VISIBILITY_MASK_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain - If
vertexCapacityInput
is not0
,vertices
must be a pointer to an array ofvertexCapacityInput
Vector2f
structures - If
indexCapacityInput
is not0
,indices
must be a pointer to an array ofindexCapacityInput
uint32_t
values
See Also
Instances
newtype VisibilityMaskTypeKHR Source #
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 #