1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:37:34 +00:00

LibVirtGPU: Improve append_set_framebuffer_state_no_attach()

Remove hardcoded framebuffer size and add argument verification.
This commit is contained in:
Stephan Unverwerth 2022-12-21 15:55:47 +01:00 committed by Andreas Kling
parent 4a4aa23aed
commit b5acfba487
2 changed files with 11 additions and 8 deletions

View file

@ -31,7 +31,7 @@ public:
void append_create_vertex_elements(Protocol::ObjectHandle handle);
void append_bind_vertex_elements(Protocol::ObjectHandle handle);
void append_viewport(Gfx::IntSize);
void append_set_framebuffer_state_no_attach();
void append_set_framebuffer_state_no_attach(Gfx::IntSize);
void append_set_constant_buffer(Vector<float> const& constant_buffer);
void append_create_shader(Protocol::ObjectHandle handle, Gallium::ShaderType shader_type, StringView shader_data);
void append_bind_shader(Protocol::ObjectHandle handle, Gallium::ShaderType shader_type);