RDTextureFormat
Texture format (used by RenderingDevice).
class RDTextureFormatThis object is used by RenderingDevice.
Texture format (used by RenderingDevice).
class RDTextureFormatThis object is used by RenderingDevice.
import SwiftGodotFramework to write Godot Game Extensions using the Swift Programming Language.
class RenderingDeviceAbstraction for working with modern low-level graphics APIs.
class RefCountedBase class for reference-counted objects.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol Identifiable<ID>A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable : VariantStorableTypes that conform to VariantRepresentable can be stored directly in Variant with no conversion. These include all of the Variant types from Godot (for example GString, Rect, Plane), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.
protocol VariantStorableTypes that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
override class var godotClassName: StringName { get }final var arrayLayers: UInt32 { get set }The number of layers in the texture. Only relevant for 2D texture arrays.
final var depth: UInt32 { get set }The texture’s depth (in pixels). This is always 1 for 2D textures.
final var format: RenderingDevice.DataFormat { get set }The texture’s pixel data format.
final var height: UInt32 { get set }The texture’s height (in pixels).
final var mipmaps: UInt32 { get set }The number of mipmaps available in the texture.
final var samples: RenderingDevice.TextureSamples { get set }The number of samples used when sampling the texture.
final var textureType: RenderingDevice.TextureType { get set }The texture type.
final var usageBits: RenderingDevice.TextureUsageBits { get set }The texture’s usage bits, which determine what can be done using the texture.
final var width: UInt32 { get set }The texture’s width (in pixels).
final func addShareableFormat(_ format: RenderingDevice.DataFormat) final func removeShareableFormat(_ format: RenderingDevice.DataFormat)