@galacean/engine-core 1.0.0-beta.11 → 1.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +19 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +19 -1
- package/dist/module.js +20 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/texture/Texture.d.ts +6 -0
- package/types/texture/Texture2D.d.ts +3 -1
- package/types/texture/enums/TextureUsage.d.ts +9 -0
- package/types/texture/index.d.ts +1 -0
package/dist/miniprogram.js
CHANGED
|
@@ -799,6 +799,14 @@ __decorate([
|
|
|
799
799
|
TextureFormat[TextureFormat[/** 32-bit depth + 8-bit stencil format. */ "Depth32Stencil8"] = 31] = "Depth32Stencil8";
|
|
800
800
|
})(exports.TextureFormat || (exports.TextureFormat = {}));
|
|
801
801
|
|
|
802
|
+
/**
|
|
803
|
+
* Texture usage.
|
|
804
|
+
*/ exports.TextureUsage = void 0;
|
|
805
|
+
(function(TextureUsage) {
|
|
806
|
+
TextureUsage[TextureUsage[/** The content of the texture is intended to be specified once. */ "Static"] = 0] = "Static";
|
|
807
|
+
TextureUsage[TextureUsage[/** The content of the texture is intended to be updated frequently, with better performance. */ "Dynamic"] = 1] = "Dynamic";
|
|
808
|
+
})(exports.TextureUsage || (exports.TextureUsage = {}));
|
|
809
|
+
|
|
802
810
|
/**
|
|
803
811
|
* Wrapping mode of the texture.
|
|
804
812
|
*/ exports.TextureWrapMode = void 0;
|
|
@@ -939,6 +947,14 @@ var Logger = {
|
|
|
939
947
|
return this._height;
|
|
940
948
|
}
|
|
941
949
|
},
|
|
950
|
+
{
|
|
951
|
+
key: "usage",
|
|
952
|
+
get: /**
|
|
953
|
+
* The usage of the texture.
|
|
954
|
+
*/ function get() {
|
|
955
|
+
return this._usage;
|
|
956
|
+
}
|
|
957
|
+
},
|
|
942
958
|
{
|
|
943
959
|
key: "wrapModeU",
|
|
944
960
|
get: /**
|
|
@@ -1182,14 +1198,16 @@ var Logger = {
|
|
|
1182
1198
|
* Two-dimensional texture.
|
|
1183
1199
|
*/ var Texture2D = /*#__PURE__*/ function(Texture) {
|
|
1184
1200
|
_inherits(Texture2D, Texture);
|
|
1185
|
-
function Texture2D(engine, width, height, format, mipmap) {
|
|
1201
|
+
function Texture2D(engine, width, height, format, mipmap, usage) {
|
|
1186
1202
|
if (format === void 0) format = exports.TextureFormat.R8G8B8A8;
|
|
1187
1203
|
if (mipmap === void 0) mipmap = true;
|
|
1204
|
+
if (usage === void 0) usage = exports.TextureUsage.Static;
|
|
1188
1205
|
var _this;
|
|
1189
1206
|
_this = Texture.call(this, engine) || this;
|
|
1190
1207
|
_this._mipmap = mipmap;
|
|
1191
1208
|
_this._width = width;
|
|
1192
1209
|
_this._height = height;
|
|
1210
|
+
_this._usage = usage;
|
|
1193
1211
|
_this._format = format;
|
|
1194
1212
|
_this._mipmapCount = _this._getMipmapCount();
|
|
1195
1213
|
_this._isDepthTexture = format == exports.TextureFormat.Depth || format == exports.TextureFormat.DepthStencil || format == exports.TextureFormat.Depth16 || format == exports.TextureFormat.Depth24 || format == exports.TextureFormat.Depth32 || format == exports.TextureFormat.Depth24Stencil8 || format == exports.TextureFormat.Depth32Stencil8;
|
package/dist/module.js
CHANGED
|
@@ -794,6 +794,14 @@ __decorate([
|
|
|
794
794
|
TextureFormat[TextureFormat[/** 32-bit depth + 8-bit stencil format. */ "Depth32Stencil8"] = 31] = "Depth32Stencil8";
|
|
795
795
|
})(TextureFormat || (TextureFormat = {}));
|
|
796
796
|
|
|
797
|
+
/**
|
|
798
|
+
* Texture usage.
|
|
799
|
+
*/ var TextureUsage;
|
|
800
|
+
(function(TextureUsage) {
|
|
801
|
+
TextureUsage[TextureUsage[/** The content of the texture is intended to be specified once. */ "Static"] = 0] = "Static";
|
|
802
|
+
TextureUsage[TextureUsage[/** The content of the texture is intended to be updated frequently, with better performance. */ "Dynamic"] = 1] = "Dynamic";
|
|
803
|
+
})(TextureUsage || (TextureUsage = {}));
|
|
804
|
+
|
|
797
805
|
/**
|
|
798
806
|
* Wrapping mode of the texture.
|
|
799
807
|
*/ var TextureWrapMode;
|
|
@@ -934,6 +942,14 @@ var Logger = {
|
|
|
934
942
|
return this._height;
|
|
935
943
|
}
|
|
936
944
|
},
|
|
945
|
+
{
|
|
946
|
+
key: "usage",
|
|
947
|
+
get: /**
|
|
948
|
+
* The usage of the texture.
|
|
949
|
+
*/ function get() {
|
|
950
|
+
return this._usage;
|
|
951
|
+
}
|
|
952
|
+
},
|
|
937
953
|
{
|
|
938
954
|
key: "wrapModeU",
|
|
939
955
|
get: /**
|
|
@@ -1177,14 +1193,16 @@ var Logger = {
|
|
|
1177
1193
|
* Two-dimensional texture.
|
|
1178
1194
|
*/ var Texture2D = /*#__PURE__*/ function(Texture) {
|
|
1179
1195
|
_inherits(Texture2D, Texture);
|
|
1180
|
-
function Texture2D(engine, width, height, format, mipmap) {
|
|
1196
|
+
function Texture2D(engine, width, height, format, mipmap, usage) {
|
|
1181
1197
|
if (format === void 0) format = TextureFormat.R8G8B8A8;
|
|
1182
1198
|
if (mipmap === void 0) mipmap = true;
|
|
1199
|
+
if (usage === void 0) usage = TextureUsage.Static;
|
|
1183
1200
|
var _this;
|
|
1184
1201
|
_this = Texture.call(this, engine) || this;
|
|
1185
1202
|
_this._mipmap = mipmap;
|
|
1186
1203
|
_this._width = width;
|
|
1187
1204
|
_this._height = height;
|
|
1205
|
+
_this._usage = usage;
|
|
1188
1206
|
_this._format = format;
|
|
1189
1207
|
_this._mipmapCount = _this._getMipmapCount();
|
|
1190
1208
|
_this._isDepthTexture = format == TextureFormat.Depth || format == TextureFormat.DepthStencil || format == TextureFormat.Depth16 || format == TextureFormat.Depth24 || format == TextureFormat.Depth32 || format == TextureFormat.Depth24Stencil8 || format == TextureFormat.Depth32Stencil8;
|
|
@@ -26366,5 +26384,5 @@ var cacheDir = new Vector3();
|
|
|
26366
26384
|
return CubeProbe;
|
|
26367
26385
|
}(Probe);
|
|
26368
26386
|
|
|
26369
|
-
export { AmbientLight, AnimationArrayCurve, AnimationBoolCurve, AnimationClip, AnimationClipCurveBinding, AnimationColorCurve, AnimationCurve, AnimationEvent, AnimationFloatArrayCurve, AnimationFloatCurve, AnimationQuaternionCurve, AnimationVector2Curve, AnimationVector3Curve, AnimationVector4Curve, Animator, AnimatorConditionMode, AnimatorController, AnimatorControllerLayer, AnimatorCullingMode, AnimatorLayerBlendingMode, AnimatorState, AnimatorStateMachine, AnimatorStateTransition, AssetPromise, AssetType, Background, BackgroundMode, BackgroundTextureFillMode, BaseMaterial, Basic2DBatcher, BasicRenderPipeline, BlendFactor, BlendMode, BlendOperation, BlendShape, BlendShapeFrame, BlendState, BlinnPhongMaterial, BoolUpdateFlag, BoxColliderShape, Buffer, BufferBindFlag, BufferMesh, BufferUsage, BufferUtil, Camera, CameraClearFlags, CapsuleColliderShape, CharacterController, CloneManager, Collider, ColliderShape, ColliderShapeUpAxis, CollisionDetectionMode, ColorSpace, ColorWriteMask, CompareFunction, Component, ContentRestorer, ControllerCollisionFlag, ControllerNonWalkableMode, CubeProbe, CullMode, DataType, DependentMode, DepthState, DiffuseMode, DirectLight, DynamicCollider, DynamicColliderConstraints, Engine, EngineObject, Entity, EventDispatcher, FixedJoint, FogMode, Font, FontStyle, GLCapabilityType, HingeJoint, HitResult, IndexBufferBinding, IndexFormat, InputManager, InterpolationType, Joint, JointLimits, JointMotor, Keyframe, Keys, Layer, Light, Loader, Logger, Material, Mesh, MeshRenderer, MeshTopology, ModelMesh, OverflowMode, PBRBaseMaterial, PBRMaterial, PBRSpecularMaterial, ParticleRenderer, ParticleRendererBlendMode, PhysicsManager, PhysicsMaterial, PhysicsMaterialCombineMode, PipelineStage, PlaneColliderShape, Platform, PointLight, Pointer, PointerButton, PointerPhase, PrimitiveMesh, Probe, RasterState, ReferResource, RenderBufferDepthFormat, RenderFace, RenderPass, RenderQueue, RenderQueueType, RenderState, RenderTarget, RenderTargetBlendState, Renderer, ResourceManager, Scene, SceneManager, Script, SetDataOptions, Shader, ShaderData, ShaderFactory, ShaderMacro, ShaderMacroCollection, ShaderPass, ShaderProperty, ShaderPropertyType, ShaderTagKey, ShadowCascadesMode, ShadowResolution, ShadowType, Skin, SkinnedMeshRenderer, Sky, SkyBoxMaterial, SkyProceduralMaterial, SphereColliderShape, SpotLight, SpringJoint, Sprite, SpriteAtlas, SpriteDrawMode, SpriteMask, SpriteMaskInteraction, SpriteMaskLayer, SpriteRenderer, SpriteTileMode, StateMachineScript, StaticCollider, StencilOperation, StencilState, SubMesh, SubShader, SunMode, SystemInfo, TextHorizontalAlignment, TextRenderer, TextUtils, TextVerticalAlignment, Texture, Texture2D, Texture2DArray, TextureCoordinate, TextureCube, TextureCubeFace, TextureDepthCompareFunction, TextureFilterMode, TextureFormat, TextureWrapMode, Time, TrailMaterial, TrailRenderer, Transform, UnlitMaterial, Utils, VertexBufferBinding, VertexElement, VertexElementFormat, WrapMode, assignmentClone, deepClone, dependentComponents, ignoreClone, request, resourceLoader, shallowClone };
|
|
26387
|
+
export { AmbientLight, AnimationArrayCurve, AnimationBoolCurve, AnimationClip, AnimationClipCurveBinding, AnimationColorCurve, AnimationCurve, AnimationEvent, AnimationFloatArrayCurve, AnimationFloatCurve, AnimationQuaternionCurve, AnimationVector2Curve, AnimationVector3Curve, AnimationVector4Curve, Animator, AnimatorConditionMode, AnimatorController, AnimatorControllerLayer, AnimatorCullingMode, AnimatorLayerBlendingMode, AnimatorState, AnimatorStateMachine, AnimatorStateTransition, AssetPromise, AssetType, Background, BackgroundMode, BackgroundTextureFillMode, BaseMaterial, Basic2DBatcher, BasicRenderPipeline, BlendFactor, BlendMode, BlendOperation, BlendShape, BlendShapeFrame, BlendState, BlinnPhongMaterial, BoolUpdateFlag, BoxColliderShape, Buffer, BufferBindFlag, BufferMesh, BufferUsage, BufferUtil, Camera, CameraClearFlags, CapsuleColliderShape, CharacterController, CloneManager, Collider, ColliderShape, ColliderShapeUpAxis, CollisionDetectionMode, ColorSpace, ColorWriteMask, CompareFunction, Component, ContentRestorer, ControllerCollisionFlag, ControllerNonWalkableMode, CubeProbe, CullMode, DataType, DependentMode, DepthState, DiffuseMode, DirectLight, DynamicCollider, DynamicColliderConstraints, Engine, EngineObject, Entity, EventDispatcher, FixedJoint, FogMode, Font, FontStyle, GLCapabilityType, HingeJoint, HitResult, IndexBufferBinding, IndexFormat, InputManager, InterpolationType, Joint, JointLimits, JointMotor, Keyframe, Keys, Layer, Light, Loader, Logger, Material, Mesh, MeshRenderer, MeshTopology, ModelMesh, OverflowMode, PBRBaseMaterial, PBRMaterial, PBRSpecularMaterial, ParticleRenderer, ParticleRendererBlendMode, PhysicsManager, PhysicsMaterial, PhysicsMaterialCombineMode, PipelineStage, PlaneColliderShape, Platform, PointLight, Pointer, PointerButton, PointerPhase, PrimitiveMesh, Probe, RasterState, ReferResource, RenderBufferDepthFormat, RenderFace, RenderPass, RenderQueue, RenderQueueType, RenderState, RenderTarget, RenderTargetBlendState, Renderer, ResourceManager, Scene, SceneManager, Script, SetDataOptions, Shader, ShaderData, ShaderFactory, ShaderMacro, ShaderMacroCollection, ShaderPass, ShaderProperty, ShaderPropertyType, ShaderTagKey, ShadowCascadesMode, ShadowResolution, ShadowType, Skin, SkinnedMeshRenderer, Sky, SkyBoxMaterial, SkyProceduralMaterial, SphereColliderShape, SpotLight, SpringJoint, Sprite, SpriteAtlas, SpriteDrawMode, SpriteMask, SpriteMaskInteraction, SpriteMaskLayer, SpriteRenderer, SpriteTileMode, StateMachineScript, StaticCollider, StencilOperation, StencilState, SubMesh, SubShader, SunMode, SystemInfo, TextHorizontalAlignment, TextRenderer, TextUtils, TextVerticalAlignment, Texture, Texture2D, Texture2DArray, TextureCoordinate, TextureCube, TextureCubeFace, TextureDepthCompareFunction, TextureFilterMode, TextureFormat, TextureUsage, TextureWrapMode, Time, TrailMaterial, TrailRenderer, Transform, UnlitMaterial, Utils, VertexBufferBinding, VertexElement, VertexElementFormat, WrapMode, assignmentClone, deepClone, dependentComponents, ignoreClone, request, resourceLoader, shallowClone };
|
|
26370
26388
|
//# sourceMappingURL=module.js.map
|