Buckets:

imerfanrajabee's picture
download
raw
816 Bytes
import { select } from '../math/ConditionalNode.js';
import { expression } from '../code/ExpressionNode.js';
import { addMethodChaining } from '../tsl/TSLCore.js';
/**
* Represents a `discard` shader operation in TSL.
*
* @tsl
* @function
* @param {?ConditionalNode} conditional - An optional conditional node. It allows to decide whether the discard should be executed or not.
* @return {Node} The `discard` expression.
*/
export const Discard = ( conditional ) => ( conditional ? select( conditional, expression( 'discard' ) ) : expression( 'discard' ) ).toStack();
/**
* Represents a `return` shader operation in TSL.
*
* @tsl
* @function
* @return {ExpressionNode} The `return` expression.
*/
export const Return = () => expression( 'return' ).toStack();
addMethodChaining( 'discard', Discard );

Xet Storage Details

Size:
816 Bytes
·
Xet hash:
105f5823c03969464b3f196cc8aa879072cbbbac926819476d2219e6eac67265

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.