@luma.gl/shadertools
Advanced tools
Comparing version 9.0.11 to 9.0.12
import { PropValidator } from "../filters/prop-types.js"; | ||
import { ShaderModule, ShaderModuleDeprecation } from "./shader-module.js"; | ||
import { ShaderInjection } from "../shader-assembly/shader-injections.js"; | ||
import { UniformFormat } from "../../types.js"; | ||
/** An initialized ShaderModule, ready to use with `assembleShaders()` */ | ||
@@ -18,3 +19,3 @@ export declare class ShaderModuleInstance { | ||
uniforms: Record<string, PropValidator>; | ||
uniformTypes: Record<string, PropValidator>; | ||
uniformTypes: Record<string, UniformFormat>; | ||
static instantiateModules(modules: (ShaderModule | ShaderModuleInstance)[]): ShaderModuleInstance[]; | ||
@@ -21,0 +22,0 @@ constructor(props: ShaderModule); |
@@ -37,3 +37,3 @@ // luma.gl | ||
constructor(props) { | ||
const { name, vs, fs, dependencies = [], uniformPropTypes = {}, getUniforms, deprecations = [], defines = {}, inject = {} } = props; | ||
const { name, vs, fs, dependencies = [], uniformTypes = {}, uniformPropTypes = {}, getUniforms, deprecations = [], defines = {}, inject = {} } = props; | ||
assert(typeof name === 'string'); | ||
@@ -48,2 +48,3 @@ this.name = name; | ||
this.injections = normalizeInjections(inject); | ||
this.uniformTypes = uniformTypes; | ||
if (uniformPropTypes) { | ||
@@ -50,0 +51,0 @@ this.uniforms = makePropValidators(uniformPropTypes); |
{ | ||
"name": "@luma.gl/shadertools", | ||
"version": "9.0.11", | ||
"version": "9.0.12", | ||
"description": "Shader module system for luma.gl", | ||
@@ -55,3 +55,3 @@ "type": "module", | ||
}, | ||
"gitHead": "82c56392f73c3f7b258e2928d687a4beca2e2838" | ||
"gitHead": "961c52ac4696ffebb4a35aa94b664af143981b54" | ||
} |
@@ -9,2 +9,3 @@ // luma.gl | ||
import {ShaderInjection, normalizeInjections} from '../shader-assembly/shader-injections'; | ||
import {UniformFormat} from '../../types'; | ||
@@ -27,3 +28,3 @@ let index = 1; | ||
uniforms: Record<string, PropValidator> = {}; | ||
uniformTypes: Record<string, PropValidator> = {}; | ||
uniformTypes: Record<string, UniformFormat> = {}; | ||
@@ -65,2 +66,3 @@ static instantiateModules( | ||
dependencies = [], | ||
uniformTypes = {}, | ||
uniformPropTypes = {}, | ||
@@ -82,2 +84,3 @@ getUniforms, | ||
this.injections = normalizeInjections(inject); | ||
this.uniformTypes = uniformTypes; | ||
@@ -84,0 +87,0 @@ if (uniformPropTypes) { |
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
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
2479529
329
47343