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

Move GraphicsDevice to webgl subfolder #4009

Merged
merged 3 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion src/deprecated/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
import { drawQuadWithShader } from '../graphics/simple-post-effect.js';
import { programlib } from '../graphics/program-lib/program-lib.js';
import { shaderChunks } from '../graphics/program-lib/chunks/chunks.js';
import { GraphicsDevice } from '../graphics/graphics-device.js';
import { GraphicsDevice } from '../graphics/webgl/graphics-device.js';
import { IndexBuffer } from '../graphics/index-buffer.js';
import { createFullscreenQuad, drawFullscreenQuad, PostEffect } from '../graphics/post-effect.js';
import { PostEffectQueue } from '../framework/components/camera/post-effect-queue.js';
Expand Down
2 changes: 1 addition & 1 deletion src/framework/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
PRIMITIVE_TRIANGLES, PRIMITIVE_TRIFAN, PRIMITIVE_TRISTRIP
} from '../graphics/constants.js';
import { destroyPostEffectQuad } from '../graphics/simple-post-effect.js';
import { GraphicsDevice } from '../graphics/graphics-device.js';
import { GraphicsDevice } from '../graphics/webgl/graphics-device.js';

import {
LAYERID_DEPTH, LAYERID_IMMEDIATE, LAYERID_SKYBOX, LAYERID_UI, LAYERID_WORLD,
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('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */

/**
* Records performance-related statistics related to the application.
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/debug-graphics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @typedef {import('./graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */

/**
* Internal graphics debug system - gpu markers and similar. Note that the functions only execute in the
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/index-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
BUFFER_STATIC, INDEXFORMAT_UINT16, INDEXFORMAT_UINT32, typedArrayIndexFormatsByteSize
} from './constants.js';

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

/**
* An index buffer stores index values into a {@link VertexBuffer}. Indexed graphical primitives
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/post-effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { VertexFormat } from './vertex-format.js';
import { VertexIterator } from './vertex-iterator.js';

/** @typedef {import('../math/vec4.js').Vec4} Vec4 */
/** @typedef {import('./graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./render-target.js').RenderTarget} RenderTarget */
/** @typedef {import('./shader.js').Shader} Shader */

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/program-lib/programs/standard.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { LightsBuffer } from '../../../scene/lighting/lights-buffer.js';

import { begin, end, fogCode, gammaCode, precisionCode, skinCode, tonemapCode, versionCode } from './common.js';

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

const _matTex2D = [];

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/render-target.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Debug } from '../core/debug.js';
import { PIXELFORMAT_DEPTH, PIXELFORMAT_DEPTHSTENCIL } from './constants.js';

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/reproject-texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { createShaderFromCode } from './program-lib/utils.js';
import { drawQuadWithShader } from './simple-post-effect.js';
import { shaderChunks } from './program-lib/chunks/chunks.js';
import { RenderTarget } from './render-target.js';
import { GraphicsDevice } from './graphics-device.js';
import { GraphicsDevice } from './webgl/graphics-device.js';
import { Texture } from './texture.js';
import { DebugGraphics } from './debug-graphics.js';

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/shader-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { UNIFORMTYPE_FLOAT, UNIFORMTYPE_FLOATARRAY, UNIFORMTYPE_VEC2, UNIFORMTYP
UNIFORMTYPE_VEC2ARRAY, UNIFORMTYPE_VEC3ARRAY, UNIFORMTYPE_VEC4ARRAY } from './constants.js';
import { Version } from './version.js';

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

/**
* Representation of a shader uniform.
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/shader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @typedef {import('./graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */

/**
* A shader is a program that is responsible for rendering graphical primitives on a device's
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/simple-post-effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { VertexFormat } from './vertex-format.js';
import { DebugGraphics } from './debug-graphics.js';

/** @typedef {import('../math/vec4.js').Vec4} Vec4 */
/** @typedef {import('./graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./render-target.js').RenderTarget} RenderTarget */
/** @typedef {import('./shader.js').Shader} Shader */
/** @typedef {import('./texture.js').Texture} Texture */
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
TEXTURETYPE_DEFAULT, TEXTURETYPE_RGBM, TEXTURETYPE_RGBE, TEXTURETYPE_SWIZZLEGGGR
} from './constants.js';

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

let _pixelSizeTable = null;
let _blockSizeTable = null;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/transform-feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createShaderFromCode } from './program-lib/utils.js';
import { VertexBuffer } from './vertex-buffer.js';
import { DebugGraphics } from './debug-graphics.js';

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

/**
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/vertex-buffer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Debug } from '../core/debug.js';
import { BUFFER_STATIC } from './constants.js';

/** @typedef {import('./graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./vertex-format.js').VertexFormat} VertexFormat */

let id = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/vertex-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SEMANTIC_COLOR, SEMANTIC_TANGENT, TYPE_FLOAT32, typedArrayTypesByteSize
} from './constants.js';

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

/**
* A vertex format is a descriptor that defines the layout of vertex data inside a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { setupVertexArrayObject } from '../polyfill/OESVertexArrayObject.js';
import { EventHandler } from '../core/event-handler.js';
import { now } from '../core/time.js';
import { Debug } from '../core/debug.js';
import { platform } from '../core/platform.js';
import { WebglVertexBuffer } from './webgl/webgl-vertex-buffer.js';
import { WebglIndexBuffer } from './webgl/webgl-index-buffer.js';
import { setupVertexArrayObject } from '../../polyfill/OESVertexArrayObject.js';
import { EventHandler } from '../../core/event-handler.js';
import { now } from '../../core/time.js';
import { Debug } from '../../core/debug.js';
import { platform } from '../../core/platform.js';
import { WebglVertexBuffer } from './webgl-vertex-buffer.js';
import { WebglIndexBuffer } from './webgl-index-buffer.js';

import {
ADDRESS_CLAMP_TO_EDGE,
Expand Down Expand Up @@ -32,23 +32,23 @@ import {
UNIFORMTYPE_TEXTURE2D, UNIFORMTYPE_TEXTURECUBE, UNIFORMTYPE_FLOATARRAY, UNIFORMTYPE_TEXTURE2D_SHADOW,
UNIFORMTYPE_TEXTURECUBE_SHADOW, UNIFORMTYPE_TEXTURE3D, UNIFORMTYPE_VEC2ARRAY, UNIFORMTYPE_VEC3ARRAY, UNIFORMTYPE_VEC4ARRAY,
semanticToLocation
} from './constants.js';

import { createShaderFromCode } from './program-lib/utils.js';
import { drawQuadWithShader } from './simple-post-effect.js';
import { programlib } from './program-lib/program-lib.js';
import { shaderChunks } from './program-lib/chunks/chunks.js';
import { RenderTarget } from './render-target.js';
import { ProgramLibrary } from './program-library.js';
import { ScopeSpace } from './scope-space.js';
import { ShaderInput } from './shader-input.js';
import { Texture } from './texture.js';
import { VertexFormat } from './vertex-format.js';
import { GrabPass } from './grab-pass.js';

/** @typedef {import('./index-buffer.js').IndexBuffer} IndexBuffer */
/** @typedef {import('./shader.js').Shader} Shader */
/** @typedef {import('./vertex-buffer.js').VertexBuffer} VertexBuffer */
} from '.././constants.js';
mvaligursky marked this conversation as resolved.
Show resolved Hide resolved

import { createShaderFromCode } from '../program-lib/utils.js';
import { drawQuadWithShader } from '../simple-post-effect.js';
import { programlib } from '../program-lib/program-lib.js';
import { shaderChunks } from '../program-lib/chunks/chunks.js';
import { RenderTarget } from '../render-target.js';
import { ProgramLibrary } from '../program-library.js';
import { ScopeSpace } from '../scope-space.js';
import { ShaderInput } from '../shader-input.js';
import { Texture } from '../texture.js';
import { VertexFormat } from '../vertex-format.js';
import { GrabPass } from '../grab-pass.js';

/** @typedef {import('../index-buffer.js').IndexBuffer} IndexBuffer */
/** @typedef {import('../shader.js').Shader} Shader */
/** @typedef {import('../vertex-buffer.js').VertexBuffer} VertexBuffer */

