LiteFX::Rendering::Backends::DirectX12ShaderProgram::create¶
Creates a new shader program instance.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] static SharedPtr<DirectX12ShaderProgram> create(
DirectX12Device const& device,
Enumerable<UniquePtr<DirectX12ShaderModule>>&& modules);
Return Value¶
A pointer to the shader program.
Parameters¶
| Name | Description |
|---|---|
| device | The device this shader program should be compiled for and executed on. |
| modules | The modules of the shader program. |