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

Moved /graphics to /platform/graphics #4714

Merged
merged 3 commits into from
Oct 10, 2022
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/webgpu-temp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
import { AssetListLoader } from "../../src/asset/asset-list-loader.js";
import { AppBase } from "../../src/framework/app-base.js";
import { AppOptions } from "../../src/framework/app-options.js";
import { WebgpuGraphicsDevice } from '../../src/graphics/webgpu/webgpu-graphics-device.js';
import { Shader } from '../../src/graphics/shader.js';
import { Texture } from '../../src/graphics/texture.js';
import { RenderTarget } from '../../src/graphics/render-target.js';
import { WebgpuGraphicsDevice } from '../../src/platform/graphics/webgpu/webgpu-graphics-device.js';
import { Shader } from '../../src/platform/graphics/shader.js';
import { Texture } from '../../src/platform/graphics/texture.js';
import { RenderTarget } from '../../src/platform/graphics/render-target.js';
import {
SEMANTIC_TEXCOORD0, SEMANTIC_POSITION, CULLFACE_NONE,
PIXELFORMAT_R8_G8_B8_A8, FILTER_LINEAR, ADDRESS_CLAMP_TO_EDGE
} from '../../src/graphics/constants.js';
} from '../../src/platform/graphics/constants.js';
import { Entity } from "../../src/framework/entity.js";
import { Tracing } from "../../src/core/tracing.js";
import {
Expand Down
24 changes: 12 additions & 12 deletions src/deprecated/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,24 @@ import {
TEXTURELOCK_READ, TEXTURELOCK_WRITE,
TEXTURETYPE_DEFAULT, TEXTURETYPE_RGBM, TEXTURETYPE_SWIZZLEGGGR,
TYPE_INT8, TYPE_UINT8, TYPE_INT16, TYPE_UINT16, TYPE_INT32, TYPE_UINT32, TYPE_FLOAT32
} from '../graphics/constants.js';
} from '../platform/graphics/constants.js';
import { begin, dummyFragmentCode, end, fogCode, gammaCode, precisionCode, skinCode, tonemapCode, versionCode } from '../scene/shader-lib/programs/common.js';
import { drawQuadWithShader } from '../graphics/simple-post-effect.js';
import { drawQuadWithShader } from '../platform/graphics/simple-post-effect.js';
import { shaderChunks } from '../scene/shader-lib/chunks/chunks.js';
import { GraphicsDevice } from '../graphics/graphics-device.js';
import { IndexBuffer } from '../graphics/index-buffer.js';
import { GraphicsDevice } from '../platform/graphics/graphics-device.js';
import { IndexBuffer } from '../platform/graphics/index-buffer.js';
import { createFullscreenQuad, drawFullscreenQuad, PostEffect } from '../scene/graphics/post-effect.js';
import { PostEffectQueue } from '../framework/components/camera/post-effect-queue.js';
import { ProgramLibrary } from '../scene/shader-lib/program-library.js';
import { getProgramLibrary, setProgramLibrary } from '../scene/shader-lib/get-program-library.js';
import { RenderTarget } from '../graphics/render-target.js';
import { ScopeId } from '../graphics/scope-id.js';
import { Shader } from '../graphics/shader.js';
import { ShaderInput } from '../graphics/shader-input.js';
import { Texture } from '../graphics/texture.js';
import { VertexBuffer } from '../graphics/vertex-buffer.js';
import { VertexFormat } from '../graphics/vertex-format.js';
import { VertexIterator } from '../graphics/vertex-iterator.js';
import { RenderTarget } from '../platform/graphics/render-target.js';
import { ScopeId } from '../platform/graphics/scope-id.js';
import { Shader } from '../platform/graphics/shader.js';
import { ShaderInput } from '../platform/graphics/shader-input.js';
import { Texture } from '../platform/graphics/texture.js';
import { VertexBuffer } from '../platform/graphics/vertex-buffer.js';
import { VertexFormat } from '../platform/graphics/vertex-format.js';
import { VertexIterator } from '../platform/graphics/vertex-iterator.js';

import { PROJECTION_ORTHOGRAPHIC, PROJECTION_PERSPECTIVE, LAYERID_IMMEDIATE, LINEBATCH_OVERLAY, LAYERID_WORLD } from '../scene/constants.js';
import { calculateTangents, createBox, createCapsule, createCone, createCylinder, createMesh, createPlane, createSphere, createTorus } from '../scene/procedural.js';
Expand Down
4 changes: 2 additions & 2 deletions src/font/canvas-font.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
ADDRESS_CLAMP_TO_EDGE,
FILTER_LINEAR, FILTER_LINEAR_MIPMAP_LINEAR,
PIXELFORMAT_R8_G8_B8_A8
} from '../graphics/constants.js';
import { Texture } from '../graphics/texture.js';
} from '../platform/graphics/constants.js';
import { Texture } from '../platform/graphics/texture.js';

