@galacean/engine-core 2.0.0-alpha.6 → 2.0.0-alpha.60

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.
Files changed (321) hide show
  1. package/dist/main.js +28967 -22183
  2. package/dist/main.js.map +1 -1
  3. package/dist/module.js +28951 -22175
  4. package/dist/module.js.map +1 -1
  5. package/package.json +3 -5
  6. package/types/2d/assembler/ISpriteAssembler.d.ts +1 -0
  7. package/types/2d/assembler/ISpriteRenderer.d.ts +3 -2
  8. package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
  9. package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
  10. package/types/2d/assembler/TiledSpriteAssembler.d.ts +1 -0
  11. package/types/2d/atlas/FontAtlas.d.ts +23 -1
  12. package/types/2d/atlas/SpriteAtlas.d.ts +8 -0
  13. package/types/2d/sprite/Sprite.d.ts +30 -4
  14. package/types/2d/sprite/SpriteMask.d.ts +49 -1
  15. package/types/2d/sprite/SpriteRenderer.d.ts +35 -1
  16. package/types/2d/text/CharInfo.d.ts +20 -1
  17. package/types/2d/text/CharRenderInfo.d.ts +15 -1
  18. package/types/2d/text/Font.d.ts +11 -1
  19. package/types/2d/text/ITextRenderer.d.ts +3 -0
  20. package/types/2d/text/SubFont.d.ts +35 -1
  21. package/types/2d/text/TextRenderer.d.ts +54 -1
  22. package/types/2d/text/TextUtils.d.ts +89 -1
  23. package/types/Background.d.ts +19 -2
  24. package/types/BasicResources.d.ts +58 -0
  25. package/types/Camera.d.ts +79 -1
  26. package/types/Canvas.d.ts +36 -7
  27. package/types/Component.d.ts +35 -2
  28. package/types/ComponentsDependencies.d.ts +38 -1
  29. package/types/ComponentsManager.d.ts +20 -0
  30. package/types/Engine.d.ts +114 -7
  31. package/types/EngineEventType.d.ts +13 -0
  32. package/types/Entity.d.ts +112 -21
  33. package/types/Polyfill.d.ts +12 -1
  34. package/types/RenderPipeline/BasicRenderPipeline.d.ts +4 -2
  35. package/types/RenderPipeline/BatcherManager.d.ts +23 -1
  36. package/types/RenderPipeline/Blitter.d.ts +1 -1
  37. package/types/RenderPipeline/CullingResults.d.ts +17 -1
  38. package/types/RenderPipeline/DepthOnlyPass.d.ts +15 -1
  39. package/types/RenderPipeline/InstanceBuffer.d.ts +28 -0
  40. package/types/RenderPipeline/MaskManager.d.ts +36 -1
  41. package/types/RenderPipeline/OpaqueTexturePass.d.ts +16 -1
  42. package/types/RenderPipeline/PipelineUtils.d.ts +11 -1
  43. package/types/RenderPipeline/PrimitiveChunk.d.ts +27 -1
  44. package/types/RenderPipeline/PrimitiveChunkManager.d.ts +16 -1
  45. package/types/RenderPipeline/RenderContext.d.ts +46 -1
  46. package/types/RenderPipeline/RenderElement.d.ts +26 -6
  47. package/types/RenderPipeline/RenderQueue.d.ts +23 -1
  48. package/types/RenderPipeline/RenderTargetPool.d.ts +17 -1
  49. package/types/RenderPipeline/SubPrimitiveChunk.d.ts +14 -1
  50. package/types/RenderPipeline/VertexArea.d.ts +10 -1
  51. package/types/RenderPipeline/VertexMergeBatcher.d.ts +11 -0
  52. package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +9 -1
  53. package/types/RenderPipeline/index.d.ts +4 -1
  54. package/types/Renderer.d.ts +82 -19
  55. package/types/Scene.d.ts +34 -7
  56. package/types/SceneManager.d.ts +18 -6
  57. package/types/Script.d.ts +41 -0
  58. package/types/Signal.d.ts +71 -0
  59. package/types/SystemInfo.d.ts +14 -2
  60. package/types/Transform.d.ts +26 -1
  61. package/types/UpdateFlag.d.ts +4 -1
  62. package/types/UpdateFlagManager.d.ts +41 -1
  63. package/types/Utils.d.ts +20 -0
  64. package/types/VirtualCamera.d.ts +16 -1
  65. package/types/animation/AnimationClip.d.ts +13 -2
  66. package/types/animation/AnimationClipCurveBinding.d.ts +17 -2
  67. package/types/animation/AnimationEvent.d.ts +2 -2
  68. package/types/animation/Animator.d.ts +49 -10
  69. package/types/animation/AnimatorController.d.ts +20 -2
  70. package/types/animation/AnimatorControllerLayer.d.ts +17 -2
  71. package/types/animation/AnimatorControllerParameter.d.ts +4 -0
  72. package/types/animation/AnimatorState.d.ts +46 -2
  73. package/types/animation/AnimatorStateInstance.d.ts +46 -0
  74. package/types/animation/AnimatorStateMachine.d.ts +17 -2
  75. package/types/animation/AnimatorStateTransition.d.ts +9 -0
  76. package/types/animation/AnimatorStateTransitionCollection.d.ts +23 -1
  77. package/types/animation/Keyframe.d.ts +1 -1
  78. package/types/animation/StateMachineScript.d.ts +2 -0
  79. package/types/animation/animationCurve/AnimationArrayCurve.d.ts +39 -0
  80. package/types/animation/animationCurve/AnimationBoolCurve.d.ts +39 -0
  81. package/types/animation/animationCurve/AnimationColorCurve.d.ts +39 -0
  82. package/types/animation/animationCurve/AnimationCurve.d.ts +9 -1
  83. package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +38 -0
  84. package/types/animation/animationCurve/AnimationFloatCurve.d.ts +39 -0
  85. package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +41 -0
  86. package/types/animation/animationCurve/AnimationRectCurve.d.ts +18 -0
  87. package/types/animation/animationCurve/AnimationRefCurve.d.ts +20 -2
  88. package/types/animation/animationCurve/AnimationStringCurve.d.ts +39 -0
  89. package/types/animation/animationCurve/AnimationVector2Curve.d.ts +39 -0
  90. package/types/animation/animationCurve/AnimationVector3Curve.d.ts +43 -0
  91. package/types/animation/animationCurve/AnimationVector4Curve.d.ts +39 -0
  92. package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +18 -1
  93. package/types/animation/enums/AnimatorStatePlayState.d.ts +8 -1
  94. package/types/animation/index.d.ts +1 -0
  95. package/types/animation/internal/AnimationCurveLayerOwner.d.ts +15 -1
  96. package/types/animation/internal/AnimationEventHandler.d.ts +8 -1
  97. package/types/animation/internal/AnimatorLayerData.d.ts +28 -1
  98. package/types/animation/internal/AnimatorStateData.d.ts +14 -1
  99. package/types/animation/internal/AnimatorStatePlayData.d.ts +27 -1
  100. package/types/animation/internal/AnimatorTempValue.d.ts +12 -1
  101. package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +39 -0
  102. package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +12 -1
  103. package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +10 -1
  104. package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +13 -1
  105. package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +13 -1
  106. package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +13 -1
  107. package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +23 -1
  108. package/types/asset/AssetPromise.d.ts +4 -4
  109. package/types/asset/AssetType.d.ts +7 -9
  110. package/types/asset/GraphicsResource.d.ts +10 -0
  111. package/types/asset/IReferable.d.ts +8 -0
  112. package/types/asset/JSONAsset.d.ts +1 -1
  113. package/types/asset/LoadItem.d.ts +1 -1
  114. package/types/asset/Loader.d.ts +2 -2
  115. package/types/asset/ReferResource.d.ts +28 -0
  116. package/types/asset/RenderingStatistics.d.ts +8 -0
  117. package/types/asset/ResourceManager.d.ts +117 -9
  118. package/types/audio/AudioClip.d.ts +8 -0
  119. package/types/audio/AudioManager.d.ts +18 -0
  120. package/types/audio/AudioSource.d.ts +20 -2
  121. package/types/base/Constant.d.ts +2 -19
  122. package/types/base/DataObject.d.ts +6 -0
  123. package/types/base/EngineObject.d.ts +4 -0
  124. package/types/base/Time.d.ts +13 -0
  125. package/types/base/index.d.ts +1 -0
  126. package/types/clone/CloneDecorators.d.ts +37 -0
  127. package/types/clone/CloneUtil.d.ts +30 -0
  128. package/types/clone/ComponentCloner.d.ts +4 -10
  129. package/types/clone/ICloneHook.d.ts +12 -0
  130. package/types/enums/CameraType.d.ts +9 -1
  131. package/types/env-probe/CubeProbe.d.ts +2 -0
  132. package/types/env-probe/Probe.d.ts +1 -1
  133. package/types/graphic/Buffer.d.ts +23 -3
  134. package/types/graphic/BufferUtil.d.ts +8 -0
  135. package/types/graphic/ElementRangeMapping.d.ts +9 -0
  136. package/types/graphic/IndexBufferBinding.d.ts +4 -0
  137. package/types/graphic/Mesh.d.ts +58 -1
  138. package/types/graphic/Primitive.d.ts +50 -1
  139. package/types/graphic/TransformFeedback.d.ts +46 -0
  140. package/types/graphic/TransformFeedbackPrimitive.d.ts +57 -0
  141. package/types/graphic/TransformFeedbackSimulator.d.ts +55 -0
  142. package/types/graphic/VertexBufferBinding.d.ts +4 -0
  143. package/types/graphic/VertexElement.d.ts +1 -0
  144. package/types/graphic/enums/BufferBindFlag.d.ts +5 -3
  145. package/types/index.d.ts +7 -4
  146. package/types/input/InputManager.d.ts +25 -6
  147. package/types/input/enums/PointerButton.d.ts +8 -0
  148. package/types/input/keyboard/KeyboardManager.d.ts +41 -1
  149. package/types/input/pointer/Pointer.d.ts +37 -1
  150. package/types/input/pointer/PointerEventData.d.ts +4 -0
  151. package/types/input/pointer/PointerManager.d.ts +58 -0
  152. package/types/input/pointer/emitter/IHitResult.d.ts +11 -1
  153. package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +20 -1
  154. package/types/input/wheel/WheelManager.d.ts +34 -1
  155. package/types/lighting/AmbientLight.d.ts +9 -8
  156. package/types/lighting/DirectLight.d.ts +17 -0
  157. package/types/lighting/KHR_lights.d.ts +13 -1
  158. package/types/lighting/Light.d.ts +2 -0
  159. package/types/lighting/LightManager.d.ts +57 -0
  160. package/types/lighting/PointLight.d.ts +17 -0
  161. package/types/lighting/SpotLight.d.ts +17 -0
  162. package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +4 -0
  163. package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +37 -1
  164. package/types/material/BaseMaterial.d.ts +15 -11
  165. package/types/material/Material.d.ts +6 -9
  166. package/types/mesh/BlendShape.d.ts +14 -1
  167. package/types/mesh/BlendShapeFrame.d.ts +11 -4
  168. package/types/mesh/BlendShapeManager.d.ts +100 -1
  169. package/types/mesh/BufferMesh.d.ts +2 -2
  170. package/types/mesh/MeshRenderer.d.ts +42 -0
  171. package/types/mesh/MeshTangentUtils.d.ts +9 -0
  172. package/types/mesh/ModelMesh.d.ts +28 -12
  173. package/types/mesh/PrimitiveMesh.d.ts +266 -104
  174. package/types/mesh/PrimitiveMeshOptions.d.ts +415 -0
  175. package/types/mesh/Skin.d.ts +12 -3
  176. package/types/mesh/SkinnedMeshRenderer.d.ts +27 -1
  177. package/types/mesh/enums/PrimitiveMeshCapMode.d.ts +21 -0
  178. package/types/mesh/index.d.ts +2 -0
  179. package/types/mesh/primitive/MeshPathUtils.d.ts +13 -0
  180. package/types/mesh/primitive/PolygonUtils.d.ts +44 -0
  181. package/types/mesh/primitive/PrimitiveMeshBuilder.d.ts +25 -0
  182. package/types/mesh/primitive/PrimitiveMeshRestorer.d.ts +15 -0
  183. package/types/mesh/primitive/SubdivisionUtils.d.ts +9 -0
  184. package/types/particle/ParticleBounds.d.ts +87 -0
  185. package/types/particle/ParticleBufferUtils.d.ts +33 -1
  186. package/types/particle/ParticleGenerator.d.ts +142 -24
  187. package/types/particle/ParticleMaterial.d.ts +3 -1
  188. package/types/particle/ParticleRenderer.d.ts +62 -6
  189. package/types/particle/ParticleSubEmitterSpawnState.d.ts +36 -0
  190. package/types/particle/ParticleSystemManager.d.ts +17 -0
  191. package/types/particle/ParticleTransformFeedbackSimulator.d.ts +48 -0
  192. package/types/particle/enums/ParticleInheritVelocityMode.d.ts +14 -0
  193. package/types/particle/enums/ParticleRandomSubSeeds.d.ts +26 -1
  194. package/types/particle/enums/ParticleScaleMode.d.ts +5 -5
  195. package/types/particle/enums/ParticleSubEmitterInheritProperty.d.ts +17 -0
  196. package/types/particle/enums/ParticleSubEmitterType.d.ts +12 -0
  197. package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +6 -1
  198. package/types/particle/enums/attributes/ParticleFeedbackVertexAttribute.d.ts +10 -0
  199. package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +19 -1
  200. package/types/particle/index.d.ts +9 -0
  201. package/types/particle/modules/BirthSubEmitterCommand.d.ts +29 -0
  202. package/types/particle/modules/BirthSubEmitterState.d.ts +9 -0
  203. package/types/particle/modules/Burst.d.ts +23 -2
  204. package/types/particle/modules/ColorOverLifetimeModule.d.ts +19 -0
  205. package/types/particle/modules/CustomDataModule.d.ts +90 -0
  206. package/types/particle/modules/DeathSubEmitterCommand.d.ts +19 -0
  207. package/types/particle/modules/EmissionModule.d.ts +51 -4
  208. package/types/particle/modules/EmissionState.d.ts +13 -0
  209. package/types/particle/modules/ForceOverLifetimeModule.d.ts +16 -1
  210. package/types/particle/modules/InheritVelocityModule.d.ts +86 -0
  211. package/types/particle/modules/LimitVelocityOverLifetimeModule.d.ts +163 -0
  212. package/types/particle/modules/MainModule.d.ts +56 -11
  213. package/types/particle/modules/NoiseModule.d.ts +114 -0
  214. package/types/particle/modules/ParticleCompositeCurve.d.ts +46 -4
  215. package/types/particle/modules/ParticleCompositeGradient.d.ts +8 -2
  216. package/types/particle/modules/ParticleCurve.d.ts +31 -2
  217. package/types/particle/modules/ParticleGeneratorModule.d.ts +9 -3
  218. package/types/particle/modules/ParticleGradient.d.ts +22 -5
  219. package/types/particle/modules/RotationOverLifetimeModule.d.ts +27 -3
  220. package/types/particle/modules/SizeOverLifetimeModule.d.ts +25 -0
  221. package/types/particle/modules/SubEmitter.d.ts +32 -0
  222. package/types/particle/modules/SubEmittersModule.d.ts +111 -0
  223. package/types/particle/modules/TextureSheetAnimationModule.d.ts +14 -1
  224. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +124 -3
  225. package/types/particle/modules/shape/BaseShape.d.ts +65 -2
  226. package/types/particle/modules/shape/BoxShape.d.ts +13 -2
  227. package/types/particle/modules/shape/CircleShape.d.ts +13 -1
  228. package/types/particle/modules/shape/ConeShape.d.ts +13 -4
  229. package/types/particle/modules/shape/HemisphereShape.d.ts +13 -0
  230. package/types/particle/modules/shape/MeshShape.d.ts +26 -3
  231. package/types/particle/modules/shape/ShapeUtils.d.ts +13 -1
  232. package/types/particle/modules/shape/SphereShape.d.ts +13 -0
  233. package/types/physics/CharacterController.d.ts +24 -3
  234. package/types/physics/Collider.d.ts +47 -3
  235. package/types/physics/Collision.d.ts +3 -0
  236. package/types/physics/DynamicCollider.d.ts +33 -7
  237. package/types/physics/HitResult.d.ts +2 -2
  238. package/types/physics/PhysicsMaterial.d.ts +11 -2
  239. package/types/physics/PhysicsScene.d.ts +99 -7
  240. package/types/physics/StaticCollider.d.ts +5 -0
  241. package/types/physics/enums/HingeJointFlag.d.ts +14 -1
  242. package/types/physics/joint/HingeJoint.d.ts +4 -0
  243. package/types/physics/joint/Joint.d.ts +22 -2
  244. package/types/physics/joint/JointLimits.d.ts +2 -1
  245. package/types/physics/joint/JointMotor.d.ts +2 -1
  246. package/types/physics/shape/ColliderShape.d.ts +44 -7
  247. package/types/physics/shape/MeshColliderShape.d.ts +13 -12
  248. package/types/postProcess/FinalPass.d.ts +20 -1
  249. package/types/postProcess/PostProcess.d.ts +11 -6
  250. package/types/postProcess/PostProcessEffect.d.ts +6 -1
  251. package/types/postProcess/PostProcessEffectParameter.d.ts +23 -3
  252. package/types/postProcess/PostProcessManager.d.ts +43 -0
  253. package/types/postProcess/PostProcessPass.d.ts +3 -2
  254. package/types/postProcess/PostProcessUberPass.d.ts +2 -1
  255. package/types/postProcess/effects/BloomEffect.d.ts +26 -1
  256. package/types/postProcess/effects/TonemappingEffect.d.ts +3 -0
  257. package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +74 -0
  258. package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +1 -0
  259. package/types/renderingHardwareInterface/IPlatformPrimitive.d.ts +6 -0
  260. package/types/renderingHardwareInterface/IPlatformShaderProgram.d.ts +4 -0
  261. package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -1
  262. package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -1
  263. package/types/renderingHardwareInterface/IPlatformTransformFeedback.d.ts +36 -0
  264. package/types/renderingHardwareInterface/IPlatformTransformFeedbackPrimitive.d.ts +39 -0
  265. package/types/renderingHardwareInterface/index.d.ts +5 -0
  266. package/types/shader/BuiltinShaders.d.ts +27 -0
  267. package/types/shader/Shader.d.ts +52 -25
  268. package/types/shader/ShaderBlockProperty.d.ts +19 -0
  269. package/types/shader/ShaderData.d.ts +43 -4
  270. package/types/shader/ShaderFactory.d.ts +77 -0
  271. package/types/shader/ShaderMacro.d.ts +17 -2
  272. package/types/shader/ShaderMacroCollection.d.ts +57 -1
  273. package/types/shader/ShaderMacroProcessor.d.ts +54 -0
  274. package/types/shader/ShaderPass.d.ts +42 -13
  275. package/types/shader/ShaderProgram.d.ts +92 -1
  276. package/types/shader/ShaderProgramMap.d.ts +20 -0
  277. package/types/shader/ShaderProperty.d.ts +17 -0
  278. package/types/shader/ShaderTagKey.d.ts +2 -0
  279. package/types/shader/ShaderUniform.d.ts +49 -1
  280. package/types/shader/ShaderUniformBlock.d.ts +9 -1
  281. package/types/shader/enums/ConstantBufferBindingPoint.d.ts +7 -0
  282. package/types/shader/enums/ShaderLanguage.d.ts +1 -3
  283. package/types/shader/enums/ShaderPreprocessorDirective.d.ts +22 -0
  284. package/types/shader/index.d.ts +3 -1
  285. package/types/shader/state/BlendState.d.ts +16 -1
  286. package/types/shader/state/DepthState.d.ts +16 -1
  287. package/types/shader/state/RasterState.d.ts +19 -1
  288. package/types/shader/state/RenderState.d.ts +13 -2
  289. package/types/shader/state/RenderTargetBlendState.d.ts +2 -1
  290. package/types/shader/state/StencilState.d.ts +15 -1
  291. package/types/shadow/CascadedShadowCasterPass.d.ts +5 -3
  292. package/types/shadow/ShadowSliceData.d.ts +13 -1
  293. package/types/shadow/ShadowUtils.d.ts +41 -1
  294. package/types/sky/Sky.d.ts +13 -4
  295. package/types/sky/SkyBoxMaterial.d.ts +0 -7
  296. package/types/texture/RenderTarget.d.ts +28 -3
  297. package/types/texture/Texture.d.ts +46 -12
  298. package/types/texture/Texture2D.d.ts +4 -1
  299. package/types/texture/Texture2DArray.d.ts +4 -1
  300. package/types/texture/TextureCube.d.ts +4 -1
  301. package/types/texture/TextureUtils.d.ts +15 -1
  302. package/types/texture/enums/TextureFormat.d.ts +1 -9
  303. package/types/trail/TrailRenderer.d.ts +13 -8
  304. package/types/ui/IUICanvas.d.ts +16 -1
  305. package/types/utils/DisorderedArray.d.ts +3 -1
  306. package/types/xr/XRManager.d.ts +28 -0
  307. package/types/RenderPipeline/BatchUtils.d.ts +0 -1
  308. package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
  309. package/types/clone/CloneManager.d.ts +0 -31
  310. package/types/clone/enums/CloneMode.d.ts +0 -13
  311. package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
  312. package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
  313. package/types/shader/ShaderPool.d.ts +0 -1
  314. package/types/shader/ShaderProgramPool.d.ts +0 -1
  315. package/types/shader/state/index.d.ts +0 -6
  316. package/types/shaderlib/ShaderFactory.d.ts +0 -20
  317. package/types/shaderlib/ShaderLib.d.ts +0 -73
  318. package/types/shaderlib/index.d.ts +0 -1
  319. package/types/shaderlib/particle/index.d.ts +0 -15
  320. package/types/shaderlib/pbr/index.d.ts +0 -11
  321. package/types/shaderlib/shadow/index.d.ts +0 -8
