z test patch

This commit is contained in:
h4570
2022-08-14 18:05:57 +02:00
parent a9c91db594
commit 15391a81e0
51 changed files with 197 additions and 163 deletions
@@ -11,16 +11,12 @@
#pragma once
#include "renderer/3d/pipeline/shared/bag/pipeline_info_bag.hpp"
#include "renderer/3d/pipeline/static/stapip_ztest.hpp"
namespace Tyra {
class StaPipInfoBag : public PipelineInfoBag {
public:
StaPipInfoBag() {
fullClipChecks = false;
zTestType = StaPipZTest_Standard;
}
StaPipInfoBag() { fullClipChecks = false; }
~StaPipInfoBag() {}
/**
@@ -33,9 +29,6 @@ class StaPipInfoBag : public PipelineInfoBag {
* Force enabled in dynamic pipe, because of efficiency.
*/
bool fullClipChecks;
/** @brief Type of z buffer testing. */
StaPipZTest zTestType;
};
} // namespace Tyra
@@ -14,11 +14,12 @@
#define VU1_SINGLE_COLOR_ADDR 7
#define VU1_OPTIONS_ADDR 8
#define VU1_LOD_ADDR 9
#define VU1_CLUT_ADDR 10
#define VU1_LIGHTS_DIRS_ADDR 11
#define VU1_LIGHTS_COLORS_ADDR 14
#define VU1_SET_GIFTAG_ADDR 18
#define VU1_LAST_ITEM_ADDR 18
#define VU1_Z_TESTS_ADDR 10
#define VU1_CLUT_ADDR 11
#define VU1_LIGHTS_DIRS_ADDR 12
#define VU1_LIGHTS_COLORS_ADDR 15
#define VU1_SET_GIFTAG_ADDR 19
#define VU1_STAPIP_LAST_ITEM_ADDR 19
// Buffer data (xtop)
#define VU1_VERT_DATA_ADDR 2
#define VU1_STAPIP_VERT_DATA_ADDR 2
@@ -16,7 +16,6 @@
#include "./bag/packaging/stapip_bag_package.hpp"
#include "./bag/packaging/stapip_bag_packager.hpp"
#include "./stapip_qbuffer_renderer.hpp"
#include "../stapip_ztest.hpp"
#include "renderer/3d/pipeline/shared/pipeline_frustum_culling.hpp"
namespace Tyra {
@@ -11,21 +11,14 @@
#pragma once
#include "renderer/3d/pipeline/shared/pipeline_options.hpp"
#include "./stapip_ztest.hpp"
namespace Tyra {
class StaPipOptions : public PipelineOptions {
public:
StaPipOptions() {
fullClipChecks = false;
zTestType = StaPipZTest_Standard;
}
StaPipOptions() { fullClipChecks = false; }
~StaPipOptions() {}
/** @brief Type of z buffer testing. */
StaPipZTest zTestType;
/**
* @brief Experimental! True -> enables "clip against each plane" algorithm.
* Mandatory, default: False.
@@ -1,20 +0,0 @@
/*
# _____ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2022, tyra - https://github.com/h4570/tyra
# Licensed under Apache License 2.0
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#pragma once
namespace Tyra {
enum StaPipZTest {
StaPipZTest_Standard = 0,
StaPipZTest_AllPass = 1,
};
} // namespace Tyra