diff options
author | Rhys Perry <[email protected]> | 2018-04-27 11:35:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-04-30 21:13:53 -0600 |
commit | 4580617509d1ba48a7806227533a07e1c495ca81 (patch) | |
tree | 99d00ab799e56500ba754fa02bb50464731945ce /src/mesa/main/conservativeraster.h | |
parent | 31ab0427a767c6c8377c00203e87bf0a03ac3247 (diff) |
mesa: add support for nvidia conservative rasterization extensions
Although the specs are written against compatibility GL 4.3 and allows core
profile and GLES2+, it is exposed for GL 1.0+ and GLES1 and GLES2+.
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/conservativeraster.h')
-rw-r--r-- | src/mesa/main/conservativeraster.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mesa/main/conservativeraster.h b/src/mesa/main/conservativeraster.h new file mode 100644 index 00000000000..1865cfc2a4d --- /dev/null +++ b/src/mesa/main/conservativeraster.h @@ -0,0 +1,48 @@ +/* + * Mesa 3-D graphics library + * + * Copyright (C) 2018 Rhys Perry + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#ifndef CONSERVATIVERASTER_H +#define CONSERVATIVERASTER_H + +#include "glheader.h" + +struct gl_context; + +extern void GLAPIENTRY +_mesa_ConservativeRasterParameteriNV_no_error(GLenum pname, GLint param); + +extern void GLAPIENTRY +_mesa_ConservativeRasterParameteriNV(GLenum pname, GLint param); + +extern void GLAPIENTRY +_mesa_ConservativeRasterParameterfNV_no_error(GLenum pname, GLfloat param); + +extern void GLAPIENTRY +_mesa_ConservativeRasterParameterfNV(GLenum pname, GLfloat param); + +extern void +_mesa_init_conservative_raster(struct gl_context *ctx); + +#endif |