mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
LibVirtGPU: Adopt rendering code from VirGLDemo
This commit is contained in:
parent
1ec791fcd0
commit
2658351fa6
2 changed files with 108 additions and 8 deletions
|
@ -61,6 +61,7 @@ public:
|
|||
virtual void bind_fragment_shader(RefPtr<GPU::Shader>) override;
|
||||
|
||||
private:
|
||||
void encode_constant_buffer(Gfx::FloatMatrix4x4 const&, Vector<float>&);
|
||||
Protocol::ObjectHandle allocate_handle();
|
||||
ErrorOr<Protocol::ResourceID> create_virgl_resource(VirGL3DResourceSpec&);
|
||||
ErrorOr<void> upload_command_buffer(Vector<u32> const&);
|
||||
|
@ -88,6 +89,10 @@ private:
|
|||
float y;
|
||||
float z;
|
||||
};
|
||||
|
||||
Vector<VertexData> m_vertices;
|
||||
|
||||
Vector<float> m_constant_buffer_data;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue