| // @flow | |
| import type {StencilOpConstant, StencilTest} from './types'; | |
| const ALWAYS = 0x0207; | |
| const KEEP = 0x1E00; | |
| class StencilMode { | |
| test: StencilTest; | |
| ref: number; | |
| mask: number; | |
| fail: StencilOpConstant; | |
| depthFail: StencilOpConstant; | |
| pass: StencilOpConstant; | |
| constructor(test: StencilTest, ref: number, mask: number, fail: StencilOpConstant, | |
| depthFail: StencilOpConstant, pass: StencilOpConstant) { | |
| this.test = test; | |
| this.ref = ref; | |
| this.mask = mask; | |
| this.fail = fail; | |
| this.depthFail = depthFail; | |
| this.pass = pass; | |
| } | |
| static disabled: $ReadOnly<StencilMode>; | |
| } | |
| StencilMode.disabled = new StencilMode({func: ALWAYS, mask: 0}, 0, 0, KEEP, KEEP, KEEP); | |
| export default StencilMode; | |
Xet Storage Details
- Size:
- 776 Bytes
- Xet hash:
- 15bcbedd268e29229b1f71b4d843dcff83a2aa7dd090c47ee4f4797b376a173f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.