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

Method getIsFloatRead

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

Source from the content-addressed store, hash-verified

30 }
31
32 static getIsFloatRead() {
33 const kernelString = `function kernelFunction() {
34 return 1;
35 }`;
36 const kernel = new this(kernelString, {
37 context: this.testContext,
38 canvas: this.testCanvas,
39 validate: false,
40 output: [1],
41 precision: 'single',
42 returnType: 'Number',
43 tactic: 'speed',
44 });
45 kernel.build();
46 kernel.run();
47 const result = kernel.renderOutput();
48 kernel.destroy(true);
49 return result[0] === 1;
50 }
51
52 static getIsIntegerDivisionAccurate() {
53 function kernelFunction(v1, v2) {

Callers 2

getFeaturesMethod · 0.95
getFeaturesMethod · 0.80

Calls 3

buildMethod · 0.45
runMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected