MLMeshingDepthBufferInfo
Module: Graphics Utilities
To be passed to PopulateDepth. More...
#include <ml_graphics_utils.h>
Public Attributes
Type | Name |
---|---|
uint32_t | flags |
uint32_t | buffer_count |
MLHandle | color_id The handle (ID) of the color surface to render to for the buffer. Expects handle of a Texture2d Array [DEBUG_ONLY]. |
MLHandle | depth_id |
MLRectf | viewport |
MLGraphicsProjectionType | projection_type |
MLMeshingVirtualCameraBufferInfo[MLGraphicsVirtualCameraName_Count] | buffers |
Detailed Description
struct MLMeshingDepthBufferInfo;
To be passed to PopulateDepth.
Deprecated
Deprecated since 1.2.0. Scheduled for removal.
Public Attributes Documentation
flags
uint32_t flags;
Optional flags for Populate Depth.
buffer_count
uint32_t buffer_count;
The number of buffers to render to for the frame.
color_id
MLHandle color_id;
The handle (ID) of the color surface to render to for the buffer. Expects handle of a Texture2d Array [DEBUG_ONLY].
Type | Description |
---|---|
MLHandle | Integer handle type used to reference many things returned by the API, instead of returning pointers directly. Use MLHandleIsValid() to check if a handle is valid or not. |
depth_id
MLHandle depth_id;
Type | Description |
---|---|
MLHandle | Integer handle type used to reference many things returned by the API, instead of returning pointers directly. Use MLHandleIsValid() to check if a handle is valid or not. |
The handle (ID) of the depth surface to render to for the buffer. Expects handle of a Texture2d Array.
viewport
MLRectf viewport;
The origin and extents to render to for the camera.
projection_type
MLGraphicsProjectionType projection_type;
Type | Description |
---|---|
MLGraphicsProjectionType | Defines the requested projection matrix model for rendering. |
Controls use of far_clip and directionality of z in projection model.
buffers
MLMeshingVirtualCameraBufferInfo[MLGraphicsVirtualCameraName_Count] buffers;
Type | Description |
---|---|
MLMeshingVirtualCameraBufferInfo[MLGraphicsVirtualCameraName_Count] | Per virtual camera information needed to render depth. [MLGraphicsVirtualCameraName_Count] |
The array of buffers to render to for the frame.