FreeBSD Manual Pages
rendertarget_id(3) Arcan Lua API rendertarget_id(3) NAME rendertarget_id - Assign a numeric identifier to a rendertarget SYNOPSIS id or nil rendertarget_id( vid:rtgt ) rendertarget_id( vid:rtgt, int:id ) DESCRIPTION This function is intended to be used for the rendering cases where a shader need to distinguish between the destination rendertarget, e.g. the case when stereoscopically rendering a side-by-side packed textured source without manually managing multiple pipelines. To do this, create two rendertargets, one via define_rendertarget and the other via de- fine_linktarget . Give each a unique identifier with the help of this function, and then write your shader so that it does this distinction via the builtin int uniform rtgt_id. The two forms of this function is simply one that retrieves the current identifier, and another that up- dates. If the vid specified with rtgt does not exist, nil will be re- turned. SEE ALSO: targetcontrol April 2022 rendertarget_id(3)
NAME | SYNOPSIS | DESCRIPTION | SEE ALSO:
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=rendertarget_id&sektion=3&manpath=FreeBSD+13.1-RELEASE+and+Ports>