summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Device.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-03-27 14:55:31 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-06 11:32:24 +0200
commite7450fa94049c6d5abe469ef17afb90dce455e67 (patch)
treef456ae69cc7978dcf888fb30db7078dab24f2b84 /Userland/Libraries/LibSoftGPU/Device.cpp
parent54307a9cd33b60bbfb223a44078d3931bc7a232d (diff)
downloadserenity-e7450fa94049c6d5abe469ef17afb90dce455e67.zip
LibGL+LibGPU+LibSoftGPU: Move SamplerConfig to LibGPU
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.cpp')
-rw-r--r--Userland/Libraries/LibSoftGPU/Device.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp
index abcf4df7c3..7703afd74d 100644
--- a/Userland/Libraries/LibSoftGPU/Device.cpp
+++ b/Userland/Libraries/LibSoftGPU/Device.cpp
@@ -977,13 +977,13 @@ ALWAYS_INLINE void Device::shade_fragments(PixelQuad& quad)
// FIXME: Implement more blend modes
switch (sampler.config().fixed_function_texture_env_mode) {
- case SoftGPU::TextureEnvMode::Modulate:
+ case GPU::TextureEnvMode::Modulate:
quad.out_color = quad.out_color * texel;
break;
- case SoftGPU::TextureEnvMode::Replace:
+ case GPU::TextureEnvMode::Replace:
quad.out_color = texel;
break;
- case SoftGPU::TextureEnvMode::Decal: {
+ case GPU::TextureEnvMode::Decal: {
auto dst_alpha = texel.w();
quad.out_color.set_x(mix(quad.out_color.x(), texel.x(), dst_alpha));
quad.out_color.set_y(mix(quad.out_color.y(), texel.y(), dst_alpha));
@@ -1231,7 +1231,7 @@ NonnullRefPtr<Image> Device::create_image(GPU::ImageFormat format, unsigned widt
return adopt_ref(*new Image(width, height, depth, levels, layers));
}
-void Device::set_sampler_config(unsigned sampler, SamplerConfig const& config)
+void Device::set_sampler_config(unsigned sampler, GPU::SamplerConfig const& config)
{
m_samplers[sampler].set_config(config);
}