@@ -1,8 +1,11 @@
1
+ import { ShaderDataGroup } from "./enums/ShaderDataGroup";
1
2
  import { ShaderPropertyType } from "./enums/ShaderPropertyType";
2
3
  /**
3
4
  * Shader property.
4
5
  */
5
6
  export declare class ShaderProperty {
7
+ /** @internal */
8
+ static _propertyIdMap: Record<number, ShaderProperty>;
6
9
  private static _propertyNameCounter;
7
10
  private static _propertyNameMap;
8
11
  /**
@@ -11,10 +14,24 @@ export declare class ShaderProperty {
11
14
  * @returns Shader property
12
15
  */
13
16
  static getByName(name: string): ShaderProperty;
17
+ /**
18
+ * @internal
19
+ */
20
+ static _getShaderPropertyGroup(propertyName: string): ShaderDataGroup | null;
21
+ /** @internal */
22
+ _uniqueId: number;
23
+ /** @internal */
24
+ _group: ShaderDataGroup;
25
+ /** @internal */
26
+ _type: ShaderPropertyType;
14
27
  /** Shader property name. */
15
28
  readonly name: string;
16
29
  /**
17
30
  * Shader property type.
18
31
  */
19
32
  get type(): ShaderPropertyType;
33
+ /**
34
+ * @internal
35
+ */
36
+ constructor(name: string);
20
37
  }
