mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
27 lines
591 B
C++
27 lines
591 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Extract {
|
|
|
|
///
|
|
/// Extract all known shaders.
|
|
///
|
|
/// @throws std::runtime_error if shader extraction fails.
|
|
///
|
|
void extractShaders();
|
|
|
|
///
|
|
/// Get a shader by name.
|
|
///
|
|
/// @param name The name of the shader to get.
|
|
/// @param fp16 If true, use the FP16 variant of shaders.
|
|
/// @return The shader bytecode.
|
|
///
|
|
/// @throws std::runtime_error if the shader is not found.
|
|
///
|
|
std::vector<uint8_t> getShader(const std::string& name, bool fp16);
|
|
|
|
}
|