typescript-to-gdscript 0.1.1 → 0.1.2
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/README.md +4 -2
- package/dist/cli/convert.d.ts.map +1 -1
- package/dist/cli/convert.js +15 -5
- package/dist/cli/convert.js.map +1 -1
- package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
- package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
- package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
- package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
- package/dist/converter/ts-to-gd/expressions.js +31 -7
- package/dist/converter/ts-to-gd/expressions.js.map +1 -1
- package/dist/watcher/check.d.ts +87 -0
- package/dist/watcher/check.d.ts.map +1 -0
- package/dist/watcher/check.js +209 -0
- package/dist/watcher/check.js.map +1 -0
- package/dist/watcher/heal.d.ts +66 -0
- package/dist/watcher/heal.d.ts.map +1 -0
- package/dist/watcher/heal.js +132 -0
- package/dist/watcher/heal.js.map +1 -0
- package/dist/watcher/index.d.ts +1 -0
- package/dist/watcher/index.d.ts.map +1 -1
- package/dist/watcher/index.js +48 -52
- package/dist/watcher/index.js.map +1 -1
- package/package.json +1 -1
- package/typings/classes/AccessibilityServer.d.ts +405 -0
- package/typings/classes/AnimationLibrary.d.ts +4 -4
- package/typings/classes/AnimationNodeBlendSpace1D.d.ts +45 -4
- package/typings/classes/AnimationNodeBlendSpace2D.d.ts +45 -4
- package/typings/classes/Area3D.d.ts +14 -7
- package/typings/classes/AreaLight3D.d.ts +37 -0
- package/typings/classes/ArrayMesh.d.ts +15 -0
- package/typings/classes/AudioEffectAmplify.d.ts +2 -2
- package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
- package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectCapture.d.ts +10 -9
- package/typings/classes/AudioEffectChorus.d.ts +57 -28
- package/typings/classes/AudioEffectCompressor.d.ts +11 -9
- package/typings/classes/AudioEffectDelay.d.ts +21 -15
- package/typings/classes/AudioEffectDistortion.d.ts +19 -10
- package/typings/classes/AudioEffectEQ.d.ts +2 -2
- package/typings/classes/AudioEffectEQ10.d.ts +2 -2
- package/typings/classes/AudioEffectEQ21.d.ts +2 -2
- package/typings/classes/AudioEffectEQ6.d.ts +2 -2
- package/typings/classes/AudioEffectFilter.d.ts +25 -9
- package/typings/classes/AudioEffectHardLimiter.d.ts +8 -5
- package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectInstance.d.ts +1 -1
- package/typings/classes/AudioEffectLimiter.d.ts +9 -4
- package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
- package/typings/classes/AudioEffectPanner.d.ts +7 -2
- package/typings/classes/AudioEffectPhaser.d.ts +9 -7
- package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
- package/typings/classes/AudioEffectReverb.d.ts +17 -8
- package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +4 -5
- package/typings/classes/AudioEffectStereoEnhance.d.ts +7 -4
- package/typings/classes/AudioServer.d.ts +2 -2
- package/typings/classes/AudioStreamPlaybackResampled.d.ts +8 -0
- package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
- package/typings/classes/AwaitTweener.d.ts +10 -0
- package/typings/classes/BaseButton.d.ts +1 -1
- package/typings/classes/Basis.d.ts +6 -2
- package/typings/classes/BlitMaterial.d.ts +22 -0
- package/typings/classes/CPUParticles2D.d.ts +2 -2
- package/typings/classes/CPUParticles3D.d.ts +2 -2
- package/typings/classes/Camera3D.d.ts +1 -1
- package/typings/classes/CameraAttributes.d.ts +1 -0
- package/typings/classes/CameraFeed.d.ts +4 -0
- package/typings/classes/CanvasItem.d.ts +16 -1
- package/typings/classes/CodeEdit.d.ts +6 -0
- package/typings/classes/CollisionObject2D.d.ts +6 -0
- package/typings/classes/CollisionPolygon2D.d.ts +5 -0
- package/typings/classes/CollisionShape2D.d.ts +5 -0
- package/typings/classes/Container.d.ts +7 -0
- package/typings/classes/Control.d.ts +127 -9
- package/typings/classes/Curve.d.ts +26 -1
- package/typings/classes/Curve2D.d.ts +15 -0
- package/typings/classes/Curve3D.d.ts +20 -0
- package/typings/classes/DPITexture.d.ts +14 -0
- package/typings/classes/Decal.d.ts +1 -0
- package/typings/classes/Dictionary.d.ts +1 -0
- package/typings/classes/DirAccess.d.ts +6 -1
- package/typings/classes/DisplayServer.d.ts +161 -9
- package/typings/classes/DrawableTexture2D.d.ts +43 -0
- package/typings/classes/EditorCommandPalette.d.ts +0 -2
- package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
- package/typings/classes/EditorDock.d.ts +10 -5
- package/typings/classes/EditorExportPlatform.d.ts +4 -2
- package/typings/classes/EditorExportPlugin.d.ts +7 -0
- package/typings/classes/EditorFeatureProfile.d.ts +1 -1
- package/typings/classes/EditorFileSystem.d.ts +2 -0
- package/typings/classes/EditorInspector.d.ts +10 -0
- package/typings/classes/EditorInterface.d.ts +6 -4
- package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
- package/typings/classes/EditorPlugin.d.ts +4 -4
- package/typings/classes/EditorResourcePicker.d.ts +2 -1
- package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
- package/typings/classes/EditorSettings.d.ts +241 -140
- package/typings/classes/EditorSpinSlider.d.ts +6 -0
- package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
- package/typings/classes/EditorVCSInterface.d.ts +6 -2
- package/typings/classes/Environment.d.ts +7 -2
- package/typings/classes/FileAccess.d.ts +1 -1
- package/typings/classes/FileDialog.d.ts +16 -1
- package/typings/classes/FoldableContainer.d.ts +1 -1
- package/typings/classes/Font.d.ts +15 -3
- package/typings/classes/FontVariation.d.ts +10 -0
- package/typings/classes/GDScript.d.ts +8 -0
- package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
- package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
- package/typings/classes/GDScriptTextDocument.d.ts +27 -0
- package/typings/classes/GDScriptWorkspace.d.ts +17 -0
- package/typings/classes/GPUParticles2D.d.ts +2 -2
- package/typings/classes/GPUParticles3D.d.ts +19 -2
- package/typings/classes/Geometry2D.d.ts +2 -2
- package/typings/classes/GeometryInstance3D.d.ts +1 -1
- package/typings/classes/GradientTexture2D.d.ts +2 -0
- package/typings/classes/Image.d.ts +7 -4
- package/typings/classes/ImageFormatLoader.d.ts +5 -0
- package/typings/classes/ImageTexture.d.ts +0 -2
- package/typings/classes/ImporterMesh.d.ts +6 -0
- package/typings/classes/Input.d.ts +159 -15
- package/typings/classes/InputEvent.d.ts +8 -0
- package/typings/classes/InputEventGesture.d.ts +2 -3
- package/typings/classes/InputEventMouse.d.ts +2 -3
- package/typings/classes/InputEventMouseMotion.d.ts +2 -2
- package/typings/classes/InputEventWithModifiers.d.ts +2 -3
- package/typings/classes/InputMap.d.ts +3 -0
- package/typings/classes/ItemList.d.ts +29 -2
- package/typings/classes/IterateIK3D.d.ts +6 -3
- package/typings/classes/JavaClassWrapper.d.ts +13 -0
- package/typings/classes/JavaScriptBridge.d.ts +1 -1
- package/typings/classes/Joint3D.d.ts +1 -0
- package/typings/classes/Label.d.ts +1 -0
- package/typings/classes/LabelSettings.d.ts +25 -0
- package/typings/classes/Light3D.d.ts +1 -1
- package/typings/classes/Logger.d.ts +1 -1
- package/typings/classes/LookAtModifier3D.d.ts +2 -1
- package/typings/classes/MainLoop.d.ts +4 -0
- package/typings/classes/MenuButton.d.ts +35 -0
- package/typings/classes/MeshLibrary.d.ts +2 -0
- package/typings/classes/MovieWriter.d.ts +2 -0
- package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
- package/typings/classes/NativeMenu.d.ts +10 -3
- package/typings/classes/Node.d.ts +15 -5
- package/typings/classes/Node3D.d.ts +6 -4
- package/typings/classes/OS.d.ts +3 -3
- package/typings/classes/Object.d.ts +9 -3
- package/typings/classes/OptimizedTranslation.d.ts +2 -2
- package/typings/classes/OptionButton.d.ts +51 -1
- package/typings/classes/PCKPacker.d.ts +4 -0
- package/typings/classes/PacketPeerExtension.d.ts +1 -1
- package/typings/classes/ParticleProcessMaterial.d.ts +63 -0
- package/typings/classes/PhysicsDirectBodyState2D.d.ts +2 -1
- package/typings/classes/PhysicsDirectBodyState3D.d.ts +2 -1
- package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer2D.d.ts +2 -2
- package/typings/classes/PhysicsServer2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer3D.d.ts +145 -42
- package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
- package/typings/classes/PopupMenu.d.ts +74 -8
- package/typings/classes/PopupPanel.d.ts +2 -0
- package/typings/classes/PortableCompressedTexture2D.d.ts +0 -2
- package/typings/classes/ProjectSettings.d.ts +62 -10
- package/typings/classes/Quaternion.d.ts +2 -2
- package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
- package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
- package/typings/classes/RDHitGroup.d.ts +20 -0
- package/typings/classes/RDPipelineShader.d.ts +14 -0
- package/typings/classes/RDShaderSPIRV.d.ts +30 -0
- package/typings/classes/RDShaderSource.d.ts +10 -0
- package/typings/classes/RandomNumberGenerator.d.ts +4 -2
- package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
- package/typings/classes/RenderingDevice.d.ts +175 -1
- package/typings/classes/RenderingServer.d.ts +264 -14
- package/typings/classes/Resource.d.ts +4 -2
- package/typings/classes/ResourceImporterDynamicFont.d.ts +3 -1
- package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
- package/typings/classes/ResourceImporterSVG.d.ts +10 -0
- package/typings/classes/ResourceImporterScene.d.ts +11 -3
- package/typings/classes/ResourceImporterTexture.d.ts +2 -2
- package/typings/classes/RichTextLabel.d.ts +14 -6
- package/typings/classes/Script.d.ts +2 -0
- package/typings/classes/ScriptEditor.d.ts +13 -0
- package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
- package/typings/classes/ScrollContainer.d.ts +17 -5
- package/typings/classes/Shader.d.ts +2 -0
- package/typings/classes/Shape3D.d.ts +1 -0
- package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
- package/typings/classes/SplitContainer.d.ts +6 -0
- package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
- package/typings/classes/SpriteFrames.d.ts +20 -4
- package/typings/classes/StreamPeerExtension.d.ts +2 -2
- package/typings/classes/String.d.ts +1 -1
- package/typings/classes/SubViewport.d.ts +4 -0
- package/typings/classes/TabBar.d.ts +20 -0
- package/typings/classes/TabContainer.d.ts +21 -3
- package/typings/classes/TextEdit.d.ts +5 -2
- package/typings/classes/TextServer.d.ts +25 -1
- package/typings/classes/TextServerExtension.d.ts +25 -1
- package/typings/classes/Texture2D.d.ts +14 -0
- package/typings/classes/TextureRect.d.ts +4 -1
- package/typings/classes/TileSet.d.ts +3 -1
- package/typings/classes/Tree.d.ts +25 -9
- package/typings/classes/TreeItem.d.ts +17 -2
- package/typings/classes/Tween.d.ts +13 -0
- package/typings/classes/UndoRedo.d.ts +2 -2
- package/typings/classes/Vector2.d.ts +4 -2
- package/typings/classes/Vector2i.d.ts +4 -2
- package/typings/classes/Vector3.d.ts +4 -2
- package/typings/classes/Vector3i.d.ts +4 -2
- package/typings/classes/Vector4.d.ts +4 -2
- package/typings/classes/Vector4i.d.ts +4 -2
- package/typings/classes/Viewport.d.ts +27 -1
- package/typings/classes/VirtualJoystick.d.ts +94 -0
- package/typings/classes/VoxelGIData.d.ts +10 -0
- package/typings/classes/Window.d.ts +41 -4
- package/typings/classes/XRCamera3D.d.ts +1 -1
- package/typings/classes/XRServer.d.ts +2 -0
- package/typings/classes/_globals.d.ts +55 -18
- package/typings/classes/index.d.ts +15 -112
- package/typings/godot-class-registry.json +2120 -3693
- package/typings/classes/VisualShader.d.ts +0 -110
- package/typings/classes/VisualShaderNode.d.ts +0 -63
- package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
- package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
- package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
- package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
- package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
- package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
- package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
- package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
- package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
- package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
- package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
- package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
- package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
- package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
- package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
- package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
- package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
- package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
- package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
- package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
- package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
- package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
- package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
- package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
- package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
- package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
- package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
- package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
- package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
- package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
- package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
- package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
- package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
- package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
- package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
- package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
- package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
- package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
- package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
- package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
declare class RenderingDevice extends GodotObject {
|
|
6
6
|
/** This method does nothing. */
|
|
7
7
|
barrier(from_: int, to: int): void;
|
|
8
|
+
/** Builds the `blas`. */
|
|
9
|
+
blas_build(blas: RID): int;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new Bottom-Level Acceleration Structure (BLAS). It can be accessed with the RID that is returned.
|
|
12
|
+
* Once finished with your RID, you will want to free the RID using the RenderingDevice's {@link free_rid} method.
|
|
13
|
+
*/
|
|
14
|
+
blas_create(geometries: Array<RDAccelerationStructureGeometry>, flags: int): RID;
|
|
8
15
|
/**
|
|
9
16
|
* Clears the contents of the `buffer`, clearing `size_bytes` bytes, starting at `offset`.
|
|
10
17
|
* Prints an error if:
|
|
@@ -327,6 +334,44 @@ declare class RenderingDevice extends GodotObject {
|
|
|
327
334
|
get_tracked_object_type_count(): int;
|
|
328
335
|
/** Returns `true` if the `feature` is supported by the GPU. */
|
|
329
336
|
has_feature(feature: int): boolean;
|
|
337
|
+
/**
|
|
338
|
+
* Creates a new hit shader binding table (SBT). It can be accessed with the RID that is returned.
|
|
339
|
+
* Once finished with your RID, you will want to free the RID using the RenderingDevice's {@link free_rid} method.
|
|
340
|
+
* This will be freed automatically when the `raytracing_pipeline` is freed.
|
|
341
|
+
* The hit SBT resizes itself as needed. `initial_hit_group_capacity` is used to allocate the initial backing memory.
|
|
342
|
+
*/
|
|
343
|
+
hit_sbt_create(raytracing_pipeline: RID, initial_hit_group_capacity: int): RID;
|
|
344
|
+
/**
|
|
345
|
+
* Allocates a contiguous range of SBT entries from `hit_sbt`.
|
|
346
|
+
* The returned value should be assigned to {@link RDAccelerationStructureInstance.hit_sbt_range}.
|
|
347
|
+
* During ray traversal, hit group index is computed as:
|
|
348
|
+
* (geometry index in {@link RDAccelerationStructureInstance.blas})
|
|
349
|
+
* × (SBT stride used in `traceRayEXT`)
|
|
350
|
+
* + (SBT offset used in `traceRayEXT`)
|
|
351
|
+
* + (range offset)
|
|
352
|
+
* `hit_group_count` must be large enough to cover all SBT entries that may be indexed by this equation. This typically corresponds to:
|
|
353
|
+
* (geometry count in {@link RDAccelerationStructureInstance.blas})
|
|
354
|
+
* × (SBT stride used in `traceRayEXT`)
|
|
355
|
+
* The allocated range is uninitialized and must be filled using {@link hit_sbt_range_update}.
|
|
356
|
+
*/
|
|
357
|
+
hit_sbt_range_alloc(hit_sbt: RID, hit_group_count: int): int;
|
|
358
|
+
/**
|
|
359
|
+
* Frees a hit SBT range previously allocated with {@link hit_sbt_range_alloc}.
|
|
360
|
+
* The range must not be in use by any acceleration structure after being freed.
|
|
361
|
+
*/
|
|
362
|
+
hit_sbt_range_free(hit_sbt: RID, range: int): int;
|
|
363
|
+
/**
|
|
364
|
+
* Updates the contents of a hit SBT range.
|
|
365
|
+
* `hit_group_indices` specifies indices into the hit group array provided in {@link raytracing_pipeline_create}.
|
|
366
|
+
* The `offset` parameter specifies where within the allocated range the writing begins. This allows partial updates of a range. However, the complete range must be fully initialized before it is used in a raytracing dispatch.
|
|
367
|
+
*/
|
|
368
|
+
hit_sbt_range_update(hit_sbt: RID, range: int, offset: int, hit_group_indices: PackedInt32Array | Array<unknown>): int;
|
|
369
|
+
/**
|
|
370
|
+
* Sets a new `raytracing_pipeline` for `hit_sbt`.
|
|
371
|
+
* The new pipeline must be a superset of the previous one. Existing hit groups must keep the same order and new hit groups should be appended to the end. This preserves existing SBT entries.
|
|
372
|
+
* The previous pipeline must remain valid during the call.
|
|
373
|
+
*/
|
|
374
|
+
hit_sbt_set_pipeline(hit_sbt: RID, raytracing_pipeline: RID): int;
|
|
330
375
|
/**
|
|
331
376
|
* Creates a new index array. It can be accessed with the RID that is returned.
|
|
332
377
|
* Once finished with your RID, you will want to free the RID using the RenderingDevice's {@link free_rid} method.
|
|
@@ -343,6 +388,42 @@ declare class RenderingDevice extends GodotObject {
|
|
|
343
388
|
* Limits for various graphics hardware can be found in the Vulkan Hardware Database (https://vulkan.gpuinfo.org/).
|
|
344
389
|
*/
|
|
345
390
|
limit_get(limit: int): int;
|
|
391
|
+
/**
|
|
392
|
+
* Starts a list of raytracing commands. The returned value should be passed to other `raytracing_list_*` functions.
|
|
393
|
+
* Multiple raytracing lists cannot be created at the same time; you must finish the previous raytracing list first using {@link raytracing_list_end}.
|
|
394
|
+
* A simple raytracing operation might look like this (code is not a complete example):
|
|
395
|
+
*/
|
|
396
|
+
raytracing_list_begin(): int;
|
|
397
|
+
/** Binds `raytracing_pipeline` to the specified `raytracing_list`. */
|
|
398
|
+
raytracing_list_bind_raytracing_pipeline(raytracing_list: int, raytracing_pipeline: RID): void;
|
|
399
|
+
/** Binds the `uniform_set` to this `raytracing_list`. */
|
|
400
|
+
raytracing_list_bind_uniform_set(raytracing_list: int, uniform_set: RID, set_index: int): void;
|
|
401
|
+
/** Finishes a list of raytracing commands created with the `raytracing_*` methods. */
|
|
402
|
+
raytracing_list_end(): void;
|
|
403
|
+
/**
|
|
404
|
+
* Sets the push constant data to `buffer` for the specified `raytracing_list`. The shader determines how this binary data is used. The buffer's size in bytes must also be specified in `size_bytes` (this can be obtained by calling the {@link PackedByteArray.size} method on the passed `buffer`).
|
|
405
|
+
*/
|
|
406
|
+
raytracing_list_set_push_constant(raytracing_list: int, buffer: PackedByteArray | Array<unknown>, size_bytes: int): void;
|
|
407
|
+
/**
|
|
408
|
+
* Initializes a raytracing dispatch for `raytracing_list`, launching `width` × `height` × `depth` rays.
|
|
409
|
+
* `raygen_shader_index` selects the ray generation shader from the pipeline bound with {@link raytracing_list_bind_raytracing_pipeline}.
|
|
410
|
+
* `hit_sbt` must use the same pipeline bound to `raytracing_list`.
|
|
411
|
+
*/
|
|
412
|
+
raytracing_list_trace_rays(raytracing_list: int, raygen_shader_index: int, hit_sbt: RID, width: int, height: int, depth: int): void;
|
|
413
|
+
/**
|
|
414
|
+
* Creates a new raytracing pipeline. It can be accessed with the RID that is returned.
|
|
415
|
+
* Once finished with your RID, you will want to free the RID using the RenderingDevice's {@link free_rid} method.
|
|
416
|
+
* Each shader must provide the required stage. All stages must use compatible pipeline layouts. The pipeline selects the required stage from each shader.
|
|
417
|
+
* Input order defines stable indices used by the API:
|
|
418
|
+
* - `raygen_shaders` is indexed in {@link raytracing_list_trace_rays}.
|
|
419
|
+
* - `miss_shaders` is indexed in `traceRayEXT`.
|
|
420
|
+
* - `hit_groups` is indexed in {@link hit_sbt_range_update}.
|
|
421
|
+
*/
|
|
422
|
+
raytracing_pipeline_create(raygen_shaders: Array<RDPipelineShader>, miss_shaders: Array<RDPipelineShader>, hit_groups: Array<RDHitGroup>, max_trace_recursion_depth: int): RID;
|
|
423
|
+
/**
|
|
424
|
+
* Returns `true` if the raytracing pipeline specified by the `raytracing_pipeline` RID is valid, `false` otherwise.
|
|
425
|
+
*/
|
|
426
|
+
raytracing_pipeline_is_valid(raytracing_pipeline: RID): boolean;
|
|
346
427
|
/**
|
|
347
428
|
* Creates a new render pipeline. It can be accessed with the RID that is returned.
|
|
348
429
|
* Once finished with your RID, you will want to free the RID using the RenderingDevice's {@link free_rid} method.
|
|
@@ -438,7 +519,7 @@ declare class RenderingDevice extends GodotObject {
|
|
|
438
519
|
*/
|
|
439
520
|
texture_clear(texture: RID, color: Color, base_mipmap: int, mipmap_count: int, base_layer: int, layer_count: int): int;
|
|
440
521
|
/**
|
|
441
|
-
* Copies the `from_texture` to `to_texture` with the specified `from_pos`, `to_pos` and `size` coordinates.
|
|
522
|
+
* Copies the `from_texture` to `to_texture` with the specified `from_pos`, `to_pos` and `size` coordinates. For 2-dimensional textures, `from_pos` and `to_pos` must have a Z axis of `0`, and `size` must have a Z axis of `1`. Source and destination mipmaps/layers must also be specified, with these parameters being `0` for textures without mipmaps or single-layer textures. Returns {@link @GlobalScope.OK} if the texture copy was successful or {@link @GlobalScope.ERR_INVALID_PARAMETER} otherwise.
|
|
442
523
|
* **Note:** `from_texture` texture can't be copied while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to {@link FINAL_ACTION_CONTINUE}) to copy this texture.
|
|
443
524
|
* **Note:** `from_texture` texture requires the {@link TEXTURE_USAGE_CAN_COPY_FROM_BIT} to be retrieved.
|
|
444
525
|
* **Note:** `to_texture` can't be copied while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to {@link FINAL_ACTION_CONTINUE}) to copy this texture.
|
|
@@ -525,6 +606,18 @@ declare class RenderingDevice extends GodotObject {
|
|
|
525
606
|
* **Note:** The existing `texture` requires the {@link TEXTURE_USAGE_CAN_UPDATE_BIT} to be updatable.
|
|
526
607
|
*/
|
|
527
608
|
texture_update(texture: RID, layer: int, data: PackedByteArray | Array<unknown>): int;
|
|
609
|
+
/**
|
|
610
|
+
* Builds the `tlas`. The contents of previous builds are discarded.
|
|
611
|
+
* Any BLAS provided through the {@link RDAccelerationStructureInstance.blas} member must already have been built using the {@link blas_build} method.
|
|
612
|
+
* The number of instances can be equal to or smaller than the maximum instance count provided in the {@link tlas_create} method.
|
|
613
|
+
* **Note:** Freeing or rebuilding any of the provided BLASes after this method invalidates the TLAS and requires it to be rebuilt.
|
|
614
|
+
*/
|
|
615
|
+
tlas_build(tlas: RID, instances: Array<RDAccelerationStructureInstance>): int;
|
|
616
|
+
/**
|
|
617
|
+
* Creates a new Top-Level Acceleration Structure (TLAS). It can be accessed with the RID that is returned.
|
|
618
|
+
* Once finished with your RID, you will want to free the RID using the RenderingDevice's {@link free_rid} method.
|
|
619
|
+
*/
|
|
620
|
+
tlas_create(max_instance_count: int, flags: int): RID;
|
|
528
621
|
/**
|
|
529
622
|
* Creates a new uniform buffer. It can be accessed with the RID that is returned.
|
|
530
623
|
* Once finished with your RID, you will want to free the RID using the RenderingDevice's {@link free_rid} method.
|
|
@@ -1720,6 +1813,45 @@ declare class RenderingDevice extends GodotObject {
|
|
|
1720
1813
|
* Set this flag so that it is created as storage. This is useful if Compute Shaders need access (for reading or writing) to the buffer, e.g. skeletal animations are processed in Compute Shaders which need access to vertex buffers, to be later consumed by vertex shaders as part of the regular rasterization pipeline.
|
|
1721
1814
|
*/
|
|
1722
1815
|
static readonly BUFFER_CREATION_AS_STORAGE_BIT: int;
|
|
1816
|
+
/**
|
|
1817
|
+
* Allows usage of this buffer as input data for an acceleration structure build operation. You must first check that the GPU supports it:
|
|
1818
|
+
*/
|
|
1819
|
+
static readonly BUFFER_CREATION_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT: int;
|
|
1820
|
+
// enum AccelerationStructureFlagBits
|
|
1821
|
+
/** Allows the acceleration structure to be updated after it has been built. */
|
|
1822
|
+
static readonly ACCELERATION_STRUCTURE_ALLOW_UPDATE_BIT: int;
|
|
1823
|
+
/** Allows the acceleration structure to be compacted to reduce memory usage after it has been built. */
|
|
1824
|
+
static readonly ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT: int;
|
|
1825
|
+
/**
|
|
1826
|
+
* Prioritizes ray traversal performance over build performance when building the acceleration structure.
|
|
1827
|
+
*/
|
|
1828
|
+
static readonly ACCELERATION_STRUCTURE_PREFER_FAST_TRACE_BIT: int;
|
|
1829
|
+
/**
|
|
1830
|
+
* Prioritizes build performance over ray traversal performance when building the acceleration structure.
|
|
1831
|
+
*/
|
|
1832
|
+
static readonly ACCELERATION_STRUCTURE_PREFER_FAST_BUILD_BIT: int;
|
|
1833
|
+
/**
|
|
1834
|
+
* Reduces the memory usage of the acceleration structure, potentially at the cost of reduced ray traversal performance.
|
|
1835
|
+
*/
|
|
1836
|
+
static readonly ACCELERATION_STRUCTURE_LOW_MEMORY_BIT: int;
|
|
1837
|
+
// enum AccelerationStructureGeometryFlagBits
|
|
1838
|
+
/** An opaque geometry does not invoke the any hit shaders. */
|
|
1839
|
+
static readonly ACCELERATION_STRUCTURE_GEOMETRY_OPAQUE_BIT: int;
|
|
1840
|
+
/** This geometry only calls the any hit shader a single time for each primitive. */
|
|
1841
|
+
static readonly ACCELERATION_STRUCTURE_GEOMETRY_NO_DUPLICATE_ANY_HIT_INVOCATION_BIT: int;
|
|
1842
|
+
// enum AccelerationStructureInstanceFlagBits
|
|
1843
|
+
/** Disables triangle face culling for this instance during ray traversal. */
|
|
1844
|
+
static readonly ACCELERATION_STRUCTURE_INSTANCE_TRIANGLE_FACING_CULL_DISABLE_BIT: int;
|
|
1845
|
+
/** Flips the triangle facing direction for this instance during ray traversal. */
|
|
1846
|
+
static readonly ACCELERATION_STRUCTURE_INSTANCE_TRIANGLE_FLIP_FACING_BIT: int;
|
|
1847
|
+
/**
|
|
1848
|
+
* Forces all geometries in this instance to be treated as opaque, preventing any hit shaders from being invoked.
|
|
1849
|
+
*/
|
|
1850
|
+
static readonly ACCELERATION_STRUCTURE_INSTANCE_FORCE_OPAQUE_BIT: int;
|
|
1851
|
+
/**
|
|
1852
|
+
* Forces all geometries in this instance to be treated as non-opaque, allowing any hit shaders to be invoked.
|
|
1853
|
+
*/
|
|
1854
|
+
static readonly ACCELERATION_STRUCTURE_INSTANCE_FORCE_NO_OPAQUE_BIT: int;
|
|
1723
1855
|
// enum UniformType
|
|
1724
1856
|
/** Sampler uniform. */
|
|
1725
1857
|
static readonly UNIFORM_TYPE_SAMPLER: int;
|
|
@@ -1753,6 +1885,8 @@ declare class RenderingDevice extends GodotObject {
|
|
|
1753
1885
|
* It's exposed in case GD users receive a buffer created with such flag from Godot.
|
|
1754
1886
|
*/
|
|
1755
1887
|
static readonly UNIFORM_TYPE_STORAGE_BUFFER_DYNAMIC: int;
|
|
1888
|
+
/** Acceleration structure uniform. */
|
|
1889
|
+
static readonly UNIFORM_TYPE_ACCELERATION_STRUCTURE: int;
|
|
1756
1890
|
/** Represents the size of the {@link UniformType} enum. */
|
|
1757
1891
|
static readonly UNIFORM_TYPE_MAX: int;
|
|
1758
1892
|
// enum RenderPrimitive
|
|
@@ -2018,6 +2152,24 @@ declare class RenderingDevice extends GodotObject {
|
|
|
2018
2152
|
* Compute shader stage. This can be used to run arbitrary computing tasks in a shader, performing them on the GPU instead of the CPU.
|
|
2019
2153
|
*/
|
|
2020
2154
|
static readonly SHADER_STAGE_COMPUTE: int;
|
|
2155
|
+
/** Ray generation shader stage. This can be used to generate primary rays. */
|
|
2156
|
+
static readonly SHADER_STAGE_RAYGEN: int;
|
|
2157
|
+
/**
|
|
2158
|
+
* Any hit shader stage. Invoked when ray intersections are not opaque. This can be used to specify what happens when a ray hits any of the geometry in the scene.
|
|
2159
|
+
*/
|
|
2160
|
+
static readonly SHADER_STAGE_ANY_HIT: int;
|
|
2161
|
+
/**
|
|
2162
|
+
* Closest hit shader stage. This can be used to specify what happens when a ray hits the closest geometry in the scene.
|
|
2163
|
+
*/
|
|
2164
|
+
static readonly SHADER_STAGE_CLOSEST_HIT: int;
|
|
2165
|
+
/**
|
|
2166
|
+
* Miss shader stage. This can be used to specify what happens if a ray does not hit anything in the scene.
|
|
2167
|
+
*/
|
|
2168
|
+
static readonly SHADER_STAGE_MISS: int;
|
|
2169
|
+
/**
|
|
2170
|
+
* Intersection shader stage. The intersection shader for triangles is built-in. This can be used to compute ray intersections with primitives that are not triangles.
|
|
2171
|
+
*/
|
|
2172
|
+
static readonly SHADER_STAGE_INTERSECTION: int;
|
|
2021
2173
|
/** Represents the size of the {@link ShaderStage} enum. */
|
|
2022
2174
|
static readonly SHADER_STAGE_MAX: int;
|
|
2023
2175
|
/** Vertex shader stage bit (see also {@link SHADER_STAGE_VERTEX}). */
|
|
@@ -2030,6 +2182,16 @@ declare class RenderingDevice extends GodotObject {
|
|
|
2030
2182
|
static readonly SHADER_STAGE_TESSELATION_EVALUATION_BIT: int;
|
|
2031
2183
|
/** Compute shader stage bit (see also {@link SHADER_STAGE_COMPUTE}). */
|
|
2032
2184
|
static readonly SHADER_STAGE_COMPUTE_BIT: int;
|
|
2185
|
+
/** Ray generation shader stage bit (see also {@link SHADER_STAGE_RAYGEN}). */
|
|
2186
|
+
static readonly SHADER_STAGE_RAYGEN_BIT: int;
|
|
2187
|
+
/** Any hit shader stage bit (see also {@link SHADER_STAGE_ANY_HIT}). */
|
|
2188
|
+
static readonly SHADER_STAGE_ANY_HIT_BIT: int;
|
|
2189
|
+
/** Closest hit shader stage bit (see also {@link SHADER_STAGE_CLOSEST_HIT}). */
|
|
2190
|
+
static readonly SHADER_STAGE_CLOSEST_HIT_BIT: int;
|
|
2191
|
+
/** Miss shader stage bit (see also {@link SHADER_STAGE_MISS}). */
|
|
2192
|
+
static readonly SHADER_STAGE_MISS_BIT: int;
|
|
2193
|
+
/** Intersection shader stage bit (see also {@link SHADER_STAGE_INTERSECTION}). */
|
|
2194
|
+
static readonly SHADER_STAGE_INTERSECTION_BIT: int;
|
|
2033
2195
|
// enum ShaderLanguage
|
|
2034
2196
|
/**
|
|
2035
2197
|
* Khronos' GLSL shading language (used natively by OpenGL and Vulkan). This is the language used for core Godot shaders.
|
|
@@ -2055,6 +2217,18 @@ declare class RenderingDevice extends GodotObject {
|
|
|
2055
2217
|
static readonly SUPPORTS_BUFFER_DEVICE_ADDRESS: int;
|
|
2056
2218
|
/** Support for 32-bit image atomic operations. */
|
|
2057
2219
|
static readonly SUPPORTS_IMAGE_ATOMIC_32_BIT: int;
|
|
2220
|
+
/**
|
|
2221
|
+
* Support for ray query extension.
|
|
2222
|
+
* **Note:** This is currently only supported when using Vulkan. This is not supported on macOS and iOS (even on hardware supporting raytracing) due to MoltenVK limitations.
|
|
2223
|
+
*/
|
|
2224
|
+
static readonly SUPPORTS_RAY_QUERY: int;
|
|
2225
|
+
/**
|
|
2226
|
+
* Support for raytracing pipeline extension.
|
|
2227
|
+
* **Note:** This is currently only supported when using Vulkan. This is not supported on macOS and iOS (even on hardware supporting raytracing) due to MoltenVK limitations.
|
|
2228
|
+
*/
|
|
2229
|
+
static readonly SUPPORTS_RAYTRACING_PIPELINE: int;
|
|
2230
|
+
/** Support for high dynamic range (HDR) output. */
|
|
2231
|
+
static readonly SUPPORTS_HDR_OUTPUT: int;
|
|
2058
2232
|
// enum Limit
|
|
2059
2233
|
/** Maximum number of uniform sets that can be bound at a given time. */
|
|
2060
2234
|
static readonly LIMIT_MAX_BOUND_UNIFORM_SETS: int;
|