/** @typedef {import('../framework/app-base.js').AppBase} AppBase */

Expand Down
2 changes: 1 addition & 1 deletion src/font/font.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FONT_MSDF } from './constants.js';

/** @typedef {import('../graphics/texture.js').Texture} Texture */
/** @typedef {import('../platform/graphics/texture.js').Texture} Texture */

/**
* Represents the resource of a font asset.
Expand Down
6 changes: 3 additions & 3 deletions src/framework/app-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { http } from '../platform/net/http.js';

import {
PRIMITIVE_TRIANGLES, PRIMITIVE_TRIFAN, PRIMITIVE_TRISTRIP
} from '../graphics/constants.js';
} from '../platform/graphics/constants.js';
import { setProgramLibrary } from '../scene/shader-lib/get-program-library.js';
import { ProgramLibrary } from '../scene/shader-lib/program-library.js';

Expand Down Expand Up @@ -67,8 +67,8 @@ import {
setApplication
} from './globals.js';

/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/texture.js').Texture} Texture */
/** @typedef {import('../platform/graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../platform/graphics/texture.js').Texture} Texture */
/** @typedef {import('../platform/input/element-input.js').ElementInput} ElementInput */
/** @typedef {import('../platform/input/game-pads.js').GamePads} GamePads */
/** @typedef {import('../platform/input/keyboard.js').Keyboard} Keyboard */
Expand Down
2 changes: 1 addition & 1 deletion src/framework/app-options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @typedef {import('../resources/handler.js').ResourceHandler} ResourceHandler */
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../platform/graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../platform/input/element-input.js').ElementInput} ElementInput */
/** @typedef {import('../platform/input/game-pads.js').GamePads} GamePads */
/** @typedef {import('../platform/input/keyboard.js').Keyboard} Keyboard */
Expand Down
2 changes: 1 addition & 1 deletion src/framework/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { platform } from '../core/platform.js';

import { WebglGraphicsDevice } from '../graphics/webgl/webgl-graphics-device.js';
import { WebglGraphicsDevice } from '../platform/graphics/webgl/webgl-graphics-device.js';

import { SoundManager } from '../platform/sound/manager.js';

Expand Down
2 changes: 1 addition & 1 deletion src/framework/components/camera/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component } from '../component.js';
import { PostEffectQueue } from './post-effect-queue.js';
import { Debug } from '../../../core/debug.js';

/** @typedef {import('../../../graphics/render-target.js').RenderTarget} RenderTarget */
/** @typedef {import('../../../platform/graphics/render-target.js').RenderTarget} RenderTarget */
/** @typedef {import('../../../core/math/color.js').Color} Color */
/** @typedef {import('../../../core/math/mat4.js').Mat4} Mat4 */
/** @typedef {import('../../../core/math/vec3.js').Vec3} Vec3 */
Expand Down
8 changes: 4 additions & 4 deletions src/framework/components/camera/post-effect-queue.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ADDRESS_CLAMP_TO_EDGE, FILTER_NEAREST, PIXELFORMAT_R8_G8_B8_A8 } from '../../../graphics/constants.js';
import { DebugGraphics } from '../../../graphics/debug-graphics.js';
import { RenderTarget } from '../../../graphics/render-target.js';
import { Texture } from '../../../graphics/texture.js';
import { ADDRESS_CLAMP_TO_EDGE, FILTER_NEAREST, PIXELFORMAT_R8_G8_B8_A8 } from '../../../platform/graphics/constants.js';
import { DebugGraphics } from '../../../platform/graphics/debug-graphics.js';
import { RenderTarget } from '../../../platform/graphics/render-target.js';
import { Texture } from '../../../platform/graphics/texture.js';

import { LAYERID_DEPTH } from '../../../scene/constants.js';

Expand Down
2 changes: 1 addition & 1 deletion src/framework/components/collision/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Mat4 } from '../../../core/math/mat4.js';
import { Quat } from '../../../core/math/quat.js';
import { Vec3 } from '../../../core/math/vec3.js';

import { SEMANTIC_POSITION } from '../../../graphics/constants.js';
import { SEMANTIC_POSITION } from '../../../platform/graphics/constants.js';

