mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Initial implementation of WebGLQueries
This patch adds initial support for WeGLQueries. Most related WebGL functions and objects are implemented [1]. What's still missing is the `EXT_disjoint_timer_query_webgl2` support. [1]: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.12
This commit is contained in:
parent
402db83b2b
commit
f2e2b3d34b
12 changed files with 542 additions and 165 deletions
|
@ -427,6 +427,11 @@ pub enum WebGLCommand {
|
|||
depth: bool,
|
||||
stencil: bool,
|
||||
},
|
||||
BeginQuery(u32, WebGLQueryId),
|
||||
DeleteQuery(WebGLQueryId),
|
||||
EndQuery(u32),
|
||||
GenerateQuery(WebGLSender<WebGLQueryId>),
|
||||
GetQueryState(WebGLSender<u32>, WebGLQueryId, u32),
|
||||
}
|
||||
|
||||
macro_rules! define_resource_id {
|
||||
|
@ -498,6 +503,7 @@ define_resource_id!(WebGLFramebufferId);
|
|||
define_resource_id!(WebGLRenderbufferId);
|
||||
define_resource_id!(WebGLTextureId);
|
||||
define_resource_id!(WebGLProgramId);
|
||||
define_resource_id!(WebGLQueryId);
|
||||
define_resource_id!(WebGLShaderId);
|
||||
define_resource_id!(WebGLVertexArrayId);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue