diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-20 20:32:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 20:32:50 +0200 |
commit | 028d90eb79b75292d352cc8d4b96a2df74cd6b6e (patch) | |
tree | ab7df9fd12b103b7c832e9691d2abbb72ca38e93 /src/video_core/engines/maxwell_3d.h | |
parent | Merge pull request #1115 from Subv/texs_mask (diff) | |
parent | GLRasterizer: Implemented instanced vertex arrays. (diff) | |
download | yuzu-028d90eb79b75292d352cc8d4b96a2df74cd6b6e.tar yuzu-028d90eb79b75292d352cc8d4b96a2df74cd6b6e.tar.gz yuzu-028d90eb79b75292d352cc8d4b96a2df74cd6b6e.tar.bz2 yuzu-028d90eb79b75292d352cc8d4b96a2df74cd6b6e.tar.lz yuzu-028d90eb79b75292d352cc8d4b96a2df74cd6b6e.tar.xz yuzu-028d90eb79b75292d352cc8d4b96a2df74cd6b6e.tar.zst yuzu-028d90eb79b75292d352cc8d4b96a2df74cd6b6e.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 771eb5abc..3c869d3a1 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -679,7 +679,19 @@ public: INSERT_PADDING_WORDS(0x7); - INSERT_PADDING_WORDS(0x46); + INSERT_PADDING_WORDS(0x20); + + struct { + u32 is_instanced[NumVertexArrays]; + + /// Returns whether the vertex array specified by index is supposed to be + /// accessed per instance or not. + bool IsInstancingEnabled(u32 index) const { + return is_instanced[index]; + } + } instanced_arrays; + + INSERT_PADDING_WORDS(0x6); Cull cull; @@ -928,6 +940,7 @@ ASSERT_REG_POSITION(point_coord_replace, 0x581); ASSERT_REG_POSITION(code_address, 0x582); ASSERT_REG_POSITION(draw, 0x585); ASSERT_REG_POSITION(index_array, 0x5F2); +ASSERT_REG_POSITION(instanced_arrays, 0x620); ASSERT_REG_POSITION(cull, 0x646); ASSERT_REG_POSITION(clear_buffers, 0x674); ASSERT_REG_POSITION(query, 0x6C0); |