Color only or depth only render target? #289
Answered
by
asny
jice-nospam
asked this question in
Q&A
-
Hello, Apparently it's not currently possible to create a color only or depth only render target. There are new_color and new_depth functions in render_target.rs but they are private. Is there another way to do it ? |
Beta Was this translation helpful? Give feedback.
Answered by
asny
Oct 25, 2022
Replies: 1 comment
-
Yes, use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jice-nospam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, use the
as_color_target
oras_depth_target
on a texture, for example Texture2D::as_color_target. See also the documentation of RenderTarget, ColorTarget and DepthTarget.