Vulkan2D
2D renderer written in C using Vulkan and SDL2
VK2DShaderPushBuffer Struct Reference

Push buffer for user shaders. More...

#include <Structs.h>

Data Fields

int32_t cameraIndex
 Index of the camera in use.
 
uint32_t textureIndex
 Index of the texture that was passed to the shader.
 
vec2 _padding
 For vec4 alignment.
 
vec4 texturePos
 UV coordinates (unnormalized)
 
vec4 colour
 Colour mod of the renderer when called.
 
mat4 model
 Model matrix.
 

Detailed Description

Push buffer for user shaders.


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