diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-07 00:37:12 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-10 04:12:34 +0200 |
commit | 692a74c09ee84009bc0d2553be559c08ffbe3a9c (patch) | |
tree | cb1c52f2aee90516c4676ae275ba2000a872c15d /src | |
parent | vertex_shader: Implement MADI instruction. (diff) | |
download | yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.gz yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.bz2 yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.lz yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.xz yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.zst yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/vertex_shader.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index 89d663a15..885b7de59 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp @@ -235,6 +235,15 @@ static void ProcessShaderCode(VertexShaderState& state) { break; } + case OpCode::Id::FLR: + for (int i = 0; i < 4; ++i) { + if (!swizzle.DestComponentEnabled(i)) + continue; + + dest[i] = float24::FromFloat32(std::floor(src1[i].ToFloat32())); + } + break; + case OpCode::Id::MAX: for (int i = 0; i < 4; ++i) { if (!swizzle.DestComponentEnabled(i)) |