Navigation
API > API/Runtime > API/Runtime/Renderer
References
| Module | Renderer |
| Header | /Engine/Source/Runtime/Renderer/Public/ScreenPass.h |
| Include | #include "ScreenPass.h" |
Syntax
class FScreenPassTextureViewport
Remarks
Describes a view rect contained within the extent of a texture. Used to derive texture coordinate transformations.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FIntPoint | Extent | The texture extent, in pixels; defines a super-set [0, 0]x(Extent, Extent). | |
| FIntRect | Rect | The viewport rect, in pixels; defines a sub-set within [0, 0]x(Extent, Extent). |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FScreenPassTextureViewport
(
FIntRect InRect |
|||
FScreenPassTextureViewport
(
FScreenPassTexture InTexture |
|||
FScreenPassTextureViewport
(
FScreenPassTextureSlice InTexture |
|||
FScreenPassTextureViewport
(
FRDGTextureRef InTexture |
|||
FScreenPassTextureViewport
(
FIntPoint InExtent |
|||
FScreenPassTextureViewport
(
FIntPoint InExtent, |
|||
FScreenPassTextureViewport
(
FRDGTextureRef InTexture, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FScreenPassTextureViewport | CreateDownscaled
(
const FScreenPassTextureViewport& Other, |
Creates a viewport that is downscaled by an integer multiple. | |
| FScreenPassTextureViewport | CreateScaled
(
const FScreenPassTextureViewport& Other, |
Creates a viewport scaled by a floating point multiplier. | |
| FVector2D | Returns the ratio of rect size to extent along each axis. | ||
| bool | IsEmpty () |
Returns whether the viewport contains an empty viewport or extent. | |
| bool | IsFullscreen () |
Returns whether the viewport covers the full extent of the texture. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FScreenPassTextureViewport& Other |
||
| bool | operator==
(
const FScreenPassTextureViewport& Other |