KiCad PCB EDA Suite
Loading...
Searching...
No Matches
COMPOSITOR_LAYER Struct Reference

One layer to composite. More...

#include <rhi_compositor.h>

Public Attributes

RHI_FramebufferHandle fbo
 
float alpha = 1.0f
 
float uvScale [2] = { 1.0f, 1.0f }
 
float uvOffset [2] = { 0.0f, 0.0f }
 

Detailed Description

One layer to composite.

Output position u samples the layer at u * uvScale + uvOffset, which selects the visible part of a layer drawn larger than the output.

Definition at line 39 of file rhi_compositor.h.

Member Data Documentation

◆ alpha

float COMPOSITOR_LAYER::alpha = 1.0f

Definition at line 42 of file rhi_compositor.h.

Referenced by RHI_COMPOSITOR::compositeLayer().

◆ fbo

RHI_FramebufferHandle COMPOSITOR_LAYER::fbo

Definition at line 41 of file rhi_compositor.h.

Referenced by RHI_COMPOSITOR::compositeLayer().

◆ uvOffset

float COMPOSITOR_LAYER::uvOffset[2] = { 0.0f, 0.0f }

Definition at line 44 of file rhi_compositor.h.

Referenced by RHI_COMPOSITOR::compositeLayer().

◆ uvScale

float COMPOSITOR_LAYER::uvScale[2] = { 1.0f, 1.0f }

Definition at line 43 of file rhi_compositor.h.

Referenced by RHI_COMPOSITOR::compositeLayer().


The documentation for this struct was generated from the following file: