lsfg-vk/include/extract/extract.hpp
PancakeTAS cb234bde74 feat(fp16): translate shaders to fp16
this will not work with the steam version, nor is it deployable
2025-08-12 20:30:34 +02:00

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);
}