diff options
| author | bunnei <bunneidev@gmail.com> | 2018-07-02 21:24:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-02 21:24:43 -0400 |
| commit | 92c713506542d5e628a5495943792b11e8de5c20 (patch) | |
| tree | 1b46282f09e46b163be059965aaf1dc410ba1be4 /src/video_core/gpu.h | |
| parent | 055f1546d7d69fdcc06693847aeddda30535b283 (diff) | |
| parent | a6d4903aaff4633bcd5a39ca79ea368f86bc3ce5 (diff) | |
Merge pull request #608 from Subv/depth
GPU: Implemented the depth buffer and depth test + culling
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index d0a4ac267..cc5ca656e 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -24,6 +24,15 @@ enum class RenderTargetFormat : u32 { R11G11B10_FLOAT = 0xE0, }; +enum class DepthFormat : u32 { + Z32_FLOAT = 0xA, + Z16_UNORM = 0x13, + S8_Z24_UNORM = 0x14, + Z24_X8_UNORM = 0x15, + Z24_S8_UNORM = 0x16, + Z24_C8_UNORM = 0x18, +}; + /// Returns the number of bytes per pixel of each rendertarget format. u32 RenderTargetBytesPerPixel(RenderTargetFormat format); |
