Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove imports of external assert #999

Merged
merged 1 commit into from Mar 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/core/src/core/transform-shader-utils.js
@@ -1,4 +1,4 @@
import assert from 'assert';
import {assert} from '../utils';
import {combineInjects, getQualifierDetails, typeToChannelSuffix} from '@luma.gl/shadertools';

const SAMPLER_UNIFORM_PREFIX = 'transform_uSampler_';
Expand Down
2 changes: 1 addition & 1 deletion modules/shadertools/src/lib/filters/prop-types.js
@@ -1,4 +1,4 @@
// // import assert from 'assert'; // TODO
// // import assert from '../../utils'; // TODO

const TYPE_DEFINITIONS = {
boolean: {
Expand Down
2 changes: 1 addition & 1 deletion modules/shadertools/src/lib/inject-shader.js
@@ -1,6 +1,6 @@
import {MODULE_INJECTORS_VS, MODULE_INJECTORS_FS} from '../modules/module-injectors';
import {VERTEX_SHADER, FRAGMENT_SHADER} from './constants';
import assert from 'assert';
import {assert} from '../utils';

// TODO - experimental
const MODULE_INJECTORS = {
Expand Down
2 changes: 1 addition & 1 deletion modules/shadertools/src/utils/shader-utils.js
@@ -1,4 +1,4 @@
import assert from 'assert';
import {assert} from '../utils';
const FS100 = 'void main() {}';
const FS300 = `#version 300 es\n${FS100}`;

Expand Down
2 changes: 1 addition & 1 deletion modules/webgl/src/webgl-utils/texture-utils.js
Expand Up @@ -4,7 +4,7 @@ import TextureCube from '../classes/texture-cube';
import Texture3D from '../classes/texture-3d';
import Framebuffer from '../classes/framebuffer';
import GL from '@luma.gl/constants';
import assert from 'assert';
import {assert} from '../utils';

// Clone a new texture object from a reference texture object.
export function cloneTextureFrom(refTexture, overrides) {
Expand Down