6 #include "VK2D/Constants.h"
24 VK2DShader
vk2dShaderLoad(
const char *vertexShader,
const char *fragmentShader, uint32_t uniformBufferSize);
40 VK2DShader
vk2dShaderFrom(uint8_t *vertexShaderBuffer,
int vertexShaderBufferSize, uint8_t *fragmentShaderBuffer,
int fragmentShaderBufferSize, uint32_t uniformBufferSize);
void vk2dShaderFree(VK2DShader shader)
Frees a shader from memory.
VK2DShader vk2dShaderLoad(const char *vertexShader, const char *fragmentShader, uint32_t uniformBufferSize)
Creates a shader you can use to render textures.
VK2DShader vk2dShaderFrom(uint8_t *vertexShaderBuffer, int vertexShaderBufferSize, uint8_t *fragmentShaderBuffer, int fragmentShaderBufferSize, uint32_t uniformBufferSize)
Creates a shader you can use to render textures from an in-memory buffer.
Forward declares struct typedefs.