GPUDevice: Support ingesting SPIR-V

Will be transpiled to HLSL -> DXBC for DirectX backends.
This commit is contained in:
Stenzek
2024-09-08 22:11:58 +10:00
parent 6a5f16d89a
commit c42fb7c16e
8 changed files with 136 additions and 18 deletions

View File

@ -773,6 +773,7 @@ protected:
std::string_view source, const char* entry_point,
GPUShaderLanguage target_language, u32 target_version,
DynamicHeapArray<u8>* out_binary, Error* error);
static std::optional<DynamicHeapArray<u8>> OptimizeVulkanSpv(const std::span<const u8> spirv, Error* error);
Features m_features = {};
u32 m_max_texture_size = 0;