Skip to main content
Version: 12 Dec 2024

MLGraphicsRenderTarget

Module: Graphics

Definition of a single render target defined in MLGraphicsRenderBufferInfo. More...

#include <ml_graphics.h>

Public Attributes

TypeName
uint32_twidth
uint32_theight
MLHandleid
MLSurfaceFormatformat

Detailed Description

struct MLGraphicsRenderTarget;

Definition of a single render target defined in MLGraphicsRenderBufferInfo.

Each render target defines one of the buffered entries color/depth surfaces (with maximum count defined by MLGraphics_BufferCount). Clients can assume that the handle provided here will be in the list of handles returned from MLGraphicsBeginFrameEx.

Deprecated

Deprecated since 1.6.0. Scheduled for removal.


Public Attributes Documentation

width

uint32_t width;

The width of the target.


height

uint32_t height;

The height of the target.


id

MLHandle 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 2D texture array, each layer represents a virtual camera.


format

MLSurfaceFormat format;
TypeDescription
MLSurfaceFormatThe definition of the supported color/depth surface formats.

The surface format of the target.