mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add support for WebGL2 MAX_COLOR_ATTACHMENTS
and MAX_DRAW_BUFFERS
Adds support for using the WebGL2 enums `MAX_COLOR_ATTACHMENTS` and `MAX_DRAW_BUFFERS` with `GetParameter`. See https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
This commit is contained in:
parent
43c558fa59
commit
833485887e
4 changed files with 192 additions and 0 deletions
|
@ -535,6 +535,8 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
constants::UNIFORM_BUFFER_OFFSET_ALIGNMENT => {
|
||||
Some(self.base.limits().uniform_buffer_offset_alignment)
|
||||
},
|
||||
constants::MAX_COLOR_ATTACHMENTS => Some(self.base.limits().max_color_attachments),
|
||||
constants::MAX_DRAW_BUFFERS => Some(self.base.limits().max_draw_buffers),
|
||||
_ => None,
|
||||
};
|
||||
if let Some(limit) = limit {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue