@@ -51,6 +51,8 @@ import { Texture } from '../platform/graphics/texture.js';
5151import { VertexBuffer } from '../platform/graphics/vertex-buffer.js' ;
5252import { VertexFormat } from '../platform/graphics/vertex-format.js' ;
5353import { VertexIterator } from '../platform/graphics/vertex-iterator.js' ;
54+ import { ShaderUtils } from '../platform/graphics/shader-utils.js' ;
55+ import { GraphicsDeviceAccess } from '../platform/graphics/graphics-device-access.js' ;
5456
5557import { PROJECTION_ORTHOGRAPHIC , PROJECTION_PERSPECTIVE , LAYERID_IMMEDIATE , LINEBATCH_OVERLAY , LAYERID_WORLD } from '../scene/constants.js' ;
5658import { calculateTangents , createBox , createCapsule , createCone , createCylinder , createMesh , createPlane , createSphere , createTorus } from '../scene/procedural.js' ;
@@ -111,7 +113,6 @@ import {
111113import { RigidBodyComponent } from '../framework/components/rigid-body/component.js' ;
112114import { RigidBodyComponentSystem } from '../framework/components/rigid-body/system.js' ;
113115import { basisInitialize } from '../framework/handlers/basis.js' ;
114- import { ShaderUtils } from '../platform/graphics/shader-utils.js' ;
115116
116117// CORE
117118
@@ -464,6 +465,13 @@ Object.defineProperties(RenderTarget.prototype, {
464465 }
465466} ) ;
466467
468+ Object . defineProperty ( VertexFormat , 'defaultInstancingFormat' , {
469+ get : function ( ) {
470+ Debug . deprecated ( 'pc.VertexFormat.defaultInstancingFormat is deprecated, use pc.VertexFormat.getDefaultInstancingFormat(graphicsDevice).' ) ;
471+ return VertexFormat . getDefaultInstancingFormat ( GraphicsDeviceAccess . get ( ) ) ;
472+ }
473+ } ) ;
474+
467475VertexFormat . prototype . update = function ( ) {
468476 Debug . deprecated ( 'pc.VertexFormat.update is deprecated, and VertexFormat cannot be changed after it has been created.' ) ;
469477} ;
0 commit comments