Skip to content

01 Installation

Inan Evin edited this page Nov 19, 2023 · 7 revisions

Installation

Download a release from Releases.

Recommended way of using LinaGX is to link it together with your application using CMake. Alternatively, you can build the CMake project yourself and link to produced binaries, but please mind that you also have to link to the produced dependency binaries, specifically glslang, spirv-cross. Additionally if using DX12: dxc, nvapi, pix and also include the DLLs from LinaGX/Dependencies/bin.

Use LINAGX_BUILD_EXAMPLES option to build the example projects.

# Clone LinaGX
git clone https://github.com/inanevin/LinaGX

# Create a directory for solution directory
mkdir build_x64

# Navigate to directory
cd build_x64

# Build LinaGX
cmake ../ -DLINAGX_BUILD_EXAMPLES=ON -G "Visual Studio 17 2022" -A "x64"

# After the project files are built, you can build the project via
cmake --build . --target ALL_BUILD

By default, LinaGX builds for both Vulkan and DX12 on Windows for runtime switching between graphics APIs. If this is not required for your use case, you can use LINAGX_DISABLE_VK or LINAGX_DISABLE_DX12 to disable one of the graphics backends. Using both options will fail CMake project generation.

Requirements

On Windows, if you have not disabled Vulkan compilation, you need minimum of Vulkan 1.3 SDK installed in your computer.

Clone this wiki locally