const EVENT_RESIZE = 'resizecanvas';

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export { shFromCubemap } from './graphics/prefilter-cubemap.js';
export { reprojectTexture } from './graphics/reproject-texture.js';
export { programlib } from './graphics/program-lib/program-lib.js';
export { shaderChunks } from './graphics/program-lib/chunks/chunks.js';
export { GraphicsDevice } from './graphics/graphics-device.js';
export { GraphicsDevice } from './graphics/webgl/graphics-device.js';
export { EnvLighting } from './graphics/env-lighting.js';
export { IndexBuffer } from './graphics/index-buffer.js';
export { PostEffect, drawFullscreenQuad } from './graphics/post-effect.js';
Expand Down
2 changes: 1 addition & 1 deletion src/resources/basis.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PIXELFORMAT_R5_G6_B5, PIXELFORMAT_R4_G4_B4_A4 } from '../graphics/const
import { BasisWorker } from './basis-worker.js';
import { http } from '../net/http.js';

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

// get the list of the device's supported compression formats
const getCompressionFormats = (device) => {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GlbParser } from './parser/glb-parser.js';

/** @typedef {import('../asset/asset-registry.js').AssetRegistry} AssetRegistry */
/** @typedef {import('../framework/entity.js').Entity} Entity */
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./handler.js').ResourceHandler} ResourceHandler */

/**
Expand Down
2 changes: 1 addition & 1 deletion src/resources/cubemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Asset } from '../asset/asset.js';
import { Texture } from '../graphics/texture.js';

/** @typedef {import('../asset/asset-registry.js').AssetRegistry} AssetRegistry */
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./handler.js').ResourceHandler} ResourceHandler */
/** @typedef {import('./loader.js').ResourceLoader} ResourceLoader */

Expand Down
2 changes: 1 addition & 1 deletion src/resources/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { JsonModelParser } from './parser/json-model.js';

import { DefaultMaterial } from '../scene/materials/default-material.js';

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

/**
Expand Down
2 changes: 1 addition & 1 deletion src/resources/sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { http } from '../net/http.js';
import { Sprite } from '../scene/sprite.js';

/** @typedef {import('../asset/asset-registry.js').AssetRegistry} AssetRegistry */
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./handler.js').ResourceHandler} ResourceHandler */

// The scope of this function is the sprite asset
Expand Down
2 changes: 1 addition & 1 deletion src/resources/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { HdrParser } from './parser/texture/hdr.js';

/** @typedef {import('../asset/asset.js').Asset} Asset */
/** @typedef {import('../asset/asset-registry.js').AssetRegistry} AssetRegistry */
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./handler.js').ResourceHandler} ResourceHandler */
/** @typedef {import('./handler.js').resourceHandlerCallback} resourceHandlerCallback */
/** @typedef {import('./loader.js').ResourceLoader} ResourceLoader */
Expand Down
2 changes: 1 addition & 1 deletion src/scene/batching/batch-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { BatchGroup } from './batch-group.js';
import { SkinBatchInstance } from './skin-batch-instance.js';

/** @typedef {import('../../framework/entity.js').Entity} Entity */
/** @typedef {import('../../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../scene.js').Scene} Scene */

function paramsIdentical(a, b) {
Expand Down
2 changes: 1 addition & 1 deletion src/scene/composition/layer-composition.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { RenderAction } from './render-action.js';
import { WorldClusters } from '../lighting/world-clusters.js';
import { LightCompositionData } from './light-composition-data.js';

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

const tempSet = new Set();
Expand Down
2 changes: 1 addition & 1 deletion src/scene/lightmapper/lightmapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { WorldClusters } from '../lighting/world-clusters.js';
/** @typedef {import('../../asset/asset-registry.js').AssetRegistry} AssetRegistry */
/** @typedef {import('../../framework/entity.js').Entity} Entity */
/** @typedef {import('../renderer/forward-renderer.js').ForwardRenderer} ForwardRenderer */
/** @typedef {import('../../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../scene.js').Scene} Scene */

import {
Expand Down
2 changes: 1 addition & 1 deletion src/scene/mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { RENDERSTYLE_SOLID, RENDERSTYLE_WIREFRAME, RENDERSTYLE_POINTS } from './

import { getApplication } from '../framework/globals.js';

/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./morph.js').Morph} Morph */
/** @typedef {import('./skin.js').Skin} Skin */

Expand Down
2 changes: 1 addition & 1 deletion src/scene/morph.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getApplication } from '../framework/globals.js';

import { BUFFER_STATIC, TYPE_FLOAT32, SEMANTIC_ATTR15, ADDRESS_CLAMP_TO_EDGE, FILTER_NEAREST, PIXELFORMAT_RGBA16F, PIXELFORMAT_RGB32F } from '../graphics/constants.js';

/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./morph-target.js').MorphTarget} MorphTarget */

// value added to floats which are used as ints on the shader side to avoid values being rounded to one less occasionally
Expand Down
2 changes: 1 addition & 1 deletion src/scene/picker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Color } from '../math/color.js';

