diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-08-04 03:31:52 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-09-23 23:05:29 +0200 |
commit | bdc01254a9b3ce8359f8f007c2102cb2d112418e (patch) | |
tree | b75b974c0751f83089d64957df567e0d138981b1 /src/video_core/query_cache/types.h | |
parent | Merge pull request #11567 from liamwhite/fixing-my-error (diff) | |
download | yuzu-bdc01254a9b3ce8359f8f007c2102cb2d112418e.tar yuzu-bdc01254a9b3ce8359f8f007c2102cb2d112418e.tar.gz yuzu-bdc01254a9b3ce8359f8f007c2102cb2d112418e.tar.bz2 yuzu-bdc01254a9b3ce8359f8f007c2102cb2d112418e.tar.lz yuzu-bdc01254a9b3ce8359f8f007c2102cb2d112418e.tar.xz yuzu-bdc01254a9b3ce8359f8f007c2102cb2d112418e.tar.zst yuzu-bdc01254a9b3ce8359f8f007c2102cb2d112418e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/query_cache/types.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/video_core/query_cache/types.h b/src/video_core/query_cache/types.h new file mode 100644 index 000000000..e9226bbfc --- /dev/null +++ b/src/video_core/query_cache/types.h @@ -0,0 +1,74 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include "common/common_funcs.h" +#include "common/common_types.h" + +namespace VideoCommon { + +enum class QueryPropertiesFlags : u32 { + HasTimeout = 1 << 0, + IsAFence = 1 << 1, +}; +DECLARE_ENUM_FLAG_OPERATORS(QueryPropertiesFlags) + +// This should always be equivalent to maxwell3d Report Semaphore Reports +enum class QueryType : u32 { + Payload = 0, // "None" in docs, but confirmed via hardware to return the payload + VerticesGenerated = 1, + ZPassPixelCount = 2, + PrimitivesGenerated = 3, + AlphaBetaClocks = 4, + VertexShaderInvocations = 5, + StreamingPrimitivesNeededMinusSucceeded = 6, + GeometryShaderInvocations = 7, + GeometryShaderPrimitivesGenerated = 9, + ZCullStats0 = 10, + StreamingPrimitivesSucceeded = 11, + ZCullStats1 = 12, + StreamingPrimitivesNeeded = 13, + ZCullStats2 = 14, + ClipperInvocations = 15, + ZCullStats3 = 16, + ClipperPrimitivesGenerated = 17, + VtgPrimitivesOut = 18, + PixelShaderInvocations = 19, + ZPassPixelCount64 = 21, + IEEECleanColorTarget = 24, + IEEECleanZetaTarget = 25, + StreamingByteCount = 26, + TessellationInitInvocations = 27, + BoundingRectangle = 28, + TessellationShaderInvocations = 29, + TotalStreamingPrimitivesNeededMinusSucceeded = 30, + TessellationShaderPrimitivesGenerated = 31, + // max. + MaxQueryTypes, +}; + +// Comparison modes for Host Conditional Rendering +enum class ComparisonMode : u32 { + False = 0, + True = 1, + Conditional = 2, + IfEqual = 3, + IfNotEqual = 4, + MaxComparisonMode, +}; + +// Reduction ops. +enum class ReductionOp : u32 { + RedAdd = 0, + RedMin = 1, + RedMax = 2, + RedInc = 3, + RedDec = 4, + RedAnd = 5, + RedOr = 6, + RedXor = 7, + MaxReductionOp, +}; + +} // namespace VideoCommon
\ No newline at end of file |