diff options
author | wwylele <wwylele@gmail.com> | 2017-08-22 08:49:26 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-08-24 14:34:27 +0200 |
commit | ea51a3af261254e5455f63a0ef41e55ef1dfc471 (patch) | |
tree | 1240b8835ade7b50c633e233787b319c498a4d1d /src/video_core/regs_rasterizer.h | |
parent | Merge pull request #2839 from Subv/global_kernel_lock (diff) | |
download | yuzu-ea51a3af261254e5455f63a0ef41e55ef1dfc471.tar yuzu-ea51a3af261254e5455f63a0ef41e55ef1dfc471.tar.gz yuzu-ea51a3af261254e5455f63a0ef41e55ef1dfc471.tar.bz2 yuzu-ea51a3af261254e5455f63a0ef41e55ef1dfc471.tar.lz yuzu-ea51a3af261254e5455f63a0ef41e55ef1dfc471.tar.xz yuzu-ea51a3af261254e5455f63a0ef41e55ef1dfc471.tar.zst yuzu-ea51a3af261254e5455f63a0ef41e55ef1dfc471.zip |
Diffstat (limited to 'src/video_core/regs_rasterizer.h')
-rw-r--r-- | src/video_core/regs_rasterizer.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/video_core/regs_rasterizer.h b/src/video_core/regs_rasterizer.h index 2874fd127..4fef00d76 100644 --- a/src/video_core/regs_rasterizer.h +++ b/src/video_core/regs_rasterizer.h @@ -5,10 +5,10 @@ #pragma once #include <array> - #include "common/bit_field.h" #include "common/common_funcs.h" #include "common/common_types.h" +#include "video_core/pica_types.h" namespace Pica { @@ -31,7 +31,17 @@ struct RasterizerRegs { BitField<0, 24, u32> viewport_size_y; - INSERT_PADDING_WORDS(0x9); + INSERT_PADDING_WORDS(0x3); + + BitField<0, 1, u32> clip_enable; + BitField<0, 24, u32> clip_coef[4]; // float24 + + Math::Vec4<float24> GetClipCoef() const { + return {float24::FromRaw(clip_coef[0]), float24::FromRaw(clip_coef[1]), + float24::FromRaw(clip_coef[2]), float24::FromRaw(clip_coef[3])}; + } + + INSERT_PADDING_WORDS(0x1); BitField<0, 24, u32> viewport_depth_range; // float24 BitField<0, 24, u32> viewport_depth_near_plane; // float24 |