![JAR search and dependency download from the Maven repository](/logo.png)
godot.gen.godot.XRVRS.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of godot-library-release Show documentation
Show all versions of godot-library-release Show documentation
Contains godot api as kotlin classes and jvm cpp interaction code.
The newest version!
// THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"RedundantVisibilityModifier", "RedundantUnitReturnType", "MemberVisibilityCanBePrivate")
package godot
import godot.`annotation`.GodotBaseType
import godot.core.PackedVector2Array
import godot.core.RID
import godot.core.TypeManager
import godot.core.VariantParser.DOUBLE
import godot.core.VariantParser.NIL
import godot.core.VariantParser.PACKED_VECTOR2_ARRAY
import godot.core.VariantParser.VECTOR2
import godot.core.VariantParser._RID
import godot.core.Vector2
import godot.core.memory.TransferContext
import godot.util.VoidPtr
import kotlin.Double
import kotlin.Float
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* This class is used by various XR interfaces to generate VRS textures that can be used to speed up
* rendering.
*/
@GodotBaseType
public open class XRVRS : Object() {
/**
* The minimum radius around the focal point where full quality is guaranteed if VRS is used as a
* percentage of screen size.
*/
public final inline var vrsMinRadius: Float
@JvmName("vrsMinRadiusProperty")
get() = getVrsMinRadius()
@JvmName("vrsMinRadiusProperty")
set(`value`) {
setVrsMinRadius(value)
}
/**
* The strength used to calculate the VRS density map. The greater this value, the more noticeable
* VRS is.
*/
public final inline var vrsStrength: Float
@JvmName("vrsStrengthProperty")
get() = getVrsStrength()
@JvmName("vrsStrengthProperty")
set(`value`) {
setVrsStrength(value)
}
public override fun new(scriptIndex: Int): Unit {
callConstructor(ENGINECLASS_XRVRS, scriptIndex)
}
public final fun getVrsMinRadius(): Float {
TransferContext.writeArguments()
TransferContext.callMethod(rawPtr, MethodBindings.getVrsMinRadiusPtr, DOUBLE)
return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat()
}
public final fun setVrsMinRadius(radius: Float): Unit {
TransferContext.writeArguments(DOUBLE to radius.toDouble())
TransferContext.callMethod(rawPtr, MethodBindings.setVrsMinRadiusPtr, NIL)
}
public final fun getVrsStrength(): Float {
TransferContext.writeArguments()
TransferContext.callMethod(rawPtr, MethodBindings.getVrsStrengthPtr, DOUBLE)
return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat()
}
public final fun setVrsStrength(strength: Float): Unit {
TransferContext.writeArguments(DOUBLE to strength.toDouble())
TransferContext.callMethod(rawPtr, MethodBindings.setVrsStrengthPtr, NIL)
}
/**
* Generates the VRS texture based on a render [targetSize] adjusted by our VRS tile size. For
* each eyes focal point passed in [eyeFoci] a layer is created. Focal point should be in NDC.
* The result will be cached, requesting a VRS texture with unchanged parameters and settings will
* return the cached RID.
*/
public final fun makeVrsTexture(targetSize: Vector2, eyeFoci: PackedVector2Array): RID {
TransferContext.writeArguments(VECTOR2 to targetSize, PACKED_VECTOR2_ARRAY to eyeFoci)
TransferContext.callMethod(rawPtr, MethodBindings.makeVrsTexturePtr, _RID)
return (TransferContext.readReturnValue(_RID) as RID)
}
public companion object
internal object MethodBindings {
public val getVrsMinRadiusPtr: VoidPtr =
TypeManager.getMethodBindPtr("XRVRS", "get_vrs_min_radius", 1740695150)
public val setVrsMinRadiusPtr: VoidPtr =
TypeManager.getMethodBindPtr("XRVRS", "set_vrs_min_radius", 373806689)
public val getVrsStrengthPtr: VoidPtr =
TypeManager.getMethodBindPtr("XRVRS", "get_vrs_strength", 1740695150)
public val setVrsStrengthPtr: VoidPtr =
TypeManager.getMethodBindPtr("XRVRS", "set_vrs_strength", 373806689)
public val makeVrsTexturePtr: VoidPtr =
TypeManager.getMethodBindPtr("XRVRS", "make_vrs_texture", 3647044786)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy