Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texture2DRD Global Renderingdevice Documentation #104489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Akeal
Copy link

@Akeal Akeal commented Mar 22, 2025

Updated documentation to specify that Texture2DRD is only supported by the global rendering device.

Example:

In ...
texture_rd.cpp
_set_texture_rd_rid()

ERR_FAIL_COND(!RD::get_singleton()->texture_is_valid(p_texture_rd_rid));

This fail condition ensures that the rendering device global singleton owns the RID that is being assigned to the Texture2DRD, and errors if it is owned by another rendering device (is designated as not valid).

There are many other instances in texture_rd.cpp that call RD::get_singleton() as well.

@Akeal Akeal requested a review from a team as a code owner March 22, 2025 16:41
@Mickeon Mickeon requested a review from a team March 22, 2025 17:16
@Mickeon Mickeon added this to the 4.x milestone Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants