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

LibGL+LibGPU+LibSoftGPU: Move TexCoordGenerationConfig into LibGPU

This commit is contained in:
Stephan Unverwerth 2022-03-27 15:28:08 +02:00 committed by Andreas Kling
parent 8f359bf758
commit 5a5596b381
3 changed files with 22 additions and 7 deletions

View file

@ -19,6 +19,7 @@
#include <LibGPU/RasterPosition.h>
#include <LibGPU/SamplerConfig.h>
#include <LibGPU/StencilConfiguration.h>
#include <LibGPU/TexCoordGenerationConfig.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Matrix3x3.h>
#include <LibGfx/Matrix4x4.h>
@ -36,11 +37,6 @@
namespace SoftGPU {
struct TexCoordGenerationConfig {
GPU::TexCoordGenerationMode mode { GPU::TexCoordGenerationMode::EyeLinear };
FloatVector4 coefficients {};
};
struct RasterizerOptions {
bool shade_smooth { true };
bool enable_stencil_test { false };
@ -75,7 +71,7 @@ struct RasterizerOptions {
bool cull_back { true };
bool cull_front { false };
Array<u8, NUM_SAMPLERS> texcoord_generation_enabled_coordinates {};
Array<Array<TexCoordGenerationConfig, 4>, NUM_SAMPLERS> texcoord_generation_config {};
Array<Array<GPU::TexCoordGenerationConfig, 4>, NUM_SAMPLERS> texcoord_generation_config {};
Gfx::IntRect viewport;
bool lighting_enabled { false };
bool color_material_enabled { false };