mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:08:12 +00:00

Each texture unit now has its own texture transformation matrix stack. Introduce a new texture unit configuration that is synced when changed. Because we're no longer passing a silly `Vector` when drawing each primitive, this results in a slightly improved frames per second :^)
24 lines
445 B
C++
24 lines
445 B
C++
/*
|
|
* Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#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;
|
|
};
|
|
|
|
}
|