From 4a9987558281c4ac4b235f7965ff323e5dba5673 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Sun, 27 Mar 2022 16:26:50 +0200 Subject: LibGL+LibGPU+LibSoftGPU: Add virtual base class for Images This introduces a new device independent base class for Images in LibGPU that also keeps track of the device from which it was created in order to prevent assigning images across devices. --- Userland/Libraries/LibGPU/SamplerConfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibGPU/SamplerConfig.h') diff --git a/Userland/Libraries/LibGPU/SamplerConfig.h b/Userland/Libraries/LibGPU/SamplerConfig.h index fe121913ab..42ccdd2c76 100644 --- a/Userland/Libraries/LibGPU/SamplerConfig.h +++ b/Userland/Libraries/LibGPU/SamplerConfig.h @@ -6,8 +6,8 @@ #pragma once +#include #include -#include namespace GPU { @@ -37,7 +37,7 @@ enum class TextureEnvMode { }; struct SamplerConfig final { - RefPtr bound_image; + RefPtr bound_image; MipMapFilter mipmap_filter { MipMapFilter::Nearest }; TextureFilter texture_mag_filter { TextureFilter::Linear }; TextureFilter texture_min_filter { TextureFilter::Linear }; -- cgit v1.2.3