clip
Description
Clip (discard) fragment conditionally
Signature
void clip<T>(T x) where T : __BuiltinFloatingPointType; void clip<T, N:int>(vector<T, N> x) where T : __BuiltinFloatingPointType; void clip<T, N:int, M:int>(matrix<T, N, M> x) where T : __BuiltinFloatingPointType;
Generic Parameters
T: __BuiltinFloatingPointType
N : int
M : int
Parameters
x : T
x : vector<T, N>
x : matrix<T, N, M>
Availability and Requirements
Defined for the following targets:
hlsl
Available in fragment
stage only.
glsl
Available in fragment
stage only.
cpp
Available in fragment
stage only.
cuda
Available in fragment
stage only.
spirv
Available in fragment
stage only.