import { GraphNode } from '../../../scene/graph-node.js';
import { Model } from '../../../scene/model.js';
Expand Down
4 changes: 2 additions & 2 deletions src/framework/components/element/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Vec2 } from '../../../core/math/vec2.js';
import { Vec3 } from '../../../core/math/vec3.js';
import { Vec4 } from '../../../core/math/vec4.js';

import { FUNC_ALWAYS, FUNC_EQUAL, STENCILOP_INCREMENT, STENCILOP_REPLACE } from '../../../graphics/constants.js';
import { FUNC_ALWAYS, FUNC_EQUAL, STENCILOP_INCREMENT, STENCILOP_REPLACE } from '../../../platform/graphics/constants.js';

import { LAYERID_UI } from '../../../scene/constants.js';
import { BatchGroup } from '../../../scene/batching/batch-group.js';
Expand All @@ -22,7 +22,7 @@ import { TextElement } from './text-element.js';
/** @typedef {import('../../../core/math/color.js').Color} Color */
/** @typedef {import('../../../font/canvas-font.js').CanvasFont} CanvasFont */
/** @typedef {import('../../../font/font.js').Font} Font */
/** @typedef {import('../../../graphics/texture.js').Texture} Texture */
/** @typedef {import('../../../platform/graphics/texture.js').Texture} Texture */
/** @typedef {import('../../../scene/materials/material.js').Material} Material */
/** @typedef {import('../../../scene/sprite.js').Sprite} Sprite */
/** @typedef {import('./system.js').ElementComponentSystem} ElementComponentSystem */
Expand Down
6 changes: 3 additions & 3 deletions src/framework/components/element/image-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
SEMANTIC_POSITION, SEMANTIC_NORMAL, SEMANTIC_TEXCOORD0,
STENCILOP_DECREMENT,
TYPE_FLOAT32
} from '../../../graphics/constants.js';
import { VertexBuffer } from '../../../graphics/vertex-buffer.js';
import { VertexFormat } from '../../../graphics/vertex-format.js';
} from '../../../platform/graphics/constants.js';
import { VertexBuffer } from '../../../platform/graphics/vertex-buffer.js';
import { VertexFormat } from '../../../platform/graphics/vertex-format.js';

import {
LAYER_HUD, LAYER_WORLD,
Expand Down
4 changes: 2 additions & 2 deletions src/framework/components/element/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Vec4 } from '../../../core/math/vec4.js';

import {
PIXELFORMAT_R8_G8_B8_A8
} from '../../../graphics/constants.js';
import { Texture } from '../../../graphics/texture.js';
} from '../../../platform/graphics/constants.js';
import { Texture } from '../../../platform/graphics/texture.js';

import { BLEND_PREMULTIPLIED, SPRITE_RENDERMODE_SLICED, SPRITE_RENDERMODE_TILED } from '../../../scene/constants.js';
import { StandardMaterial } from '../../../scene/materials/standard-material.js';
Expand Down
4 changes: 2 additions & 2 deletions src/framework/components/element/text-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { Vec2 } from '../../../core/math/vec2.js';

import { BoundingBox } from '../../../core/shape/bounding-box.js';

import { SEMANTIC_POSITION, SEMANTIC_TEXCOORD0, SEMANTIC_COLOR, SEMANTIC_ATTR8, SEMANTIC_ATTR9, TYPE_FLOAT32 } from '../../../graphics/constants.js';
import { VertexIterator } from '../../../graphics/vertex-iterator.js';
import { SEMANTIC_POSITION, SEMANTIC_TEXCOORD0, SEMANTIC_COLOR, SEMANTIC_ATTR8, SEMANTIC_ATTR9, TYPE_FLOAT32 } from '../../../platform/graphics/constants.js';
import { VertexIterator } from '../../../platform/graphics/vertex-iterator.js';
import { GraphNode } from '../../../scene/graph-node.js';
import { MeshInstance } from '../../../scene/mesh-instance.js';
import { Model } from '../../../scene/model.js';
Expand Down
4 changes: 2 additions & 2 deletions src/framework/components/sprite/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Color } from '../../../core/math/color.js';
import {
CULLFACE_NONE,
PIXELFORMAT_R8_G8_B8_A8
} from '../../../graphics/constants.js';
import { Texture } from '../../../graphics/texture.js';
} from '../../../platform/graphics/constants.js';
import { Texture } from '../../../platform/graphics/texture.js';

