Skip to content

What does write_texture()'s "size" parameter do? #2497

Answered by cwfitzgerald
ChevyRay asked this question in Q&A
Discussion options

You must be logged in to vote

It's so that you can write to only part of the texture! You can use the origin field of the image copy and the size, to form a rectangle that you want to write data to.

If either size or origin cause the box to overrun the texture, there will be a validation error.

We'd love for this documentation to be improved, PRs accepted :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChevyRay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants