Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit c777d9d

Browse files
authored
add broadcast bit to shader key (#41)
* add broadcast bit to shader key
1 parent c254d95 commit c777d9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/math/webgl/gpgpu_math.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ export function makeShaderKey(
108108
const keyStart =
109109
inputs.concat(output).map(x => x.shape + '_' + x.getTextureShapeRC());
110110
const keyEnd = params.map(p => p.toString());
111-
const key = [program.constructor.name].concat(keyStart, keyEnd);
111+
let key = [program.constructor.name];
112+
key.push((program.supportsBroadcasting === true).toString());
113+
key = key.concat(keyStart, keyEnd);
112114
return key.join('_');
113115
}

0 commit comments

Comments
 (0)