discard Statement
Do not output the result of the current pixel.
discard;
Parameters
None
Remarks
This statement can only be called from a pixel shader; it is not supported within a geometry shader or a vertex shader.
See also
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Do not output the result of the current pixel.
discard;
None
This statement can only be called from a pixel shader; it is not supported within a geometry shader or a vertex shader.