getForCompute method
dynamic
getForCompute(
- dynamic param
Implementation
getForCompute(param) {
var data = this.uniformsData.get(param);
if (data == undefined) {
// bindings are not yet retrieved via node material
var bindings = param.bindings != undefined ? param.bindings.slice() : [];
var computePipeline = this.computePipelines.get(param);
var bindLayout = computePipeline.getBindGroupLayout(0);
var bindGroup = this._createBindGroup(bindings, bindLayout);
data = {"layout": bindLayout, "group": bindGroup, "bindings": bindings};
this.uniformsData.set(param, data);
}
return data;
}