()
| 113 | } |
| 114 | |
| 115 | static getFeatures() { |
| 116 | const gl = this.testContext; |
| 117 | const isDrawBuffers = this.getIsDrawBuffers(); |
| 118 | return Object.freeze({ |
| 119 | isFloatRead: this.getIsFloatRead(), |
| 120 | isIntegerDivisionAccurate: this.getIsIntegerDivisionAccurate(), |
| 121 | isSpeedTacticSupported: this.getIsSpeedTacticSupported(), |
| 122 | isTextureFloat: this.getIsTextureFloat(), |
| 123 | isDrawBuffers, |
| 124 | kernelMap: isDrawBuffers, |
| 125 | channelCount: this.getChannelCount(), |
| 126 | maxTextureSize: this.getMaxTextureSize(), |
| 127 | lowIntPrecision: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_INT), |
| 128 | lowFloatPrecision: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_FLOAT), |
| 129 | mediumIntPrecision: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_INT), |
| 130 | mediumFloatPrecision: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT), |
| 131 | highIntPrecision: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_INT), |
| 132 | highFloatPrecision: gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT), |
| 133 | }); |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * @abstract |
no test coverage detected