MCPcopy Index your code
hub / github.com/gpujs/gpu.js / getFeatures

Method getFeatures

src/backend/gl/kernel.js:115–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

setupFeatureChecksMethod · 0.45

Calls 7

getIsFloatReadMethod · 0.95
getIsDrawBuffersMethod · 0.45
getIsTextureFloatMethod · 0.45
getChannelCountMethod · 0.45
getMaxTextureSizeMethod · 0.45

Tested by

no test coverage detected