mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-03 18:27:59 +03:00
15 lines
No EOL
769 B
C++
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);
|
|
|
|
}
|
|
}
|
|
} |