Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

Texture2DRD

繼承: Texture2D < Texture < Resource < RefCounted < Object

用於 2D 的紋理,與 RenderingDevice 上建立的紋理綁定。

說明

This texture class allows you to use a 2D texture created directly on the RenderingDevice as a texture for materials, meshes, etc.

Note: Texture2DRD is intended for low-level usage with RenderingDevice. For most use cases, use Texture2D instead.

教學

屬性

bool

resource_local_to_scene

false (overrides Resource)

RID

texture_rd_rid


屬性說明

RID texture_rd_rid 🔗

  • void set_texture_rd_rid(value: RID)

  • RID get_texture_rd_rid()

RenderingDevice 上建立的紋理對象的 RID。