Advertisement

HLSL Render Targets

Started by March 08, 2020 07:19 PM
1 comment, last by NikiTo 4 years, 11 months ago

I am quite new to hlsl and was wondering how I change the render target a pass renders too.

I have a shader which should make some data and pass that to another shader.

I am having some trouble finding out how to do this. I believe I am supposed to render to a render target then put that in a texture.

I think I figured out how to make a texture but I am having trouble with the render target part.

If you could write some very simple example code that would be very helpful. Thank you.

You need to tell us the API you use, because the commands vary from one API to another.

A Render Target is just a regular texture marked as a render target. To say “render to a render target” is the same as to say “write to a texture”, it is just written by the pixel shader.

This topic is closed to new replies.

Advertisement