diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-02 19:31:26 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-13 18:33:04 -0300 |
| commit | 8e9f23f393763a6d76605206eeb20f6f8885d9a9 (patch) | |
| tree | 35b28be3f345cd0223732b4803e13de40764d1dc /src/video_core/engines | |
| parent | 4d711dface5dfc76d5ae0d62c635ec9ba6bd4293 (diff) | |
gl_rasterizer: Implement transform feedback bindings
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 8752a1cfb..ba9c76593 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -634,6 +634,11 @@ public: u32 address_low; s32 buffer_size; s32 buffer_offset; + + GPUVAddr Address() const { + return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) | + address_low); + } }; static_assert(sizeof(TransformFeedbackBinding) == 32); @@ -652,6 +657,10 @@ public: return shader_config[index].enable != 0; } + bool IsShaderConfigEnabled(Regs::ShaderProgram type) const { + return IsShaderConfigEnabled(static_cast<std::size_t>(type)); + } + union { struct { INSERT_UNION_PADDING_WORDS(0x45); |
