| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <cstddef> |
| 7 |
#include <optional> |
| 8 |
#include <string_view> |
| 9 |
#include <vector> |
| 10 |
|
| 11 |
#include "Common/CommonTypes.h" |
| 12 |
|
| 13 |
namespace VideoCommon |
| 14 |
{ |
| 15 |
class ShaderIncluder; |
| 16 |
} |
| 17 |
|
| 18 |
namespace Vulkan::ShaderCompiler |
| 19 |
{ |
| 20 |
|
| 21 |
using SPIRVCodeType = u32; |
| 22 |
using SPIRVCodeVector = std::vector<SPIRVCodeType>; |
| 23 |
|
| 24 |
|
| 25 |
std::optional<SPIRVCodeVector> CompileVertexShader(std::string_view source_code, |
| 26 |
VideoCommon::ShaderIncluder* shader_includer); |
| 27 |
|
| 28 |
|
| 29 |
std::optional<SPIRVCodeVector> CompileGeometryShader(std::string_view source_code, |
| 30 |
VideoCommon::ShaderIncluder* shader_includer); |
| 31 |
|
| 32 |
|
| 33 |
std::optional<SPIRVCodeVector> CompileFragmentShader(std::string_view source_code, |
| 34 |
VideoCommon::ShaderIncluder* shader_includer); |
| 35 |
|
| 36 |
|
| 37 |
std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code, |
| 38 |
VideoCommon::ShaderIncluder* shader_includer); |
| 39 |
} |