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.

RDUniform

繼承: RefCounted < Object

著色器 Uniform(由 RenderingDevice 使用)。

說明

這個物件由 RenderingDevice 使用。

屬性

int

binding

0

UniformType

uniform_type

3

方法

void

add_id(id: RID)

void

clear_ids()

Array[RID]

get_ids() const


屬性說明

int binding = 0 🔗

  • void set_binding(value: int)

  • int get_binding()

Uniform 的綁定。


UniformType uniform_type = 3 🔗

Uniform 的資料型別。


方法說明

void add_id(id: RID) 🔗

將給定的 id 綁定到該 uniform(統一變數)上。隨後,當該 uniform 被傳遞給著色器時,就會使用與該 id 相關聯的資料。


void clear_ids() 🔗

解除目前綁定到該 uniform(統一變數)上的所有 id。


Array[RID] get_ids() const 🔗

回傳目前綁定到該 uniform 的所有 id 的陣列。