import { BLEND_PREMULTIPLIED, SPRITE_RENDERMODE_SLICED, SPRITE_RENDERMODE_TILED } from '../../../scene/constants.js';
import { StandardMaterial } from '../../../scene/materials/standard-material.js';
Expand Down
10 changes: 5 additions & 5 deletions src/framework/scene-grab.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import {
ADDRESS_CLAMP_TO_EDGE,
FILTER_NEAREST, FILTER_LINEAR, FILTER_LINEAR_MIPMAP_LINEAR,
PIXELFORMAT_DEPTHSTENCIL, PIXELFORMAT_R8_G8_B8_A8, PIXELFORMAT_R8_G8_B8
} from '../graphics/constants.js';
} from '../platform/graphics/constants.js';

import { RenderTarget } from '../graphics/render-target.js';
import { Texture } from '../graphics/texture.js';
import { DebugGraphics } from '../graphics/debug-graphics.js';
import { RenderTarget } from '../platform/graphics/render-target.js';
import { Texture } from '../platform/graphics/texture.js';
import { DebugGraphics } from '../platform/graphics/debug-graphics.js';

import {
LAYERID_DEPTH, LAYERID_WORLD,
Expand All @@ -15,7 +15,7 @@ import {

import { Layer } from '../scene/layer.js';

/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../platform/graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./components/camera/component.js').CameraComponent} CameraComponent */

// uniform names (first is current name, second one is deprecated name for compatibility)
Expand Down
2 changes: 1 addition & 1 deletion src/framework/stats.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getApplication } from './globals.js';

/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../platform/graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */

/**
* Records performance-related statistics related to the application.
Expand Down
28 changes: 14 additions & 14 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,30 @@ export { Plane } from './core/shape/plane.js';
export { Ray } from './core/shape/ray.js';

// GRAPHICS
export * from './graphics/constants.js';
export { drawQuadWithShader, drawTexture } from './graphics/simple-post-effect.js';
export * from './platform/graphics/constants.js';
export { drawQuadWithShader, drawTexture } from './platform/graphics/simple-post-effect.js';
export { shFromCubemap } from './scene/graphics/prefilter-cubemap.js';
export { reprojectTexture } from './scene/graphics/reproject-texture.js';
export { createShader, createShaderFromCode } from './scene/shader-lib/utils.js';
export { shaderChunks } from './scene/shader-lib/chunks/chunks.js';
export { shaderChunksLightmapper } from './scene/shader-lib/chunks/chunks-lightmapper.js';
export { GraphicsDevice } from './graphics/graphics-device.js';
export { GraphicsDevice } from './platform/graphics/graphics-device.js';
export { EnvLighting } from './scene/graphics/env-lighting.js';
export { IndexBuffer } from './graphics/index-buffer.js';
export { IndexBuffer } from './platform/graphics/index-buffer.js';
export { PostEffect, drawFullscreenQuad } from './scene/graphics/post-effect.js';
export { ProgramLibrary } from './scene/shader-lib/program-library.js';
export { RenderTarget } from './graphics/render-target.js';
export { ScopeId } from './graphics/scope-id.js';
export { ScopeSpace } from './graphics/scope-space.js';
export { Shader } from './graphics/shader.js';
export { Texture } from './graphics/texture.js';
export { TransformFeedback } from './graphics/transform-feedback.js';
export { VertexBuffer } from './graphics/vertex-buffer.js';
export { VertexFormat } from './graphics/vertex-format.js';
export { VertexIterator } from './graphics/vertex-iterator.js';
export { RenderTarget } from './platform/graphics/render-target.js';
export { ScopeId } from './platform/graphics/scope-id.js';
export { ScopeSpace } from './platform/graphics/scope-space.js';
export { Shader } from './platform/graphics/shader.js';
export { Texture } from './platform/graphics/texture.js';
export { TransformFeedback } from './platform/graphics/transform-feedback.js';
export { VertexBuffer } from './platform/graphics/vertex-buffer.js';
export { VertexFormat } from './platform/graphics/vertex-format.js';
export { VertexIterator } from './platform/graphics/vertex-iterator.js';

// GRAPHICS / webgl
export { WebglGraphicsDevice } from './graphics/webgl/webgl-graphics-device.js';
export { WebglGraphicsDevice } from './platform/graphics/webgl/webgl-graphics-device.js';

// SCENE
export * from './scene/constants.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { UNIFORM_BUFFER_DEFAULT_SLOT_NAME } from './constants.js';
/** @typedef {import('./bind-group-format.js').BindGroupFormat} BindGroupFormat */
/** @typedef {import('./uniform-buffer.js').UniformBuffer} UniformBuffer */

import { Debug } from '../core/debug.js';
import { Debug } from '../../core/debug.js';

/**
* A bind group represents an collection of {@link UniformBuffer} and {@link Texture} instance,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { EventHandler } from '../core/event-handler.js';
import { platform } from '../core/platform.js';
import { now } from '../core/time.js';
import { EventHandler } from '../../core/event-handler.js';
import { platform } from '../../core/platform.js';
import { now } from '../../core/time.js';

import { ScopeSpace } from './scope-space.js';

import {
PRIMITIVE_POINTS, PRIMITIVE_TRIFAN
} from './constants.js';
import { Debug } from '../core/debug.js';
import { Debug } from '../../core/debug.js';

const EVENT_RESIZE = 'resizecanvas';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Debug } from '../core/debug.js';
import { TRACEID_VRAM_IB } from '../core/constants.js';
import { Debug } from '../../core/debug.js';
import { TRACEID_VRAM_IB } from '../../core/constants.js';
import {
BUFFER_STATIC, INDEXFORMAT_UINT16, INDEXFORMAT_UINT32, typedArrayIndexFormatsByteSize
} from './constants.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color } from '../core/math/color.js';
import { Color } from '../../core/math/color.js';
import { DebugGraphics } from '../graphics/debug-graphics.js';

/** @typedef {import('../graphics/render-target.js').RenderTarget} RenderTarget */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Debug } from '../core/debug.js';
import { TRACEID_RENDER_TARGET_ALLOC } from '../core/constants.js';
import { Debug } from '../../core/debug.js';
import { TRACEID_RENDER_TARGET_ALLOC } from '../../core/constants.js';
import { PIXELFORMAT_DEPTH, PIXELFORMAT_DEPTHSTENCIL } from './constants.js';
import { DebugGraphics } from './debug-graphics.js';
import { GraphicsDevice } from './graphics-device.js';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Debug } from '../core/debug.js';
import { Debug } from '../../core/debug.js';
import {
BINDGROUP_MESH, uniformTypeToName, semanticToLocation,
SHADERSTAGE_VERTEX, SHADERSTAGE_FRAGMENT,
Expand Down
6 changes: 3 additions & 3 deletions src/graphics/shader.js → src/platform/graphics/shader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TRACEID_SHADER_ALLOC } from '../core/constants.js';
import { Debug } from '../core/debug.js';
import { Preprocessor } from '../core/preprocessor.js';
import { TRACEID_SHADER_ALLOC } from '../../core/constants.js';
import { Debug } from '../../core/debug.js';
import { Preprocessor } from '../../core/preprocessor.js';

