JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
ShaderBytecode.hpp
Go to the documentation of this file.
1// Copyright 2026 Jan Niklas Hasse <jhasse@bixense.com>
2// For conditions of distribution and use, see copyright notice in LICENSE.txt
5#pragma once
6
7#include <cstdint>
8#include <span>
9#include <string_view>
10
11namespace jngl {
12
27 struct Uniform {
29 uint32_t offset;
30 uint32_t size;
31 };
32
37 uint32_t uniformBlockSize;
40};
41
42} // namespace jngl
JNGL's main namespace.
One of the program's uniforms, see ShaderProgram::getUniformLocation.
A ShaderProgram's GLSL compiled at build time by jngl-shaderc, for the Vulkan (SPIR-V),...
std::span< const uint32_t > vertex
As 32-bit words.
bool pushConstants
Whether the uniforms are push constants rather than a uniform buffer.