FFastScreenVisibilityCheckCS
Overview
FFastScreenVisibilityCheckCS is a compute shader designed to perform fast screen visibility checks. It inherits from FGlobalShader and utilizes various shader parameters to process view data, scene textures, and custom parameters to determine visibility flags.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FViewUniformShaderParameters | View | Public | A reference to the view uniform shader parameters. |
FSceneTextureUniformParameters | SceneTextures | Public | A read-only uniform buffer containing scene textures. |
FIntPoint | ViewRectMin | Public | The minimum coordinates of the view rectangle. |
FIntPoint | ViewRectSize | Public | The size of the view rectangle. |
StructuredBuffer | Masks | Public | A structured buffer containing masks for visibility checks. |
RWStructuredBuffer | OutFlag | Public | A read-write structured buffer to output visibility flags. |
Functions
Return Type | Signature | Description |
|---|---|---|
bool | ShouldCompilePermutation(const FGlobalShaderPermutationParameters& Params) | Determines if the shader permutation should be compiled based on the platform and feature level. Only compiles if the feature level is SM5 or higher. |
Usage & Implementation Notes
This shader requires a compute pipeline.
It operates on structured buffers for input and output, which must be properly initialized before execution.
The shader checks visibility within a specified view rectangle using masks and outputs flags accordingly.