@luma.gl/shadertools
Advanced tools
Comparing version 7.2.0-alpha.2 to 7.2.0-alpha.3
@@ -20,2 +20,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "getDefaultShaderModules", { | ||
enumerable: true, | ||
get: function get() { | ||
return _resolveModules.getDefaultShaderModules; | ||
} | ||
}); | ||
Object.defineProperty(exports, "assembleShaders", { | ||
@@ -22,0 +28,0 @@ enumerable: true, |
@@ -9,2 +9,3 @@ "use strict"; | ||
exports.setDefaultShaderModules = setDefaultShaderModules; | ||
exports.getDefaultShaderModules = getDefaultShaderModules; | ||
exports.registerShaderModules = registerShaderModules; | ||
@@ -23,2 +24,6 @@ exports.resolveModules = resolveModules; | ||
function getDefaultShaderModules() { | ||
return shaderModuleRegistry.getDefaultShaderModules(); | ||
} | ||
function registerShaderModules(shaderModuleList) { | ||
@@ -25,0 +30,0 @@ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, |
@@ -31,2 +31,7 @@ "use strict"; | ||
}, { | ||
key: "getDefaultShaderModules", | ||
value: function getDefaultShaderModules() { | ||
return this.defaultShaderModules; | ||
} | ||
}, { | ||
key: "registerShaderModules", | ||
@@ -33,0 +38,0 @@ value: function registerShaderModules(shaderModuleList) { |
import MODULAR_VS from './shaders/modular-vertex.glsl'; | ||
import MODULAR_FS from './shaders/modular-fragment.glsl'; | ||
export { registerShaderModules, setDefaultShaderModules } from './lib/resolve-modules'; | ||
export { registerShaderModules, setDefaultShaderModules, getDefaultShaderModules } from './lib/resolve-modules'; | ||
export { assembleShaders, createShaderHook, createModuleInjection } from './lib/assemble-shaders'; | ||
@@ -5,0 +5,0 @@ export { combineInjects } from './lib/inject-shader'; |
@@ -6,2 +6,5 @@ import ShaderModuleRegistry from './shader-module-registry'; | ||
} | ||
export function getDefaultShaderModules() { | ||
return shaderModuleRegistry.getDefaultShaderModules(); | ||
} | ||
export function registerShaderModules(shaderModuleList) { | ||
@@ -8,0 +11,0 @@ let { |
@@ -13,2 +13,6 @@ import ShaderModule from './shader-module'; | ||
getDefaultShaderModules() { | ||
return this.defaultShaderModules; | ||
} | ||
registerShaderModules(shaderModuleList) { | ||
@@ -15,0 +19,0 @@ let { |
import MODULAR_VS from './shaders/modular-vertex.glsl'; | ||
import MODULAR_FS from './shaders/modular-fragment.glsl'; | ||
export { registerShaderModules, setDefaultShaderModules } from './lib/resolve-modules'; | ||
export { registerShaderModules, setDefaultShaderModules, getDefaultShaderModules } from './lib/resolve-modules'; | ||
export { assembleShaders, createShaderHook, createModuleInjection } from './lib/assemble-shaders'; | ||
@@ -5,0 +5,0 @@ export { combineInjects } from './lib/inject-shader'; |
@@ -6,2 +6,5 @@ import ShaderModuleRegistry from './shader-module-registry'; | ||
} | ||
export function getDefaultShaderModules() { | ||
return shaderModuleRegistry.getDefaultShaderModules(); | ||
} | ||
export function registerShaderModules(shaderModuleList) { | ||
@@ -8,0 +11,0 @@ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, |
@@ -20,2 +20,7 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; | ||
}, { | ||
key: "getDefaultShaderModules", | ||
value: function getDefaultShaderModules() { | ||
return this.defaultShaderModules; | ||
} | ||
}, { | ||
key: "registerShaderModules", | ||
@@ -22,0 +27,0 @@ value: function registerShaderModules(shaderModuleList) { |
{ | ||
"name": "@luma.gl/shadertools", | ||
"version": "7.2.0-alpha.2", | ||
"version": "7.2.0-alpha.3", | ||
"description": "Shader module system for luma.gl", | ||
@@ -42,3 +42,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "edaa7caabc3aa3e422eb7a4c3c90377968c867af" | ||
"gitHead": "ca4f57e62c5b48e931743e7a6f469e1da7914e0e" | ||
} |
@@ -10,3 +10,7 @@ // shadertools exports | ||
// DOCUMENTED APIS | ||
export {registerShaderModules, setDefaultShaderModules} from './lib/resolve-modules'; | ||
export { | ||
registerShaderModules, | ||
setDefaultShaderModules, | ||
getDefaultShaderModules | ||
} from './lib/resolve-modules'; | ||
export {assembleShaders, createShaderHook, createModuleInjection} from './lib/assemble-shaders'; | ||
@@ -13,0 +17,0 @@ |
@@ -15,2 +15,6 @@ import ShaderModuleRegistry from './shader-module-registry'; | ||
export function getDefaultShaderModules() { | ||
return shaderModuleRegistry.getDefaultShaderModules(); | ||
} | ||
/** | ||
@@ -17,0 +21,0 @@ * Registers an array of shader modules |
@@ -14,2 +14,6 @@ import ShaderModule from './shader-module'; | ||
getDefaultShaderModules() { | ||
return this.defaultShaderModules; | ||
} | ||
registerShaderModules(shaderModuleList, {ignoreMultipleRegistrations = false} = {}) { | ||
@@ -16,0 +20,0 @@ for (const shaderModule of shaderModuleList) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1614476
22376
363