Skip to content

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

NameDescription
deviceThe device this shader program should be compiled for and executed on.
modulesThe modules of the shader program.