import macro from 'vtk.js/Sources/macros';
function vtkWebGPUShaderModule(publicAPI, model) { model.classHierarchy.push('vtkWebGPUShaderModule');
publicAPI.initialize = (device, shaderDesc) => { model.device = device; model.handle = model.device.getHandle().createShaderModule({ code: shaderDesc.getCode(), }); };
}
const DEFAULT_VALUES = { device: null, handle: null, };
function extend(publicAPI, model, initialValues = {}) { Object.assign(model, DEFAULT_VALUES, initialValues);
macro.obj(publicAPI, model); macro.get(publicAPI, model, ['lastCameraMTime']); macro.setGet(publicAPI, model, ['device', 'handle']);
vtkWebGPUShaderModule(publicAPI, model); }
const newInstance = macro.newInstance(extend, 'vtkWebGPUShaderModule');
export default { newInstance, extend };
|