/** @typedef {import('./graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../bind-group-format.js').BindGroupFormat} BindGroupFormat */
Expand Down
6 changes: 3 additions & 3 deletions src/graphics/texture.js → src/platform/graphics/texture.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Debug } from '../core/debug.js';
import { TRACEID_TEXTURE_ALLOC, TRACEID_VRAM_TEXTURE } from '../core/constants.js';
import { math } from '../core/math/math.js';
import { Debug } from '../../core/debug.js';
import { TRACEID_TEXTURE_ALLOC, TRACEID_VRAM_TEXTURE } from '../../core/constants.js';
import { math } from '../../core/math/math.js';

import {
ADDRESS_REPEAT,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Debug } from '../core/debug.js';
import { Debug } from '../../core/debug.js';
import { createShaderFromCode } from '../../scene/shader-lib/utils.js';

import { BUFFER_GPUDYNAMIC, PRIMITIVE_POINTS } from './constants.js';
import { createShaderFromCode } from '../scene/shader-lib/utils.js';
import { VertexBuffer } from './vertex-buffer.js';
import { DebugGraphics } from './debug-graphics.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Debug } from '../core/debug.js';
import { math } from '../core/math/math.js';
import { Debug } from '../../core/debug.js';
import { math } from '../../core/math/math.js';
import {
uniformTypeToName, bindGroupNames,
UNIFORMTYPE_BOOL, UNIFORMTYPE_INT, UNIFORMTYPE_FLOAT, UNIFORMTYPE_VEC2, UNIFORMTYPE_VEC3,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Debug } from '../core/debug.js';
import { Debug } from '../../core/debug.js';
import {
uniformTypeToName,
UNIFORMTYPE_INT, UNIFORMTYPE_FLOAT, UNIFORMTYPE_VEC2, UNIFORMTYPE_VEC3,
Expand Down
File renamed without changes.
Loading