RDPipelineDepthStencilState

继承: RefCounted < Object

管线的深度/模板状态(由 RenderingDevice 使用)。

描述

RDPipelineDepthStencilState 控制的是在使用 RenderingDevice 对深度和模板进行采样时,如何进行深度和模板的比较。

属性

CompareOperator

back_op_compare

7

int

back_op_compare_mask

0

StencilOperation

back_op_depth_fail

1

StencilOperation

back_op_fail

1

StencilOperation

back_op_pass

1

int

back_op_reference

0

int

back_op_write_mask

0

CompareOperator

depth_compare_operator

7

float

depth_range_max

0.0

float

depth_range_min

0.0

bool

enable_depth_range

false

bool

enable_depth_test

false

bool

enable_depth_write

false

bool

enable_stencil

false

CompareOperator

front_op_compare

7

int

front_op_compare_mask

0

StencilOperation

front_op_depth_fail

1

StencilOperation

front_op_fail

1

StencilOperation

front_op_pass

1

int

front_op_reference

0

int

front_op_write_mask

0


属性说明

CompareOperator back_op_compare = 7

目前没有这个属性的描述。请帮我们贡献一个


int back_op_compare_mask = 0

  • void set_back_op_compare_mask ( int value )

  • int get_back_op_compare_mask ( )

目前没有这个属性的描述。请帮我们贡献一个


StencilOperation back_op_depth_fail = 1

目前没有这个属性的描述。请帮我们贡献一个


StencilOperation back_op_fail = 1

目前没有这个属性的描述。请帮我们贡献一个


StencilOperation back_op_pass = 1

目前没有这个属性的描述。请帮我们贡献一个


int back_op_reference = 0

  • void set_back_op_reference ( int value )

  • int get_back_op_reference ( )

目前没有这个属性的描述。请帮我们贡献一个


int back_op_write_mask = 0

  • void set_back_op_write_mask ( int value )

  • int get_back_op_write_mask ( )

目前没有这个属性的描述。请帮我们贡献一个


CompareOperator depth_compare_operator = 7

目前没有这个属性的描述。请帮我们贡献一个


float depth_range_max = 0.0

  • void set_depth_range_max ( float value )

  • float get_depth_range_max ( )

目前没有这个属性的描述。请帮我们贡献一个


float depth_range_min = 0.0

  • void set_depth_range_min ( float value )

  • float get_depth_range_min ( )

目前没有这个属性的描述。请帮我们贡献一个


bool enable_depth_range = false

  • void set_enable_depth_range ( bool value )

  • bool get_enable_depth_range ( )

目前没有这个属性的描述。请帮我们贡献一个


bool enable_depth_test = false

  • void set_enable_depth_test ( bool value )

  • bool get_enable_depth_test ( )

如果为 true,则会启用深度测试,能够让对象根据深度自动被其他对象遮挡。这样对象就能够被其他对象部分遮挡。如果为 false,则会按照绘制顺序显示(类似 Godot 的 2D 渲染器)。


bool enable_depth_write = false

  • void set_enable_depth_write ( bool value )

  • bool get_enable_depth_write ( )

目前没有这个属性的描述。请帮我们贡献一个


bool enable_stencil = false

  • void set_enable_stencil ( bool value )

  • bool get_enable_stencil ( )

目前没有这个属性的描述。请帮我们贡献一个


CompareOperator front_op_compare = 7

目前没有这个属性的描述。请帮我们贡献一个


int front_op_compare_mask = 0

  • void set_front_op_compare_mask ( int value )

  • int get_front_op_compare_mask ( )

目前没有这个属性的描述。请帮我们贡献一个


StencilOperation front_op_depth_fail = 1

目前没有这个属性的描述。请帮我们贡献一个


StencilOperation front_op_fail = 1

目前没有这个属性的描述。请帮我们贡献一个


StencilOperation front_op_pass = 1

目前没有这个属性的描述。请帮我们贡献一个


int front_op_reference = 0

  • void set_front_op_reference ( int value )

  • int get_front_op_reference ( )

目前没有这个属性的描述。请帮我们贡献一个


int front_op_write_mask = 0

  • void set_front_op_write_mask ( int value )

  • int get_front_op_write_mask ( )

目前没有这个属性的描述。请帮我们贡献一个

Previous Next


© 版权所有 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision b1c660f7.

Built with Sphinx using a theme provided by Read the Docs.