Skip to content

LiteFX::Rendering::RenderTarget::location

Returns the location of the render target output attachment within the fragment shader.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual UInt32 location() const noexcept override;

Description

The locations of all render targets of a frame buffer must be within a continuous domain, starting at 0. A frame buffer validates the render target locations when it is initialized and will raise an exception, if a location is either not mapped or assigned multiple times.

Return Value

The location of the render target output attachment within the fragment shader