Garry's Mod Wiki

MATERIAL_RT_DEPTH

Description

Enumerations used by GetRenderTargetEx. Clientside only.

When Anti Aliasing is enabled then MATERIAL_RT_DEPTH_SHARED and MATERIAL_RT_DEPTH_SEPARATE will always create a new depth-stencil buffer because Render Targets do not have Anti Aliasing.

Values

MATERIAL_RT_DEPTH_SHARED0Do not create a depth-stencil buffer.
Use the default depth-stencil buffer if used as render target 0.
MATERIAL_RT_DEPTH_SEPARATE1Create a depth-stencil buffer.
Use the created depth-stencil buffer if used as render target 0.
MATERIAL_RT_DEPTH_NONE2Do not create a depth-stencil buffer.
Disable depth and stencil buffer usage if used as render target 0.
MATERIAL_RT_DEPTH_ONLY3Create a depth-stencil buffer.
Use the created depth-stencil buffer if used as render target 0.

Creates a color texture despite the name.
Seems to behave the same as MATERIAL_RT_DEPTH_SEPARATE.