Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

RDTextureFormat

Inherits: RefCounted < Object

Texture format (used by RenderingDevice).

Description

This object is used by RenderingDevice.

Properties

int

array_layers

1

int

depth

1

DataFormat

format

8

int

height

1

int

mipmaps

1

TextureSamples

samples

0

TextureType

texture_type

1

BitField<TextureUsageBits>

usage_bits

0

int

width

1

Methods

void

add_shareable_format ( DataFormat format )

void

remove_shareable_format ( DataFormat format )


Property Descriptions

int array_layers = 1

  • void set_array_layers ( int value )

  • int get_array_layers ( )

The number of layers