|
SDEngine
Game Engine
|
#include "SD/core/ShaderCompiler.hpp"#include <algorithm>#include <cctype>#include <string>#include <string_view>#include <vector>#include <dxc/dxcapi.h>#include "SD/core/logging.hpp"#include "SD/utils/FixedString.hpp"#include "SD/utils/utils.hpp"#include <dxc/WinAdapter.h>
Include dependency graph for ShaderCompiler.cpp:Classes | |
| struct | ExtMapping |
Namespaces | |
| namespace | Microsoft |
| namespace | Microsoft::WRL |
| namespace | sd |
Typedefs | |
| template<typename T > | |
| using | Microsoft::WRL::ComPtr = CComPtr< T > |
| using | ExtString = FixedString< 20 > |
Functions | |
| template<USize N> | |
| consteval std::array< ExtString, N > | concatenate_mappings (std::array< ExtMapping, N > mappings) |
| template<USize N> | |
| constexpr std::array< ExtMapping, N > | sort_by_profile (std::array< ExtMapping, N > mappings) |
| std::wstring | to_wstring (const std::string &str) |
| ComPtr< IDxcUtils > | init_dxc_utils () |
| ComPtr< IDxcCompiler3 > | init_dxc_compiler () |
| std::string | deduce_profile (std::string_view filename) |
| SD_EXPORT std::optional< std::vector< U32 > > | sd::compile_shader (std::string_view filename, std::string_view profile={}) |
Variables | |
| FILE_INTERNAL_BEGIN constexpr const char * | k_shader_model = "6_0" |
| constexpr std::array | k_ext_to_profile |
| constexpr auto | k_display_mappings = sort_by_profile(k_ext_to_profile) |
| constexpr std::array< ExtString, k_display_mappings.size()> | k_display_exts |
| using ExtString = FixedString<20> |
| consteval std::array< ExtString, N > concatenate_mappings | ( | std::array< ExtMapping, N > | mappings | ) |
| std::string deduce_profile | ( | std::string_view | filename | ) |
| ComPtr< IDxcCompiler3 > init_dxc_compiler | ( | ) |
| ComPtr< IDxcUtils > init_dxc_utils | ( | ) |
|
constexpr |
| std::wstring to_wstring | ( | const std::string & | str | ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |