# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Vulkan layer for hardware-agnostic input latency reduction (Reflex/Anti-Lag)"
HOMEPAGE="https://github.com/Korthos-Software/low_latency_layer"
SRC_URI="
	https://github.com/Korthos-Software/low_latency_layer/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.tar.gz
"
S="${WORKDIR}/low_latency_layer-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# Vulkan::SafeStruct comes from dev-util/vulkan-utility-libraries (build-time).
# The layer links libvulkan (Vulkan::Vulkan) -> vulkan-loader at runtime too.
RDEPEND="media-libs/vulkan-loader"
DEPEND="
	${RDEPEND}
	dev-util/vulkan-headers
	dev-util/vulkan-utility-libraries
"