@@ -12,5 +12,7 @@ export declare class ShaderTagKey {
12
12
  static getByName(name: string): ShaderTagKey;
13
13
  /** Shader tag property name. */
14
14
  readonly name: string;
15
+ /** @internal */
16
+ _uniqueId: number;
15
17
  private constructor();
16
18
  }
@@ -1 +1,49 @@
1
- export {};
1
+ import { Color, Matrix, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
2
+ import { Engine } from "../Engine";
3
+ import { Texture } from "../texture/Texture";
4
+ import { ShaderPropertyValueType } from "./ShaderData";
5
+ /**
6
+ * Shader uniform。
7
+ * @internal
8
+ */
9
+ export declare class ShaderUniform {
10
+ name: string;
11
+ propertyId: number;
12
+ location: WebGLUniformLocation;
13
+ applyFunc: (shaderUniform: ShaderUniform, value: ShaderPropertyValueType) => void;
14
+ cacheValue: number | Vector2 | Vector3 | Vector4;
15
+ textureIndex: GLenum | GLenum[];
16
+ textureDefault: Texture | Texture[];
17
+ textureUseCompareMode: boolean;
18
+ private _rhi;
19
+ private _gl;
20
+ constructor(engine: Engine);
21
+ upload1f(shaderUniform: ShaderUniform, value: number): void;
22
+ upload1fv(shaderUniform: ShaderUniform, value: Float32Array): void;
23
+ upload2f(shaderUniform: ShaderUniform, value: Vector2 | Vector3 | Vector4 | Color): void;
24
+ upload2fv(shaderUniform: ShaderUniform, value: Float32Array): void;
25
+ upload3f(shaderUniform: ShaderUniform, value: Vector3 | Vector4 | Color): void;
26
+ upload3fv(shaderUniform: ShaderUniform, value: Float32Array): void;
27
+ upload4f(shaderUniform: ShaderUniform, value: Vector4 | Color): void;
28
+ upload4fv(shaderUniform: ShaderUniform, value: Float32Array): void;
29
+ upload1i(shaderUniform: ShaderUniform, value: number): void;
30
+ upload1iv(shaderUniform: ShaderUniform, value: Int32Array): void;
31
+ upload2i(shaderUniform: ShaderUniform, value: Vector2 | Vector3 | Vector4 | Color): void;
32
+ upload2iv(shaderUniform: ShaderUniform, value: Int32Array): void;
33
+ upload3i(shaderUniform: ShaderUniform, value: Vector3 | Vector4 | Color): void;
34
+ upload3iv(shaderUniform: ShaderUniform, value: Int32Array): void;
35
+ upload4i(shaderUniform: ShaderUniform, value: Vector4 | Color): void;
36
+ upload4iv(shaderUniform: ShaderUniform, value: Int32Array): void;
37
+ uploadMat2(shaderUniform: ShaderUniform, value: Float32Array): void;
38
+ uploadMat3(shaderUniform: ShaderUniform, value: Float32Array): void;
39
+ uploadMat4(shaderUniform: ShaderUniform, value: Matrix): void;
40
+ uploadMat4v(shaderUniform: ShaderUniform, value: Float32Array): void;
41
+ uploadMat2x3(shaderUniform: ShaderUniform, value: Float32Array): void;
42
+ uploadMat2x4(shaderUniform: ShaderUniform, value: Float32Array): void;
43
+ uploadMat3x2(shaderUniform: ShaderUniform, value: Float32Array): void;
44
+ uploadMat3x4(shaderUniform: ShaderUniform, value: Float32Array): void;
45
+ uploadMat4x2(shaderUniform: ShaderUniform, value: Float32Array): void;
46
+ uploadMat4x3(shaderUniform: ShaderUniform, value: Float32Array): void;
47
+ uploadTexture(shaderUniform: ShaderUniform, value: Texture): void;
48
+ uploadTextureArray(shaderUniform: ShaderUniform, value: Texture[]): void;
49
+ }
@@ -1 +1,9 @@
1
- export {};
1
+ import { ShaderUniform } from "./ShaderUniform";
2
+ /**
3
+ * Shader uniform block.
4
+ * @internal
5
+ */
6
+ export declare class ShaderUniformBlock {
7
+ readonly constUniforms: ShaderUniform[];
8
+ readonly textureUniforms: ShaderUniform[];
9
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @internal
3
+ * Constant buffer binding point allocation.
4
+ */
5
+ export declare enum ConstantBufferBindingPoint {
6
+ RendererInstance = 0
7
+ }
@@ -2,8 +2,6 @@
2
2
  * Shader language belongs to.
3
3
  */
4
4
  export declare enum ShaderLanguage {
5
- /** GLSL ES 100. */
6
- GLSLES100 = 0,
7
5
  /** GLSL ES 300. */
8
- GLSLES300 = 1
6
+ GLSLES300 = 0
9
7
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Directive types for shader preprocessor instructions.
3
+ */
4
+ export declare enum ShaderPreprocessorDirective {
5
+ Text = 0,
6
+ IfDef = 1,
7
+ IfNdef = 2,
8
+ IfCmp = 3,
9
+ IfExpr = 4,
10
+ Else = 5,
11
+ Endif = 6,
12
+ Define = 7,
13
+ DefineVal = 8,
14
+ DefineFunc = 9,
15
+ Undef = 10,
16
+ /** Activates a declaration: [ownerId, groupId, sourceScope]. */
17
+ Declaration = 11,
18
+ /** Text retained when any listed declaration is selected and reachable: [text, ...ownerIds]. */
19
+ OwnedText = 12,
20
+ /** Declaration dependency: [fromOwnerId, toOwnerId]; owner zero denotes a stage root. */
21
+ Reference = 13
22
+ }
@@ -1,4 +1,5 @@
1
1
  export { BlendFactor } from "./enums/BlendFactor";
2
+ export type { BuiltinShaders } from "./BuiltinShaders";
2
3
  export { BlendOperation } from "./enums/BlendOperation";
3
4
  export { ColorWriteMask } from "./enums/ColorWriteMask";
4
5
  export { CompareFunction } from "./enums/CompareFunction";
@@ -7,13 +8,14 @@ export { RenderQueueType } from "./enums/RenderQueueType";
7
8
  export { RenderStateElementKey } from "./enums/RenderStateElementKey";
8
9
  export { ShaderDataGroup } from "./enums/ShaderDataGroup";
9
10
  export { ShaderLanguage } from "./enums/ShaderLanguage";
11
+ export { ShaderPreprocessorDirective } from "./enums/ShaderPreprocessorDirective";
10
12
  export { ShaderPropertyType } from "./enums/ShaderPropertyType";
11
13
  export { StencilOperation } from "./enums/StencilOperation";
12
14
  export { Shader } from "./Shader";
13
15
  export { ShaderData } from "./ShaderData";
16
+ export { ShaderFactory } from "./ShaderFactory";
14
17
  export { ShaderMacro } from "./ShaderMacro";
15
18
  export { ShaderPass } from "./ShaderPass";
16
19
  export { ShaderProperty } from "./ShaderProperty";
17
20
  export { ShaderTagKey } from "./ShaderTagKey";
18
- export * from "./state";
19
21
  export { SubShader } from "./SubShader";
@@ -1,9 +1,15 @@
1
+ import { DataObject } from "../../base/DataObject";
2
+ import type { IHardwareRenderer } from "../../renderingHardwareInterface";
1
3
  import { Color } from "@galacean/engine-math";
4
+ import { RenderStateElementMap } from "../../BasicResources";
5
+ import { ShaderData } from "../ShaderData";
6
+ import { ShaderProperty } from "../ShaderProperty";
7
+ import { RenderState } from "./RenderState";
2
8
  import { RenderTargetBlendState } from "./RenderTargetBlendState";
3
9
  /**
4
10
  * Blend state.
5
11
  */
6
- export declare class BlendState {
12
+ export declare class BlendState extends DataObject {
7
13
  private static _getGLBlendFactor;
8
14
  private static _getGLBlendOperation;
9
15
  /** The blend state of the render target. */
@@ -12,5 +18,14 @@ export declare class BlendState {
12
18
  readonly blendColor: Color;
13
19
  /** Whether to use (Alpha-to-Coverage) technology. */
14
20
  alphaToCoverage: boolean;
21
+ /**
22
+ * @internal
23
+ */
24
+ _applyShaderDataValue(renderStateDataMap: Record<number, ShaderProperty>, shaderData: ShaderData, renderElementData?: ShaderData): void;
25
+ /**
26
+ * @internal
27
+ * Apply the current blend state by comparing with the last blend state.
28
+ */
29
+ _apply(hardwareRenderer: IHardwareRenderer, lastRenderState: RenderState, customStates?: RenderStateElementMap | null): void;
15
30
  private _platformApply;
16
31
  }
@@ -1,8 +1,14 @@
1
+ import { DataObject } from "../../base/DataObject";
2
+ import type { IHardwareRenderer } from "../../renderingHardwareInterface";
3
+ import { RenderStateElementMap } from "../../BasicResources";
4
+ import { ShaderData } from "../ShaderData";
5
+ import { ShaderProperty } from "../ShaderProperty";
1
6
  import { CompareFunction } from "../enums/CompareFunction";
7
+ import { RenderState } from "./RenderState";
2
8
  /**
3
9
  * Depth state.
4
10
  */
5
- export declare class DepthState {
11
+ export declare class DepthState extends DataObject {
6
12
  private static _getGLCompareFunction;
7
13
  /** Whether to enable the depth test. */
8
14
  enabled: boolean;
@@ -10,5 +16,14 @@ export declare class DepthState {
10
16
  compareFunction: CompareFunction;
11
17
  /** Whether the depth value can be written.*/
12
18
  writeEnabled: boolean;
19
+ /**
20
+ * @internal
21
+ */
22
+ _applyShaderDataValue(renderStateDataMap: Record<number, ShaderProperty>, shaderData: ShaderData): void;
23
+ /**
24
+ * @internal
25
+ * Apply the current depth state by comparing with the last depth state.
26
+ */
27
+ _apply(hardwareRenderer: IHardwareRenderer, lastRenderState: RenderState, customStates?: RenderStateElementMap | null): void;
13
28
  private _platformApply;
14
29
  }
@@ -1,13 +1,31 @@
1
+ import { DataObject } from "../../base/DataObject";
2
+ import type { IHardwareRenderer } from "../../renderingHardwareInterface";
3
+ import { RenderStateElementMap } from "../../BasicResources";
4
+ import { ShaderData } from "../ShaderData";
5
+ import { ShaderProperty } from "../ShaderProperty";
1
6
  import { CullMode } from "../enums/CullMode";
7
+ import { RenderState } from "./RenderState";
2
8
  /**
3
9
  * Raster state.
4
10
  */
5
- export declare class RasterState {
11
+ export declare class RasterState extends DataObject {
6
12
  /** Specifies whether or not front- and/or back-facing polygons can be culled. */
7
13
  cullMode: CullMode;
8
14
  /** The multiplier by which an implementation-specific value is multiplied with to create a constant depth offset. */
9
15
  depthBias: number;
10
16
  /** The scale factor for the variable depth offset for each polygon. */
11
17
  slopeScaledDepthBias: number;
18
+ /** @internal */
19
+ _cullFaceEnable: boolean;
20
+ /** @internal */
21
+ _frontFaceInvert: boolean;
22
+ /**
23
+ * @internal
24
+ */
25
+ _applyShaderDataValue(renderStateDataMap: Record<number, ShaderProperty>, shaderData: ShaderData): void;
26
+ /**
27
+ * @internal
28
+ */
29
+ _apply(hardwareRenderer: IHardwareRenderer, lastRenderState: RenderState, frontFaceInvert: boolean, customStates?: RenderStateElementMap | null): void;
12
30
  private _platformApply;
13
31
  }
@@ -1,3 +1,7 @@
1
+ import { DataObject } from "../../base/DataObject";
2
+ import { ShaderData, ShaderProperty } from "..";
3
+ import { RenderStateElementMap } from "../../BasicResources";
4
+ import { Engine } from "../../Engine";
1
5
  import { RenderQueueType } from "../enums/RenderQueueType";
2
6
  import { BlendState } from "./BlendState";
3
7
  import { DepthState } from "./DepthState";
@@ -6,7 +10,7 @@ import { StencilState } from "./StencilState";
6
10
  /**
7
11
  * Render state.
8
12
  */
9
- export declare class RenderState {
13
+ export declare class RenderState extends DataObject {
10
14
  /** Blend state. */
11
15
  readonly blendState: BlendState;
12
16
  /** Depth state. */
@@ -17,5 +21,12 @@ export declare class RenderState {
17
21
  readonly rasterState: RasterState;
18
22
  /** Render queue type. */
19
23
  renderQueueType: RenderQueueType;
20
- private _applyStatesByShaderData;
24
+ /**
25
+ * @internal
26
+ */
27
+ _applyStates(engine: Engine, frontFaceInvert: boolean, renderStateDataMap: Record<number, ShaderProperty>, shaderData: ShaderData, customRenderStates?: RenderStateElementMap | null, renderElementData?: ShaderData): void;
28
+ /**
29
+ * @internal
30
+ */
31
+ _getRenderQueueByShaderData(renderStateDataMap: Record<number, ShaderProperty>, shaderData: ShaderData): RenderQueueType;
21
32
  }
@@ -1,10 +1,11 @@
1
+ import { DataObject } from "../../base/DataObject";
1
2
  import { BlendOperation } from "../enums/BlendOperation";
2
3
  import { BlendFactor } from "../enums/BlendFactor";
3
4
  import { ColorWriteMask } from "../enums/ColorWriteMask";
4
5
  /**
5
6
  * The blend state of the render target.
6
7
  */
7
- export declare class RenderTargetBlendState {
8
+ export declare class RenderTargetBlendState extends DataObject {
8
9
  /** Whether to enable blend. */
9
10
  enabled: boolean;
10
11
  /** color (RGB) blend operation. */
@@ -1,9 +1,15 @@
1
+ import { DataObject } from "../../base/DataObject";
2
+ import type { IHardwareRenderer } from "../../renderingHardwareInterface";
3
+ import { RenderStateElementMap } from "../../BasicResources";
4
+ import { ShaderData } from "../ShaderData";
5
+ import { ShaderProperty } from "../ShaderProperty";
1
6
  import { CompareFunction } from "../enums/CompareFunction";
2
7
  import { StencilOperation } from "../enums/StencilOperation";
8
+ import { RenderState } from "./RenderState";
3
9
  /**
4
10
  * Stencil state.
5
11
  */
6
- export declare class StencilState {
12
+ export declare class StencilState extends DataObject {
7
13
  private static _getGLCompareFunction;
8
14
  private static _getGLStencilOperation;
9
15
  /** Whether to enable stencil test. */
@@ -30,5 +36,13 @@ export declare class StencilState {
30
36
  zFailOperationFront: StencilOperation;
31
37
  /** specifying the function to use for back face when the stencil test passes, but the depth test fails. */
32
38
  zFailOperationBack: StencilOperation;
39
+ /**
40
+ * @internal
41
+ */
42
+ _applyShaderDataValue(renderStateDataMap: Record<number, ShaderProperty>, shaderData: ShaderData): void;
43
+ /**
44
+ * @internal
45
+ */
46
+ _apply(hardwareRenderer: IHardwareRenderer, lastRenderState: RenderState, customStates?: RenderStateElementMap | null): void;
33
47
  private _platformApply;
34
48
  }
@@ -1,5 +1,6 @@
1
1
  import { Camera } from "../Camera";
2
2
  import { PipelinePass } from "../RenderPipeline/PipelinePass";
3
+ import { RenderContext } from "../RenderPipeline/RenderContext";
3
4
  /**
4
5
  * Cascade shadow caster pass.
5
6
  */
@@ -14,16 +15,13 @@ export declare class CascadedShadowCasterPass extends PipelinePass {
14
15
  private static _maxCascades;
15
16
  private static _cascadesSplitDistance;
16
17
  private static _viewport;
17
- private static _clearColor;
18
18
  private static _tempVector;
19
19
  private static _tempMatrix0;
20
20
  private readonly _camera;
21
- private readonly _supportDepthTexture;
22
21
  private _shadowMapResolution;
23
22
  private _shadowMapSize;
24
23
  private _shadowTileResolution;
25
24
  private _shadowBias;
26
- private _shadowMapFormat;
27
25
  private _shadowCascadeMode;
28
26
  private _shadowSliceData;
29
27
  private _lightUp;
@@ -36,6 +34,10 @@ export declare class CascadedShadowCasterPass extends PipelinePass {
36
34
  private _renderTarget;
37
35
  private _viewportOffsets;
38
36
  constructor(camera: Camera);
37
+ /**
38
+ * @internal
39
+ */
40
+ onRender(context: RenderContext): void;
39
41
  private _renderDirectShadowMap;
40
42
  private _updateReceiversShaderData;
41
43
  private _getCascadesSplitDistance;
@@ -1 +1,13 @@
1
- export {};
1
+ import { BoundingSphere, Plane } from "@galacean/engine-math";
2
+ import { VirtualCamera } from "../VirtualCamera";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare class ShadowSliceData {
7
+ resolution: number;
8
+ virtualCamera: VirtualCamera;
9
+ cullPlanes: Plane[];
10
+ cullPlaneCount: number;
11
+ splitBoundSphere: BoundingSphere;
12
+ sphereCenterZ: number;
13
+ }
@@ -1 +1,41 @@
1
- export {};
1
+ import { BoundingBox, BoundingFrustum, Matrix, Plane, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
2
+ import { Camera } from "../Camera";
3
+ import { RenderContext } from "../RenderPipeline/RenderContext";
4
+ import { Renderer } from "../Renderer";
5
+ import { DirectLight, Light } from "../lighting";
6
+ import { ShadowSliceData } from "./ShadowSliceData";
7
+ import { ShadowResolution } from "./enum/ShadowResolution";
8
+ /**
9
+ * @internal
10
+ */
11
+ export declare class ShadowUtils {
12
+ private static _tempMatrix0;
13
+ /** @internal */
14
+ private static _shadowMapCoordMatrix;
15
+ private static _frustumCorners;
16
+ private static _adjustNearPlane;
17
+ private static _adjustFarPlane;
18
+ private static _backPlaneFaces;
19
+ private static _edgePlanePoint2;
20
+ /** near, far, left, right, bottom, top */
21
+ private static _frustumPlaneNeighbors;
22
+ /** near, far, left, right, bottom, top */
23
+ private static _frustumTwoPlaneCorners;
24
+ static readonly atlasBorderSize: number;
25
+ static shadowResolution(value: ShadowResolution): number;
26
+ static cullingRenderBounds(bounds: BoundingBox, cullPlaneCount: number, cullPlanes: Plane[]): boolean;
27
+ static shadowCullFrustum(context: RenderContext, light: Light, renderer: Renderer, shadowSliceData: ShadowSliceData): void;
28
+ static getBoundSphereByFrustum(near: number, far: number, camera: Camera, forward: Vector3, shadowSliceData: ShadowSliceData): void;
29
+ static getDirectionLightShadowCullPlanes(cameraFrustum: BoundingFrustum, splitDistance: number, cameraNear: number, direction: Vector3, shadowSliceData: ShadowSliceData): void;
30
+ static getDirectionalLightMatrices(lightUp: Vector3, lightSide: Vector3, lightForward: Vector3, cascadeIndex: number, nearPlane: number, shadowResolution: number, shadowSliceData: ShadowSliceData, outShadowMatrices: Float32Array): void;
31
+ static getMaxTileResolutionInAtlas(atlasWidth: number, atlasHeight: number, tileCount: number): number;
32
+ static getShadowBias(light: DirectLight, projectionMatrix: Matrix, shadowResolution: number, out: Vector2): void;
33
+ /**
34
+ * Apply shadow slice scale and offset
35
+ */
36
+ static applySliceTransform(tileSize: number, atlasWidth: number, atlasHeight: number, cascadeIndex: number, atlasOffset: Vector2, outShadowMatrices: Float32Array): void;
37
+ /**
38
+ * Extract scale and bias from a fade distance to achieve a linear fading of the fade distance.
39
+ */
40
+ static getScaleAndBiasForLinearDistanceFade(fadeDistance: number, border: number, outInfo: Vector4): void;
41
+ }
@@ -1,3 +1,4 @@
1
+ import { RenderContext } from "../RenderPipeline/RenderContext";
1
2
  import { Mesh } from "../graphic/Mesh";
2
3
  import { Material } from "../material";
3
4
  /**
@@ -12,11 +13,19 @@ export declare class Sky {
12
13
  /**
13
14
  * Material of the sky.
14
15
  */
15
- get material(): Material;
16
- set material(value: Material);
16
+ get material(): Material | null;
17
+ set material(value: Material | null);
17
18
  /**
18
19
  * Mesh of the sky.
19
20
  */
20
- get mesh(): Mesh;
21
- set mesh(value: Mesh);
21
+ get mesh(): Mesh | null;
22
+ set mesh(value: Mesh | null);
23
+ /**
24
+ * @internal
25
+ */
26
+ destroy(): void;
27
+ /**
28
+ * @internal
29
+ */
30
+ _render(context: RenderContext): void;
22
31
  }
@@ -10,14 +10,7 @@ export declare class SkyBoxMaterial extends Material {
10
10
  private static _textureCubeProp;
11
11
  private static _rotationProp;
12
12
  private static _exposureProp;
13
- private static _decodeSkyRGBMMacro;
14
- private _textureDecodeRGBM;
15
13
  private _tintColor;
16
- /**
17
- * Whether to decode texture with RGBM format.
18
- */
19
- get textureDecodeRGBM(): boolean;
20
- set textureDecodeRGBM(value: boolean);
21
14
  /**
22
15
  * Texture of the sky box material.
23
16
  */
@@ -1,5 +1,6 @@
1
1
  import { GraphicsResource } from "../asset/GraphicsResource";
2
2
  import { Engine } from "../Engine";
3
+ import { IPlatformRenderTarget } from "../renderingHardwareInterface";
3
4
  import { RenderBufferDepthFormat } from "./enums/RenderBufferDepthFormat";
4
5
  import { TextureFormat } from "./enums/TextureFormat";
5
6
  import { Texture } from "./Texture";
@@ -7,6 +8,14 @@ import { Texture } from "./Texture";
7
8
  * The render target used for off-screen rendering.
8
9
  */
9
10
  export declare class RenderTarget extends GraphicsResource {
11
+ /** @internal */
12
+ _platformRenderTarget: IPlatformRenderTarget;
13
+ /** @internal */
14
+ _depth: Texture | TextureFormat | null;
15
+ /** @internal */
16
+ _antiAliasing: number;
17
+ /** @internal */
18
+ _depthFormat: TextureFormat | null;
10
19
  private _autoGenerateMipmaps;
11
20
  private _width;
12
21
  private _height;
@@ -26,6 +35,10 @@ export declare class RenderTarget extends GraphicsResource {
26
35
  * Render target height.
27
36
  */
28
37
  get height(): number;
38
+ /**
39
+ * Render color textures.
40
+ */
41
+ get colorTextures(): ReadonlyArray<Texture>;
29
42
  /**
30
43
  * Render color texture count.
31
44
  */
@@ -48,7 +61,7 @@ export declare class RenderTarget extends GraphicsResource {
48
61
  * @param depthFormat - Depth format. default TextureFormat.Depth, engine will automatically select the supported precision
49
62
  * @param antiAliasing - Anti-aliasing level, default is 1
50
63
  */
51
- constructor(engine: Engine, width: number, height: number, colorTexture: Texture, depthFormat?: TextureFormat | null | RenderBufferDepthFormat, antiAliasing?: number);
64
+ constructor(engine: Engine, width: number, height: number, colorTexture: Texture | null, depthFormat?: TextureFormat | null | RenderBufferDepthFormat, antiAliasing?: number);
52
65
  /**
53
66
  * Create a render target through color texture and depth format.
54
67
  * @remarks If the color texture is not transmitted, only the depth texture is generated.
@@ -59,7 +72,7 @@ export declare class RenderTarget extends GraphicsResource {
59
72
  * @param depthTexture - Render depth texture
60
73
  * @param antiAliasing - Anti-aliasing level, default is 1
61
74
  */
62
- constructor(engine: Engine, width: number, height: number, colorTexture: Texture | null, depthTexture: Texture, antiAliasing?: number);
75
+ constructor(engine: Engine, width: number, height: number, colorTexture: Texture | null, depthTexture: Texture | null, antiAliasing?: number);
63
76
  /**
64
77
  * Create a render target with color texture array and depth format.
65
78
  * @param engine - Define the engine to use for this off-screen rendering
@@ -79,7 +92,7 @@ export declare class RenderTarget extends GraphicsResource {
79
92
  * @param depthTexture - Depth texture
80
93
  * @param antiAliasing - Anti-aliasing level, default is 1
81
94
  */
82
- constructor(engine: Engine, width: number, height: number, colorTextures: Texture[], depthTexture: Texture, antiAliasing?: number);
95
+ constructor(engine: Engine, width: number, height: number, colorTextures: Texture[], depthTexture: Texture | null, antiAliasing?: number);
83
96
  /**
84
97
  * Get the render color texture by index.
85
98
  * @param index - Render color texture index
@@ -89,4 +102,16 @@ export declare class RenderTarget extends GraphicsResource {
89
102
  * Generate the mipmap of each attachment texture of the renderTarget according to the configuration.
90
103
  */
91
104
  generateMipmaps(): void;
105
+ /**
106
+ * @internal
107
+ */
108
+ protected _onDestroy(): void;
109
+ /**
110
+ * @internal
111
+ */
112
+ _blitRenderTarget(): void;
113
+ /**
114
+ * @internal
115
+ */
116
+ _rebuild(): void;
92
117
  }