TombEngine/TR5Main/Renderer/Utils.h
2021-11-03 21:10:46 +03:00

15 lines
No EOL
769 B
C++

#pragma once
#include <winerror.h>
#include <string>
#include <wrl/client.h>
namespace TEN {
namespace Renderer {
namespace Utils {
void throwIfFailed(const HRESULT& res);
[[nodiscard]] Microsoft::WRL::ComPtr<ID3D11VertexShader> compileVertexShader(ID3D11Device* device, const std::wstring& fileName, const std::string& function, const std::string& model, const D3D_SHADER_MACRO* defines, Microsoft::WRL::ComPtr<ID3D10Blob>& bytecode);
constexpr [[nodiscard]] UINT GetShaderFlags();
[[nodiscard]] Microsoft::WRL::ComPtr<ID3D11PixelShader> compilePixelShader(ID3D11Device* device, const std::wstring& fileName, const std::string& function, const std::string& model, const D3D_SHADER_MACRO* defines, Microsoft::WRL::ComPtr<ID3D10Blob>& bytecode);
}
}
}