MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk::VK_Stencil::PushConstants Struct Reference

Push-constant payload shared by the mask and content shaders. More...

#include <mxvk/include/mxvk/mxvk_stencil.hpp>

Public Attributes

float aspect = 1.0f
 Render target width divided by height.
float phase = 0.0f
 User-defined phase value for animated stencil/content shaders.
float scale = 1.0f
 User-defined scale value for stencil/content shaders.
float time = 0.0f
 Elapsed animation time in seconds.

Detailed Description

Push-constant payload shared by the mask and content shaders.

The helper does not assign semantic meaning beyond the field names; examples use the values for animation time, aspect-ratio correction, phase offsets, and scale.

Definition at line 34 of file mxvk_stencil.hpp.

Member Data Documentation

◆ aspect

float mxvk::VK_Stencil::PushConstants::aspect = 1.0f

Render target width divided by height.

Definition at line 38 of file mxvk_stencil.hpp.

◆ phase

float mxvk::VK_Stencil::PushConstants::phase = 0.0f

User-defined phase value for animated stencil/content shaders.

Definition at line 40 of file mxvk_stencil.hpp.

◆ scale

float mxvk::VK_Stencil::PushConstants::scale = 1.0f

User-defined scale value for stencil/content shaders.

Definition at line 42 of file mxvk_stencil.hpp.

◆ time

float mxvk::VK_Stencil::PushConstants::time = 0.0f

Elapsed animation time in seconds.

Definition at line 36 of file mxvk_stencil.hpp.


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