Skip to main content
Version: 12 Dec 2024

MLMeshingDepthBufferInfo

Module: Graphics Utilities

To be passed to PopulateDepth. More...

#include <ml_graphics_utils.h>

Public Attributes

TypeName
uint32_tflags
uint32_tbuffer_count
MLHandlecolor_id
The handle (ID) of the color surface to render to for the buffer. Expects handle of a Texture2d Array [DEBUG_ONLY].
MLHandledepth_id
MLRectfviewport
MLGraphicsProjectionTypeprojection_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].

TypeDescription
MLHandleInteger 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;
TypeDescription
MLHandleInteger 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;
TypeDescription
MLGraphicsProjectionTypeDefines the requested projection matrix model for rendering.

Controls use of far_clip and directionality of z in projection model.


buffers

MLMeshingVirtualCameraBufferInfo[MLGraphicsVirtualCameraName_Count] buffers;
TypeDescription
MLMeshingVirtualCameraBufferInfo[MLGraphicsVirtualCameraName_Count]Per virtual camera information needed to render depth. [MLGraphicsVirtualCameraName_Count]

The array of buffers to render to for the frame.