GpuCompare¶
Import: import system.gpu;
This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation. Shader-only declarations can be used only inside @compute, @vertex, @fragment, inferred helpers and ray tracing shader functions; using them elsewhere is a compile error.
GpuCompare¶
A comparison between a new value and a stored one, used by depth tests and comparison samplers. The test passes when new <op> stored holds.
Never¶
Never passes.
Less¶
Passes when the new value is smaller.
LessEqual¶
Passes when the new value is smaller or equal.
Equal¶
Passes when the values are equal.
GreaterEqual¶
Passes when the new value is greater or equal.
Greater¶
Passes when the new value is greater.
NotEqual¶
Passes when the values differ.
Always¶
Always passes.