1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:17:46 +00:00

LibGL+LibGPU+LibSoftGPU: Move StencilConfiguration.h to LibGPU

This commit is contained in:
Stephan Unverwerth 2022-03-27 15:20:51 +02:00 committed by Andreas Kling
parent b652db1f54
commit e416380826
8 changed files with 73 additions and 41 deletions

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Types.h>
#pragma once
namespace GPU {
// FIXME: These 3 types were originally introduced in LibSoftGPU and are currently needed by the device interface.
// Once we refactor the interface these should move back into LibSoftGPU.
using ColorType = u32; // BGRA:8888
using DepthType = float;
using StencilType = u8;
}

View file

@ -0,0 +1,25 @@
/*
* Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGPU/Config.h>
#include <LibGPU/Enums.h>
namespace GPU {
struct StencilConfiguration {
StencilTestFunction test_function;
StencilType reference_value;
StencilType test_mask;
StencilOperation on_stencil_test_fail;
StencilOperation on_depth_test_fail;
StencilOperation on_pass;
StencilType write_mask;
};
}