import { ADDRESS_CLAMP_TO_EDGE, CLEARFLAG_DEPTH, FILTER_NEAREST, PIXELFORMAT_R8_G8_B8_A8 } from '../graphics/constants.js';
import { GraphicsDevice } from '../graphics/graphics-device.js';
import { GraphicsDevice } from '../graphics/webgl/graphics-device.js';
import { RenderTarget } from '../graphics/render-target.js';
import { Texture } from '../graphics/texture.js';

Expand Down
2 changes: 1 addition & 1 deletion src/scene/procedural.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {

import { Mesh } from './mesh.js';

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

const primitiveUv1Padding = 4.0 / 64;
const primitiveUv1PaddingScale = 1.0 - primitiveUv1Padding * 2;
Expand Down
2 changes: 1 addition & 1 deletion src/scene/renderer/forward-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { CookieRenderer } from './cookie-renderer.js';
import { LightCamera } from './light-camera.js';
import { WorldClustersDebug } from '../lighting/world-clusters-debug.js';

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

const viewInvMat = new Mat4();
const viewMat = new Mat4();
Expand Down
2 changes: 1 addition & 1 deletion src/scene/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { EnvLighting } from '../graphics/env-lighting.js';
import { getApplication } from '../framework/globals.js';

/** @typedef {import('../framework/entity.js').Entity} Entity */
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/texture.js').Texture} Texture */
/** @typedef {import('./composition/layer-composition.js').LayerComposition} LayerComposition */
/** @typedef {import('./layer.js').Layer} Layer */
Expand Down
2 changes: 1 addition & 1 deletion src/scene/skin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../math/mat4.js').Mat4} Mat4 */

/**
Expand Down
2 changes: 1 addition & 1 deletion src/scene/sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Vec2 } from '../math/vec2.js';
import { SPRITE_RENDERMODE_SIMPLE, SPRITE_RENDERMODE_SLICED, SPRITE_RENDERMODE_TILED } from './constants.js';
import { createMesh } from './procedural.js';

/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('../graphics/webgl/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import('./mesh.js').Mesh} Mesh */
/** @typedef {import('./texture-atlas.js').TextureAtlas} TextureAtlas */

Expand Down
2 changes: 1 addition & 1 deletion test/framework/application.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AssetRegistry } from '../../src/asset/asset-registry.js';
import { BatchManager } from '../../src/scene/batching/batch-manager.js';
import { ComponentSystemRegistry } from '../../src/framework/components/registry.js';
import { Entity } from '../../src/framework/entity.js';
import { GraphicsDevice } from '../../src/graphics/graphics-device.js';
import { GraphicsDevice } from '../../src/graphics/webgl/graphics-device.js';
import { I18n } from '../../src/i18n/i18n.js';
import { Lightmapper } from '../../src/scene/lightmapper/lightmapper.js';
import { ResourceLoader } from '../../src/resources/loader.js';
Expand Down
2 changes: 1 addition & 1 deletion test/graphics/graphics-device.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphicsDevice } from '../../src/graphics/graphics-device.js';
import { GraphicsDevice } from '../../src/graphics/webgl/graphics-device.js';

import { HTMLCanvasElement } from '@playcanvas/canvas-mock';

Expand Down