summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGPU/SamplerConfig.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-03-27 16:26:50 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-06 11:32:24 +0200
commit4a9987558281c4ac4b235f7965ff323e5dba5673 (patch)
tree4204c0964347e1340234ca0906a7b9e36b3c3df3 /Userland/Libraries/LibGPU/SamplerConfig.h
parent1f3642ed48b6be1e1e913e5a550f2e38f299f07f (diff)
downloadserenity-4a9987558281c4ac4b235f7965ff323e5dba5673.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGPU/SamplerConfig.h')
-rw-r--r--Userland/Libraries/LibGPU/SamplerConfig.h4
1 files changed, 2 insertions, 2 deletions
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 <LibGPU/Image.h>
#include <LibGfx/Vector4.h>
-#include <LibSoftGPU/Image.h>
namespace GPU {
@@ -37,7 +37,7 @@ enum class TextureEnvMode {
};
struct SamplerConfig final {
- RefPtr<SoftGPU::Image> bound_image;
+ RefPtr<Image> bound_image;
MipMapFilter mipmap_filter { MipMapFilter::Nearest };
TextureFilter texture_mag_filter { TextureFilter::Linear };
TextureFilter texture_min_filter { TextureFilter::Linear };