gl_rasterizer: Implement transform feedback bindings

This commit is contained in:
ReinUsesLisp 2020-03-02 19:31:26 -03:00
parent 4d711dface
commit 8e9f23f393
3 changed files with 83 additions and 10 deletions

View file

@ -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);