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::PointSpriteVertex Struct Reference

Vertex layout consumed by VK_PointSpriteBatch. More...

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

Public Attributes

float color [4] {}
 RGBA tint color passed to shader location 2.
float position [3] {}
 Vertex position passed to shader location 0.
float size = 0.0f
 Rasterized point size in pixels, passed to shader location 1.

Detailed Description

Vertex layout consumed by VK_PointSpriteBatch.

The vertex shader receives world or clip-space effect coordinates at location 0, point size at location 1, and tint color at location 2.

Definition at line 30 of file mxvk_point_sprite_batch.hpp.

Member Data Documentation

◆ color

float mxvk::PointSpriteVertex::color[4] {}

RGBA tint color passed to shader location 2.

Definition at line 36 of file mxvk_point_sprite_batch.hpp.

36{};

◆ position

float mxvk::PointSpriteVertex::position[3] {}

Vertex position passed to shader location 0.

Definition at line 32 of file mxvk_point_sprite_batch.hpp.

32{};

◆ size

float mxvk::PointSpriteVertex::size = 0.0f

Rasterized point size in pixels, passed to shader location 1.

Definition at line 34 of file mxvk_point_sprite_batch.hpp.


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