diff options
| author | 2014-05-17 23:07:51 +0200 | |
|---|---|---|
| committer | 2014-06-12 06:10:51 -0400 | |
| commit | 50b2b73be4bc294856726e9a0f46fd16af355b0e (patch) | |
| tree | d72cc76e5c2d3a2da53ee0c569cd1a460eb2a865 /src | |
| parent | GPU: Cleanup register definitions. (diff) | |
| download | yuzu-50b2b73be4bc294856726e9a0f46fd16af355b0e.tar.gz yuzu-50b2b73be4bc294856726e9a0f46fd16af355b0e.tar.xz yuzu-50b2b73be4bc294856726e9a0f46fd16af355b0e.zip | |
video core: added PICA definitions file.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/pica.h | 35 | ||||
| -rw-r--r-- | src/video_core/video_core.vcxproj | 1 | ||||
| -rw-r--r-- | src/video_core/video_core.vcxproj.filters | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h new file mode 100644 index 000000000..dab861408 --- /dev/null +++ b/src/video_core/pica.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/bit_field.h" | ||
| 8 | #include "common/common_types.h" | ||
| 9 | |||
| 10 | namespace Pica { | ||
| 11 | |||
| 12 | enum class CommandId : u32 | ||
| 13 | { | ||
| 14 | ViewportSizeX = 0x41, | ||
| 15 | ViewportInvSizeX = 0x42, | ||
| 16 | ViewportSizeY = 0x43, | ||
| 17 | ViewportInvSizeY = 0x44, | ||
| 18 | ViewportCorner = 0x68, | ||
| 19 | DepthBufferFormat = 0x116, | ||
| 20 | ColorBufferFormat = 0x117, | ||
| 21 | DepthBufferAddress = 0x11C, | ||
| 22 | ColorBufferAddress = 0x11D, | ||
| 23 | ColorBufferSize = 0x11E, | ||
| 24 | }; | ||
| 25 | |||
| 26 | union CommandHeader { | ||
| 27 | u32 hex; | ||
| 28 | |||
| 29 | BitField< 0, 16, CommandId> cmd_id; | ||
| 30 | BitField<16, 4, u32> parameter_mask; | ||
| 31 | BitField<20, 11, u32> extra_data_length; | ||
| 32 | BitField<31, 1, u32> group_commands; | ||
| 33 | }; | ||
| 34 | |||
| 35 | } | ||
diff --git a/src/video_core/video_core.vcxproj b/src/video_core/video_core.vcxproj index a4df92386..d77be2bef 100644 --- a/src/video_core/video_core.vcxproj +++ b/src/video_core/video_core.vcxproj | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | </ItemGroup> | 25 | </ItemGroup> |
| 26 | <ItemGroup> | 26 | <ItemGroup> |
| 27 | <ClInclude Include="gpu_debugger.h" /> | 27 | <ClInclude Include="gpu_debugger.h" /> |
| 28 | <ClInclude Include="pica.h" /> | ||
| 28 | <ClInclude Include="renderer_base.h" /> | 29 | <ClInclude Include="renderer_base.h" /> |
| 29 | <ClInclude Include="utils.h" /> | 30 | <ClInclude Include="utils.h" /> |
| 30 | <ClInclude Include="video_core.h" /> | 31 | <ClInclude Include="video_core.h" /> |
diff --git a/src/video_core/video_core.vcxproj.filters b/src/video_core/video_core.vcxproj.filters index cc173a718..b89ac1ac4 100644 --- a/src/video_core/video_core.vcxproj.filters +++ b/src/video_core/video_core.vcxproj.filters | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | <Filter>renderer_opengl</Filter> | 17 | <Filter>renderer_opengl</Filter> |
| 18 | </ClInclude> | 18 | </ClInclude> |
| 19 | <ClInclude Include="gpu_debugger.h" /> | 19 | <ClInclude Include="gpu_debugger.h" /> |
| 20 | <ClInclude Include="pica.h" /> | ||
| 20 | <ClInclude Include="renderer_base.h" /> | 21 | <ClInclude Include="renderer_base.h" /> |
| 21 | <ClInclude Include="utils.h" /> | 22 | <ClInclude Include="utils.h" /> |
| 22 | <ClInclude Include="video_core.h" /> | 23 | <ClInclude Include="video_core.h" /> |