Skip to content

TSdlGpuDepthStencilState

A record specifying the parameters of the graphics pipeline depth stencil state.

Definition

Unit: Neslib.Sdl3.Gpu

type TSdlGpuDepthStencilState = record ... end;

See Also

Properties

Name Description
BackStencilState The stencil op state for back-facing triangles.
CompareMask Selects the bits of the stencil values participating in the stencil test.
CompareOp The comparison operator used for depth testing.
DepthTestEnabled True enables the depth test.
DepthWriteEnabled True enables depth writes. Depth writes are always disabled when this is false.
FrontStencilState The stencil op state for front-facing triangles.
StencilTestEnabled True enables the stencil test.
WriteMask Selects the bits of the stencil values updated by the stencil test.

Property Descriptions

BackStencilState

The stencil op state for back-facing triangles.

property BackStencilState: PSdlGpuStencilOpState read GetBackStencilState

Type: PSdlGpuStencilOpState


CompareMask

Selects the bits of the stencil values participating in the stencil test.

property CompareMask: Byte read FHandle.compare_mask write FHandle.compare_mask

Type: Byte


CompareOp

The comparison operator used for depth testing.

property CompareOp: TSdlGpuCompareOp read GetCompareOp write SetCompareOp

Type: TSdlGpuCompareOp


DepthTestEnabled

True enables the depth test.

property DepthTestEnabled: Boolean read FHandle.enable_depth_test write FHandle.enable_depth_test

Type: Boolean


DepthWriteEnabled

True enables depth writes. Depth writes are always disabled when this is false.

property DepthWriteEnabled: Boolean read FHandle.enable_depth_write write FHandle.enable_depth_write

Type: Boolean


FrontStencilState

The stencil op state for front-facing triangles.

property FrontStencilState: PSdlGpuStencilOpState read GetFrontStencilState

Type: PSdlGpuStencilOpState


StencilTestEnabled

True enables the stencil test.

property StencilTestEnabled: Boolean read FHandle.enable_stencil_test write FHandle.enable_stencil_test

Type: Boolean


WriteMask

Selects the bits of the stencil values updated by the stencil test.

property WriteMask: Byte read FHandle.write_mask write FHandle.write_mask

Type: Byte