Finality Engine
Loading...
Searching...
No Matches
ShaderReflection.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <Core/Core.h>
9#include <cstdint>
10#include <string>
11#include <vector>
12
13namespace FINALITY
14{
17{
18 std::string Name;
19 std::string Type;
20 std::string Block;
21 std::string Storage;
22 uint32_t Offset = 0;
23 uint32_t Size = 0;
24 uint32_t Set = 0;
25 uint32_t Binding = 0;
26 bool Editable = false;
27};
28
31{
32 public:
33 static std::vector<ShaderUniform> Reflect(const std::string &source);
34};
35}
#define FAPI
Definition Core.h:22
static std::vector< ShaderUniform > Reflect(const std::string &source)