Import functionality for new GL backend
Brings in the following functionality: ARB_draw_instanced ARB_instanced_arrays NV_bindless_texture EXT_direct_state_access KHR_debug Also cleans up some of the NVPR extension loading. BUG=skia: Review URL: https://codereview.chromium.org/1185573003
This commit is contained in:
parent
8ed08e54f4
commit
202c4c75fb
@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
#include "GrGLConfig.h"
|
#include "GrGLConfig.h"
|
||||||
|
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,210 +64,352 @@ typedef signed long int GrGLintptr;
|
|||||||
typedef signed long int GrGLsizeiptr;
|
typedef signed long int GrGLsizeiptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef void (GR_GL_FUNCTION_TYPE* GRGLDEBUGPROC)(GrGLenum source,
|
||||||
|
GrGLenum type,
|
||||||
|
GrGLuint id,
|
||||||
|
GrGLenum severity,
|
||||||
|
GrGLsizei length,
|
||||||
|
const GrGLchar* message,
|
||||||
|
const void* userParam);
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
extern "C" {
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLActiveTextureProc)(GrGLenum texture);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLActiveTextureProc)(GrGLenum texture);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLAttachShaderProc)(GrGLuint program, GrGLuint shader);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLAttachShaderProc)(GrGLuint program, GrGLuint shader);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBeginQueryProc)(GrGLenum target, GrGLuint id);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBeginQueryProc)(GrGLenum target, GrGLuint id);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindAttribLocationProc)(GrGLuint program, GrGLuint index, const char* name);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindAttribLocationProc)(GrGLuint program, GrGLuint index, const char* name);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindBufferProc)(GrGLenum target, GrGLuint buffer);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindBufferProc)(GrGLenum target, GrGLuint buffer);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFramebufferProc)(GrGLenum target, GrGLuint framebuffer);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFramebufferProc)(GrGLenum target, GrGLuint framebuffer);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindRenderbufferProc)(GrGLenum target, GrGLuint renderbuffer);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindRenderbufferProc)(GrGLenum target, GrGLuint renderbuffer);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindTextureProc)(GrGLenum target, GrGLuint texture);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindTextureProc)(GrGLenum target, GrGLuint texture);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFragDataLocationProc)(GrGLuint program, GrGLuint colorNumber, const GrGLchar* name);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFragDataLocationProc)(GrGLuint program, GrGLuint colorNumber, const GrGLchar* name);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFragDataLocationIndexedProc)(GrGLuint program, GrGLuint colorNumber, GrGLuint index, const GrGLchar * name);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFragDataLocationIndexedProc)(GrGLuint program, GrGLuint colorNumber, GrGLuint index, const GrGLchar * name);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindVertexArrayProc)(GrGLuint array);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindVertexArrayProc)(GrGLuint array);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendBarrierProc)();
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendBarrierProc)();
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendColorProc)(GrGLclampf red, GrGLclampf green, GrGLclampf blue, GrGLclampf alpha);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendColorProc)(GrGLclampf red, GrGLclampf green, GrGLclampf blue, GrGLclampf alpha);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendEquationProc)(GrGLenum mode);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendEquationProc)(GrGLenum mode);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendFuncProc)(GrGLenum sfactor, GrGLenum dfactor);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlendFuncProc)(GrGLenum sfactor, GrGLenum dfactor);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlitFramebufferProc)(GrGLint srcX0, GrGLint srcY0, GrGLint srcX1, GrGLint srcY1, GrGLint dstX0, GrGLint dstY0, GrGLint dstX1, GrGLint dstY1, GrGLbitfield mask, GrGLenum filter);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBlitFramebufferProc)(GrGLint srcX0, GrGLint srcY0, GrGLint srcX1, GrGLint srcY1, GrGLint dstX0, GrGLint dstY0, GrGLint dstX1, GrGLint dstY1, GrGLbitfield mask, GrGLenum filter);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBufferDataProc)(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* data, GrGLenum usage);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBufferDataProc)(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* data, GrGLenum usage);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBufferSubDataProc)(GrGLenum target, GrGLintptr offset, GrGLsizeiptr size, const GrGLvoid* data);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBufferSubDataProc)(GrGLenum target, GrGLintptr offset, GrGLsizeiptr size, const GrGLvoid* data);
|
typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLCheckFramebufferStatusProc)(GrGLenum target);
|
||||||
typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLCheckFramebufferStatusProc)(GrGLenum target);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearProc)(GrGLbitfield mask);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearProc)(GrGLbitfield mask);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearColorProc)(GrGLclampf red, GrGLclampf green, GrGLclampf blue, GrGLclampf alpha);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearColorProc)(GrGLclampf red, GrGLclampf green, GrGLclampf blue, GrGLclampf alpha);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearStencilProc)(GrGLint s);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClearStencilProc)(GrGLint s);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClientActiveTextureProc)(GrGLenum texture);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClientActiveTextureProc)(GrGLenum texture);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLColorMaskProc)(GrGLboolean red, GrGLboolean green, GrGLboolean blue, GrGLboolean alpha);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLColorMaskProc)(GrGLboolean red, GrGLboolean green, GrGLboolean blue, GrGLboolean alpha);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompileShaderProc)(GrGLuint shader);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompileShaderProc)(GrGLuint shader);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTexImage2DProc)(GrGLenum target, GrGLint level, GrGLenum internalformat, GrGLsizei width, GrGLsizei height, GrGLint border, GrGLsizei imageSize, const GrGLvoid* data);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTexImage2DProc)(GrGLenum target, GrGLint level, GrGLenum internalformat, GrGLsizei width, GrGLsizei height, GrGLint border, GrGLsizei imageSize, const GrGLvoid* data);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLsizei imageSize, const GrGLvoid* data);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLsizei imageSize, const GrGLvoid* data);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTextureCHROMIUMProc)(GrGLenum target, GrGLenum src, GrGLenum dst, GrGLint level, GrGLint format, GrGLenum type);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTextureCHROMIUMProc)(GrGLenum target, GrGLenum src, GrGLenum dst, GrGLint level, GrGLint format, GrGLenum type);
|
typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLCreateProgramProc)(void);
|
||||||
typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLCreateProgramProc)(void);
|
typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLCreateShaderProc)(GrGLenum type);
|
||||||
typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLCreateShaderProc)(GrGLenum type);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCullFaceProc)(GrGLenum mode);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCullFaceProc)(GrGLenum mode);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteBuffersProc)(GrGLsizei n, const GrGLuint* buffers);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteBuffersProc)(GrGLsizei n, const GrGLuint* buffers);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteFramebuffersProc)(GrGLsizei n, const GrGLuint *framebuffers);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteFramebuffersProc)(GrGLsizei n, const GrGLuint *framebuffers);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteProgramProc)(GrGLuint program);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteProgramProc)(GrGLuint program);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteQueriesProc)(GrGLsizei n, const GrGLuint *ids);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteQueriesProc)(GrGLsizei n, const GrGLuint *ids);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteRenderbuffersProc)(GrGLsizei n, const GrGLuint *renderbuffers);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteRenderbuffersProc)(GrGLsizei n, const GrGLuint *renderbuffers);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteShaderProc)(GrGLuint shader);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteShaderProc)(GrGLuint shader);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteTexturesProc)(GrGLsizei n, const GrGLuint* textures);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteTexturesProc)(GrGLsizei n, const GrGLuint* textures);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteVertexArraysProc)(GrGLsizei n, const GrGLuint *arrays);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteVertexArraysProc)(GrGLsizei n, const GrGLuint *arrays);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDepthMaskProc)(GrGLboolean flag);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDepthMaskProc)(GrGLboolean flag);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDisableProc)(GrGLenum cap);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDisableProc)(GrGLenum cap);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDisableVertexAttribArrayProc)(GrGLuint index);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDisableVertexAttribArrayProc)(GrGLuint index);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawArraysProc)(GrGLenum mode, GrGLint first, GrGLsizei count);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawArraysProc)(GrGLenum mode, GrGLint first, GrGLsizei count);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawBufferProc)(GrGLenum mode);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawBufferProc)(GrGLenum mode);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawBuffersProc)(GrGLsizei n, const GrGLenum* bufs);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawBuffersProc)(GrGLsizei n, const GrGLenum* bufs);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawElementsProc)(GrGLenum mode, GrGLsizei count, GrGLenum type, const GrGLvoid* indices);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawElementsProc)(GrGLenum mode, GrGLsizei count, GrGLenum type, const GrGLvoid* indices);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEnableProc)(GrGLenum cap);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEnableProc)(GrGLenum cap);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEnableVertexAttribArrayProc)(GrGLuint index);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEnableVertexAttribArrayProc)(GrGLuint index);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEndQueryProc)(GrGLenum target);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEndQueryProc)(GrGLenum target);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFinishProc)();
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFinishProc)();
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFlushProc)();
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFlushProc)();
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFlushMappedBufferRangeProc)(GrGLenum target, GrGLintptr offset, GrGLsizeiptr length);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFlushMappedBufferRangeProc)(GrGLenum target, GrGLintptr offset, GrGLsizeiptr length);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferRenderbufferProc)(GrGLenum target, GrGLenum attachment, GrGLenum renderbuffertarget, GrGLuint renderbuffer);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferRenderbufferProc)(GrGLenum target, GrGLenum attachment, GrGLenum renderbuffertarget, GrGLuint renderbuffer);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferTexture2DProc)(GrGLenum target, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferTexture2DProc)(GrGLenum target, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferTexture2DMultisampleProc)(GrGLenum target, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level, GrGLsizei samples);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferTexture2DMultisampleProc)(GrGLenum target, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level, GrGLsizei samples);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFrontFaceProc)(GrGLenum mode);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFrontFaceProc)(GrGLenum mode);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenBuffersProc)(GrGLsizei n, GrGLuint* buffers);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenBuffersProc)(GrGLsizei n, GrGLuint* buffers);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenFramebuffersProc)(GrGLsizei n, GrGLuint *framebuffers);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenFramebuffersProc)(GrGLsizei n, GrGLuint *framebuffers);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenerateMipmapProc)(GrGLenum target);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenerateMipmapProc)(GrGLenum target);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenQueriesProc)(GrGLsizei n, GrGLuint *ids);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenQueriesProc)(GrGLsizei n, GrGLuint *ids);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenRenderbuffersProc)(GrGLsizei n, GrGLuint *renderbuffers);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenRenderbuffersProc)(GrGLsizei n, GrGLuint *renderbuffers);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenTexturesProc)(GrGLsizei n, GrGLuint* textures);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenTexturesProc)(GrGLsizei n, GrGLuint* textures);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenVertexArraysProc)(GrGLsizei n, GrGLuint *arrays);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenVertexArraysProc)(GrGLsizei n, GrGLuint *arrays);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetBufferParameterivProc)(GrGLenum target, GrGLenum pname, GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetBufferParameterivProc)(GrGLenum target, GrGLenum pname, GrGLint* params);
|
typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLGetErrorProc)();
|
||||||
typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLGetErrorProc)();
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetFramebufferAttachmentParameterivProc)(GrGLenum target, GrGLenum attachment, GrGLenum pname, GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetFramebufferAttachmentParameterivProc)(GrGLenum target, GrGLenum attachment, GrGLenum pname, GrGLint* params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetIntegervProc)(GrGLenum pname, GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetIntegervProc)(GrGLenum pname, GrGLint* params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetProgramInfoLogProc)(GrGLuint program, GrGLsizei bufsize, GrGLsizei* length, char* infolog);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetProgramInfoLogProc)(GrGLuint program, GrGLsizei bufsize, GrGLsizei* length, char* infolog);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetProgramivProc)(GrGLuint program, GrGLenum pname, GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetProgramivProc)(GrGLuint program, GrGLenum pname, GrGLint* params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryivProc)(GrGLenum GLtarget, GrGLenum pname, GrGLint *params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryivProc)(GrGLenum GLtarget, GrGLenum pname, GrGLint *params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjecti64vProc)(GrGLuint id, GrGLenum pname, GrGLint64 *params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjecti64vProc)(GrGLuint id, GrGLenum pname, GrGLint64 *params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjectivProc)(GrGLuint id, GrGLenum pname, GrGLint *params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjectivProc)(GrGLuint id, GrGLenum pname, GrGLint *params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjectui64vProc)(GrGLuint id, GrGLenum pname, GrGLuint64 *params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjectui64vProc)(GrGLuint id, GrGLenum pname, GrGLuint64 *params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjectuivProc)(GrGLuint id, GrGLenum pname, GrGLuint *params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetQueryObjectuivProc)(GrGLuint id, GrGLenum pname, GrGLuint *params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetRenderbufferParameterivProc)(GrGLenum target, GrGLenum pname, GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetRenderbufferParameterivProc)(GrGLenum target, GrGLenum pname, GrGLint* params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetShaderInfoLogProc)(GrGLuint shader, GrGLsizei bufsize, GrGLsizei* length, char* infolog);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetShaderInfoLogProc)(GrGLuint shader, GrGLsizei bufsize, GrGLsizei* length, char* infolog);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetShaderivProc)(GrGLuint shader, GrGLenum pname, GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetShaderivProc)(GrGLuint shader, GrGLenum pname, GrGLint* params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetShaderPrecisionFormatProc)(GrGLenum shadertype, GrGLenum precisiontype, GrGLint *range, GrGLint *precision);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetShaderPrecisionFormatProc)(GrGLenum shadertype, GrGLenum precisiontype, GrGLint *range, GrGLint *precision);
|
typedef const GrGLubyte* (GR_GL_FUNCTION_TYPE* GrGLGetStringProc)(GrGLenum name);
|
||||||
typedef const GrGLubyte* (GR_GL_FUNCTION_TYPE* GrGLGetStringProc)(GrGLenum name);
|
typedef const GrGLubyte* (GR_GL_FUNCTION_TYPE* GrGLGetStringiProc)(GrGLenum name, GrGLuint index);
|
||||||
typedef const GrGLubyte* (GR_GL_FUNCTION_TYPE* GrGLGetStringiProc)(GrGLenum name, GrGLuint index);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetTexLevelParameterivProc)(GrGLenum target, GrGLint level, GrGLenum pname, GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetTexLevelParameterivProc)(GrGLenum target, GrGLint level, GrGLenum pname, GrGLint* params);
|
typedef GrGLint (GR_GL_FUNCTION_TYPE* GrGLGetUniformLocationProc)(GrGLuint program, const char* name);
|
||||||
typedef GrGLint (GR_GL_FUNCTION_TYPE* GrGLGetUniformLocationProc)(GrGLuint program, const char* name);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInsertEventMarkerProc)(GrGLsizei length, const char* marker);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInsertEventMarkerProc)(GrGLsizei length, const char* marker);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateBufferDataProc)(GrGLuint buffer);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateBufferDataProc)(GrGLuint buffer);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateBufferSubDataProc)(GrGLuint buffer, GrGLintptr offset, GrGLsizeiptr length);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateBufferSubDataProc)(GrGLuint buffer, GrGLintptr offset, GrGLsizeiptr length);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateFramebufferProc)(GrGLenum target, GrGLsizei numAttachments, const GrGLenum *attachments);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateFramebufferProc)(GrGLenum target, GrGLsizei numAttachments, const GrGLenum *attachments);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateSubFramebufferProc)(GrGLenum target, GrGLsizei numAttachments, const GrGLenum *attachments, GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateSubFramebufferProc)(GrGLenum target, GrGLsizei numAttachments, const GrGLenum *attachments, GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateTexImageProc)(GrGLuint texture, GrGLint level);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateTexImageProc)(GrGLuint texture, GrGLint level);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateTexSubImageProc)(GrGLuint texture, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint zoffset, GrGLsizei width, GrGLsizei height, GrGLsizei depth);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateTexSubImageProc)(GrGLuint texture, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint zoffset, GrGLsizei width, GrGLsizei height, GrGLsizei depth);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLLineWidthProc)(GrGLfloat width);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLLineWidthProc)(GrGLfloat width);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLLinkProgramProc)(GrGLuint program);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLLinkProgramProc)(GrGLuint program);
|
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapBufferProc)(GrGLenum target, GrGLenum access);
|
||||||
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapBufferProc)(GrGLenum target, GrGLenum access);
|
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapBufferRangeProc)(GrGLenum target, GrGLintptr offset, GrGLsizeiptr length, GrGLbitfield access);
|
||||||
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapBufferRangeProc)(GrGLenum target, GrGLintptr offset, GrGLsizeiptr length, GrGLbitfield access);
|
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapBufferSubDataProc)(GrGLuint target, GrGLintptr offset, GrGLsizeiptr size, GrGLenum access);
|
||||||
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapBufferSubDataProc)(GrGLuint target, GrGLintptr offset, GrGLsizeiptr size, GrGLenum access);
|
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, GrGLenum access);
|
||||||
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, GrGLenum access);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPixelStoreiProc)(GrGLenum pname, GrGLint param);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPixelStoreiProc)(GrGLenum pname, GrGLint param);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPopGroupMarkerProc)();
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPopGroupMarkerProc)();
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPushGroupMarkerProc)(GrGLsizei length, const char* marker);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPushGroupMarkerProc)(GrGLsizei length, const char* marker);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLQueryCounterProc)(GrGLuint id, GrGLenum target);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLQueryCounterProc)(GrGLuint id, GrGLenum target);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLRasterSamplesProc)(GrGLuint samples, GrGLboolean fixedsamplelocations);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLRasterSamplesProc)(GrGLuint samples, GrGLboolean fixedsamplelocations);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLReadBufferProc)(GrGLenum src);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLReadBufferProc)(GrGLenum src);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLReadPixelsProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, GrGLvoid* pixels);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLReadPixelsProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, GrGLvoid* pixels);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLRenderbufferStorageProc)(GrGLenum target, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLRenderbufferStorageProc)(GrGLenum target, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLRenderbufferStorageMultisampleProc)(GrGLenum target, GrGLsizei samples, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLRenderbufferStorageMultisampleProc)(GrGLenum target, GrGLsizei samples, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLResolveMultisampleFramebufferProc)();
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLResolveMultisampleFramebufferProc)();
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLScissorProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLScissorProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindUniformLocation)(GrGLuint program, GrGLint location, const char* name);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindUniformLocation)(GrGLuint program, GrGLint location, const char* name);
|
|
||||||
|
|
||||||
#if GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE
|
#if GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLShaderSourceProc)(GrGLuint shader, GrGLsizei count, const char* const * str, const GrGLint* length);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLShaderSourceProc)(GrGLuint shader, GrGLsizei count, const char* const * str, const GrGLint* length);
|
||||||
#else
|
#else
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLShaderSourceProc)(GrGLuint shader, GrGLsizei count, const char** str, const GrGLint* length);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLShaderSourceProc)(GrGLuint shader, GrGLsizei count, const char** str, const GrGLint* length);
|
||||||
#endif
|
#endif
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFuncProc)(GrGLenum func, GrGLint ref, GrGLuint mask);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFuncProc)(GrGLenum func, GrGLint ref, GrGLuint mask);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFuncSeparateProc)(GrGLenum face, GrGLenum func, GrGLint ref, GrGLuint mask);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFuncSeparateProc)(GrGLenum face, GrGLenum func, GrGLint ref, GrGLuint mask);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilMaskProc)(GrGLuint mask);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilMaskProc)(GrGLuint mask);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilMaskSeparateProc)(GrGLenum face, GrGLuint mask);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilMaskSeparateProc)(GrGLenum face, GrGLuint mask);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilOpProc)(GrGLenum fail, GrGLenum zfail, GrGLenum zpass);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilOpProc)(GrGLenum fail, GrGLenum zfail, GrGLenum zpass);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilOpSeparateProc)(GrGLenum face, GrGLenum fail, GrGLenum zfail, GrGLenum zpass);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilOpSeparateProc)(GrGLenum face, GrGLenum fail, GrGLenum zfail, GrGLenum zpass);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexImage2DProc)(GrGLenum target, GrGLint level, GrGLint internalformat, GrGLsizei width, GrGLsizei height, GrGLint border, GrGLenum format, GrGLenum type, const GrGLvoid* pixels);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexImage2DProc)(GrGLenum target, GrGLint level, GrGLint internalformat, GrGLsizei width, GrGLsizei height, GrGLint border, GrGLenum format, GrGLenum type, const GrGLvoid* pixels);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexParameteriProc)(GrGLenum target, GrGLenum pname, GrGLint param);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexParameteriProc)(GrGLenum target, GrGLenum pname, GrGLint param);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexParameterivProc)(GrGLenum target, GrGLenum pname, const GrGLint* params);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexParameterivProc)(GrGLenum target, GrGLenum pname, const GrGLint* params);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexStorage2DProc)(GrGLenum target, GrGLsizei levels, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexStorage2DProc)(GrGLenum target, GrGLsizei levels, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDiscardFramebufferProc)(GrGLenum target, GrGLsizei numAttachments, const GrGLenum* attachments);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDiscardFramebufferProc)(GrGLenum target, GrGLsizei numAttachments, const GrGLenum* attachments);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, const GrGLvoid* pixels);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTexSubImage2DProc)(GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, const GrGLvoid* pixels);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureBarrierProc)();
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureBarrierProc)();
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1fProc)(GrGLint location, GrGLfloat v0);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1fProc)(GrGLint location, GrGLfloat v0);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1iProc)(GrGLint location, GrGLint v0);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1iProc)(GrGLint location, GrGLint v0);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform1ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2fProc)(GrGLint location, GrGLfloat v0, GrGLfloat v1);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2fProc)(GrGLint location, GrGLfloat v0, GrGLfloat v1);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2iProc)(GrGLint location, GrGLint v0, GrGLint v1);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2iProc)(GrGLint location, GrGLint v0, GrGLint v1);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform2ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3fProc)(GrGLint location, GrGLfloat v0, GrGLfloat v1, GrGLfloat v2);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3fProc)(GrGLint location, GrGLfloat v0, GrGLfloat v1, GrGLfloat v2);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3iProc)(GrGLint location, GrGLint v0, GrGLint v1, GrGLint v2);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3iProc)(GrGLint location, GrGLint v0, GrGLint v1, GrGLint v2);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform3ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4fProc)(GrGLint location, GrGLfloat v0, GrGLfloat v1, GrGLfloat v2, GrGLfloat v3);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4fProc)(GrGLint location, GrGLfloat v0, GrGLfloat v1, GrGLfloat v2, GrGLfloat v3);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4iProc)(GrGLint location, GrGLint v0, GrGLint v1, GrGLint v2, GrGLint v3);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4iProc)(GrGLint location, GrGLint v0, GrGLint v1, GrGLint v2, GrGLint v3);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4fvProc)(GrGLint location, GrGLsizei count, const GrGLfloat* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniform4ivProc)(GrGLint location, GrGLsizei count, const GrGLint* v);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformMatrix2fvProc)(GrGLint location, GrGLsizei count, GrGLboolean transpose, const GrGLfloat* value);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformMatrix2fvProc)(GrGLint location, GrGLsizei count, GrGLboolean transpose, const GrGLfloat* value);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformMatrix3fvProc)(GrGLint location, GrGLsizei count, GrGLboolean transpose, const GrGLfloat* value);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformMatrix3fvProc)(GrGLint location, GrGLsizei count, GrGLboolean transpose, const GrGLfloat* value);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformMatrix4fvProc)(GrGLint location, GrGLsizei count, GrGLboolean transpose, const GrGLfloat* value);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformMatrix4fvProc)(GrGLint location, GrGLsizei count, GrGLboolean transpose, const GrGLfloat* value);
|
||||||
typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLUnmapBufferProc)(GrGLenum target);
|
typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLUnmapBufferProc)(GrGLenum target);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapBufferSubDataProc)(const GrGLvoid* mem);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapBufferSubDataProc)(const GrGLvoid* mem);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapTexSubImage2DProc)(const GrGLvoid* mem);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapTexSubImage2DProc)(const GrGLvoid* mem);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUseProgramProc)(GrGLuint program);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUseProgramProc)(GrGLuint program);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib1fProc)(GrGLuint indx, const GrGLfloat value);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib1fProc)(GrGLuint indx, const GrGLfloat value);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib2fvProc)(GrGLuint indx, const GrGLfloat* values);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib2fvProc)(GrGLuint indx, const GrGLfloat* values);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib3fvProc)(GrGLuint indx, const GrGLfloat* values);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib3fvProc)(GrGLuint indx, const GrGLfloat* values);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib4fvProc)(GrGLuint indx, const GrGLfloat* values);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib4fvProc)(GrGLuint indx, const GrGLfloat* values);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttribPointerProc)(GrGLuint indx, GrGLint size, GrGLenum type, GrGLboolean normalized, GrGLsizei stride, const GrGLvoid* ptr);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttribPointerProc)(GrGLuint indx, GrGLint size, GrGLenum type, GrGLboolean normalized, GrGLsizei stride, const GrGLvoid* ptr);
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLViewportProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLViewportProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
||||||
|
|
||||||
|
/* GL_NV_path_rendering */
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadfProc)(GrGLenum matrixMode, const GrGLfloat* m);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadIdentityProc)(GrGLenum);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCommandsProc)(GrGLuint path, GrGLsizei numCommands, const GrGLubyte *commands, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCoordsProc)(GrGLuint path, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathSubCoordsProc)(GrGLuint path, GrGLsizei coordStart, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStringProc)(GrGLuint path, GrGLenum format, GrGLsizei length, const GrGLvoid *pathString);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphsProc)(GrGLuint firstPathName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle, GrGLsizei numGlyphs, GrGLenum type, const GrGLvoid *charcodes, GrGLenum handleMissingGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphRangeProc)(GrGLuint firstPathName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle, GrGLuint firstGlyph, GrGLsizei numGlyphs, GrGLenum handleMissingGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLWeightPathsProc)(GrGLuint resultPath, GrGLsizei numPaths, const GrGLuint paths[], const GrGLfloat weights[]);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyPathProc)(GrGLuint resultPath, GrGLuint srcPath);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInterpolatePathsProc)(GrGLuint resultPath, GrGLuint pathA, GrGLuint pathB, GrGLfloat weight);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTransformPathProc)(GrGLuint resultPath, GrGLuint srcPath, GrGLenum transformType, const GrGLfloat *transformValues);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameteriProc)(GrGLuint path, GrGLenum pname, GrGLint value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameterfProc)(GrGLuint path, GrGLenum pname, GrGLfloat value);
|
||||||
|
typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLGenPathsProc)(GrGLsizei range);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeletePathsProc)(GrGLuint path, GrGLsizei range);
|
||||||
|
typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPathProc)(GrGLuint path);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStencilFuncProc)(GrGLenum func, GrGLint ref, GrGLuint mask);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathProc)(GrGLuint path, GrGLenum fillMode, GrGLuint mask);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathProc)(GrGLuint path, GrGLint reference, GrGLuint mask);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum fillMode, GrGLuint mask, GrGLenum transformType, const GrGLfloat *transformValues);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLint reference, GrGLuint mask, GrGLenum transformType, const GrGLfloat *transformValues);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathTexGenProc)(GrGLenum texCoordSet, GrGLenum genMode, GrGLint components, const GrGLfloat *coeffs);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathProc)(GrGLuint path, GrGLenum coverMode);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathProc)(GrGLuint name, GrGLenum coverMode);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat* transformValues);
|
||||||
|
// NV_path_rendering v1.2
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathProc)(GrGLuint path, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathProc)(GrGLuint path, GrGLint reference, GrGLuint mask, GrGLenum coverMode);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLint reference, GrGLuint mask, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues);
|
||||||
|
// NV_path_rendering v1.3
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramPathFragmentInputGenProc)(GrGLuint program, GrGLint location, GrGLenum genMode, GrGLint components,const GrGLfloat *coeffs);
|
||||||
|
typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLPathMemoryGlyphIndexArrayProc)(GrGLuint firstPathName, GrGLenum fontTarget, GrGLsizeiptr fontSize, const GrGLvoid *fontData, GrGLsizei faceIndex, GrGLuint firstGlyphIndex, GrGLsizei numGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale);
|
||||||
|
|
||||||
|
/* ARB_program_interface_query */
|
||||||
|
typedef GrGLint (GR_GL_FUNCTION_TYPE* GrGLGetProgramResourceLocationProc)(GrGLuint program, GrGLenum programInterface, const GrGLchar *name);
|
||||||
|
|
||||||
|
/* GL_NV_framebuffer_mixed_samples */
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverageModulationProc)(GrGLenum components);
|
||||||
|
|
||||||
|
/* ARB_draw_instanced */
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawArraysInstancedProc)(GrGLenum mode, GrGLint first, GrGLsizei count, GrGLsizei primcount);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDrawElementsInstancedProc)(GrGLenum mode, GrGLsizei count, GrGLenum type, const GrGLvoid *indices, GrGLsizei primcount);
|
||||||
|
|
||||||
|
/* ARB_instanced_arrays */
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttribDivisorProc)(GrGLuint index, GrGLuint divisor);
|
||||||
|
// EXT_direct_state_access
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayVertexAttribDivisorProc)(GrGLuint vaobj, GrGLuint index, GrGLuint divisor);
|
||||||
|
|
||||||
|
/* NV_bindless_texture */
|
||||||
|
typedef GrGLuint64 (GR_GL_FUNCTION_TYPE* GrGLGetTextureHandleProc)(GrGLuint texture);
|
||||||
|
typedef GrGLuint64 (GR_GL_FUNCTION_TYPE* GrGLGetTextureSamplerHandleProc)(GrGLuint texture, GrGLuint sampler);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMakeTextureHandleResidentProc)(GrGLuint64 handle);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMakeTextureHandleNonResidentProc)(GrGLuint64 handle);
|
||||||
|
typedef GrGLuint64 (GR_GL_FUNCTION_TYPE* GrGLGetImageHandleProc)(GrGLuint texture, GrGLint level, GrGLboolean layered, GrGLint layer, GrGLint format);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMakeImageHandleResidentProc)(GrGLuint64 handle, GrGLenum access);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMakeImageHandleNonResidentProc)(GrGLuint64 handle);
|
||||||
|
typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsTextureHandleResidentProc)(GrGLuint64 handle);
|
||||||
|
typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsImageHandleResidentProc)(GrGLuint64 handle);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformHandleui64Proc)(GrGLint location, GrGLuint64 v0);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUniformHandleui64vProc)(GrGLint location, GrGLsizei count, const GrGLuint64 *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformHandleui64Proc)(GrGLuint program, GrGLint location, GrGLuint64 v0);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformHandleui64vProc)(GrGLuint program, GrGLint location, GrGLsizei count, const GrGLuint64 *value);
|
||||||
|
|
||||||
|
/* EXT_direct_state_access */
|
||||||
|
// (In the future some of these methods may be omitted)
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureParameteriProc)(GrGLuint texture, GrGLenum target, GrGLenum pname, GrGLint param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureParameterivProc)(GrGLuint texture, GrGLenum target, GrGLenum pname, const GrGLint *param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureParameterfProc)(GrGLuint texture, GrGLenum target, GrGLenum pname, float param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureParameterfvProc)(GrGLuint texture, GrGLenum target, GrGLenum pname, const float *param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureImage1DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint GrGLinternalformat, GrGLsizei width, GrGLint border, GrGLenum format, GrGLenum type, const GrGLvoid *pixels);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureImage2DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint GrGLinternalformat, GrGLsizei width, GrGLsizei height, GrGLint border, GrGLenum format, GrGLenum type, const GrGLvoid *pixels);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureSubImage1DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLsizei width, GrGLenum format, GrGLenum type, const GrGLvoid *pixels);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureSubImage2DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, const GrGLvoid *pixels);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTextureImage1DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum GrGLinternalformat, GrGLint x, GrGLint y, GrGLsizei width, GrGLint border);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTextureImage2DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum GrGLinternalformat, GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height, GrGLint border);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTextureSubImage1DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint x, GrGLint y, GrGLsizei width);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTextureSubImage2DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetTextureImageProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum format, GrGLenum type, GrGLvoid *pixels);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetTextureParameterfvProc)(GrGLuint texture, GrGLenum target, GrGLenum pname, float *params);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetTextureParameterivProc)(GrGLuint texture, GrGLenum target, GrGLenum pname, GrGLint *params);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetTextureLevelParameterfvProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum pname, float *params);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetTextureLevelParameterivProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum pname, GrGLint *params);
|
||||||
|
// OpenGL 1.2
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureImage3DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint GrGLinternalformat, GrGLsizei width, GrGLsizei height, GrGLsizei depth, GrGLint border, GrGLenum format, GrGLenum type, const GrGLvoid *pixels);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureSubImage3DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint zoffset, GrGLsizei width, GrGLsizei height, GrGLsizei depth, GrGLenum format, GrGLenum type, const GrGLvoid *pixels);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyTextureSubImage3DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint zoffset, GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTextureImage3DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum GrGLinternalformat, GrGLsizei width, GrGLsizei height, GrGLsizei depth, GrGLint border, GrGLsizei imageSize, const GrGLvoid *data);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTextureImage2DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum GrGLinternalformat, GrGLsizei width, GrGLsizei height, GrGLint border, GrGLsizei imageSize, const GrGLvoid *data);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTextureImage1DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLenum GrGLinternalformat, GrGLsizei width, GrGLint border, GrGLsizei imageSize, const GrGLvoid *data);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTextureSubImage3DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint zoffset, GrGLsizei width, GrGLsizei height, GrGLsizei depth, GrGLenum format, GrGLsizei imageSize, const GrGLvoid *data);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTextureSubImage2DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLsizei imageSize, const GrGLvoid *data);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCompressedTextureSubImage1DProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLint xoffset, GrGLsizei width, GrGLenum format, GrGLsizei imageSize, const GrGLvoid *data);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetCompressedTextureImageProc)(GrGLuint texture, GrGLenum target, GrGLint level, GrGLvoid *img);
|
||||||
|
// OpenGL 1.5
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedBufferDataProc)(GrGLuint buffer, GrGLsizeiptr size, const GrGLvoid *data, GrGLenum usage);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedBufferSubDataProc)(GrGLuint buffer, GrGLintptr offset, GrGLsizeiptr size, const GrGLvoid *data);
|
||||||
|
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapNamedBufferProc)(GrGLuint buffer, GrGLenum access);
|
||||||
|
typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLUnmapNamedBufferProc)(GrGLuint buffer);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetNamedBufferParameterivProc)(GrGLuint buffer, GrGLenum pname, GrGLint *params);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetNamedBufferPointervProc)(GrGLuint buffer, GrGLenum pname, GrGLvoid* *params);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetNamedBufferSubDataProc)(GrGLuint buffer, GrGLintptr offset, GrGLsizeiptr size, GrGLvoid *data);
|
||||||
|
// OpenGL 2.0
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform1fProc)(GrGLuint program, GrGLint location, float v0);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform2fProc)(GrGLuint program, GrGLint location, float v0, float v1);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform3fProc)(GrGLuint program, GrGLint location, float v0, float v1, float v2);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform4fProc)(GrGLuint program, GrGLint location, float v0, float v1, float v2, float v3);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform1iProc)(GrGLuint program, GrGLint location, GrGLint v0);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform2iProc)(GrGLuint program, GrGLint location, GrGLint v0, GrGLint v1);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform3iProc)(GrGLuint program, GrGLint location, GrGLint v0, GrGLint v1, GrGLint v2);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform4iProc)(GrGLuint program, GrGLint location, GrGLint v0, GrGLint v1, GrGLint v2, GrGLint v3);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform1fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform2fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform3fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform4fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform1ivProc)(GrGLuint program, GrGLint location, GrGLsizei count, const GrGLint *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform2ivProc)(GrGLuint program, GrGLint location, GrGLsizei count, const GrGLint *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform3ivProc)(GrGLuint program, GrGLint location, GrGLsizei count, const GrGLint *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniform4ivProc)(GrGLuint program, GrGLint location, GrGLsizei count, const GrGLint *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix2fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix3fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix4fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
// OpenGL 2.1
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix2x3fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix3x2fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix2x4fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix4x2fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix3x4fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramUniformMatrix4x3fvProc)(GrGLuint program, GrGLint location, GrGLsizei count, GrGLboolean transpose, const float *value);
|
||||||
|
// OpenGL 3.0
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedRenderbufferStorageProc)(GrGLuint renderbuffer, GrGLenum GrGLinternalformat, GrGLsizei width, GrGLsizei height);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetNamedRenderbufferParameterivProc)(GrGLuint renderbuffer, GrGLenum pname, GrGLint *params);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedRenderbufferStorageMultisampleProc)(GrGLuint renderbuffer, GrGLsizei samples, GrGLenum GrGLinternalformat, GrGLsizei width, GrGLsizei height);
|
||||||
|
typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLCheckNamedFramebufferStatusProc)(GrGLuint framebuffer, GrGLenum target);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedFramebufferTexture1DProc)(GrGLuint framebuffer, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedFramebufferTexture2DProc)(GrGLuint framebuffer, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedFramebufferTexture3DProc)(GrGLuint framebuffer, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level, GrGLint zoffset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedFramebufferRenderbufferProc)(GrGLuint framebuffer, GrGLenum attachment, GrGLenum renderbuffertarget, GrGLuint renderbuffer);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetNamedFramebufferAttachmentParameterivProc)(GrGLuint framebuffer, GrGLenum attachment, GrGLenum pname, GrGLint *params);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGenerateTextureMipmapProc)(GrGLuint texture, GrGLenum target);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferDrawBufferProc)(GrGLuint framebuffer, GrGLenum mode);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferDrawBuffersProc)(GrGLuint framebuffer, GrGLsizei n, const GrGLenum *bufs);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferReadBufferProc)(GrGLuint framebuffer, GrGLenum mode);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetFramebufferParameterivProc)(GrGLuint framebuffer, GrGLenum pname, GrGLint *param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLNamedCopyBufferSubDataProc)(GrGLuint readBuffer, GrGLuint writeBuffer, GrGLintptr readOffset, GrGLintptr writeOffset, GrGLsizeiptr size);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayVertexOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLint size, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayColorOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLint size, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayEdgeFlagOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayIndexOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayNormalOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayTexCoordOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLint size, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayMultiTexCoordOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLenum texunit, GrGLint size, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayFogCoordOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArraySecondaryColorOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLint size, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayVertexAttribOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLuint index, GrGLint size, GrGLenum type, GrGLboolean normalized, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexArrayVertexAttribIOffsetProc)(GrGLuint vaobj, GrGLuint buffer, GrGLuint index, GrGLint size, GrGLenum type, GrGLsizei stride, GrGLintptr offset);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEnableVertexArrayProc)(GrGLuint vaobj, GrGLenum array);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDisableVertexArrayProc)(GrGLuint vaobj, GrGLenum array);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLEnableVertexArrayAttribProc)(GrGLuint vaobj, GrGLuint index);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDisableVertexArrayAttribProc)(GrGLuint vaobj, GrGLuint index);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetVertexArrayIntegervProc)(GrGLuint vaobj, GrGLenum pname, GrGLint *param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetVertexArrayPointervProc)(GrGLuint vaobj, GrGLenum pname, GrGLvoid **param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetVertexArrayIntegeri_vProc)(GrGLuint vaobj, GrGLuint index, GrGLenum pname, GrGLint *param);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetVertexArrayPointeri_vProc)(GrGLuint vaobj, GrGLuint index, GrGLenum pname, GrGLvoid **param);
|
||||||
|
typedef GrGLvoid* (GR_GL_FUNCTION_TYPE* GrGLMapNamedBufferRangeProc)(GrGLuint buffer, GrGLintptr offset, GrGLsizeiptr length, GrGLbitfield access);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFlushMappedNamedBufferRangeProc)(GrGLuint buffer, GrGLintptr offset, GrGLsizeiptr length);
|
||||||
|
|
||||||
|
/* KHR_debug */
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDebugMessageControlProc)(GrGLenum source, GrGLenum type, GrGLenum severity, GrGLsizei count, const GrGLuint* ids, GrGLboolean enabled);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDebugMessageInsertProc)(GrGLenum source, GrGLenum type, GrGLuint id, GrGLenum severity, GrGLsizei length, const GrGLchar* buf);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDebugMessageCallbackProc)(GRGLDEBUGPROC callback, const GrGLvoid* userParam);
|
||||||
|
typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLGetDebugMessageLogProc)(GrGLuint count, GrGLsizei bufSize, GrGLenum* sources, GrGLenum* types, GrGLuint* ids, GrGLenum* severities, GrGLsizei* lengths, GrGLchar* messageLog);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPushDebugGroupProc)(GrGLenum source, GrGLuint id, GrGLsizei length, const GrGLchar * message);
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPopDebugGroupProc)();
|
||||||
|
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLObjectLabelProc)(GrGLenum identifier, GrGLuint name, GrGLsizei length, const GrGLchar *label);
|
||||||
|
|
||||||
// Experimental: Functions for GL_NV_path_rendering. These will be
|
|
||||||
// alphabetized with the above functions once this is fully supported
|
|
||||||
// (and functions we are unlikely to use will possibly be omitted).
|
|
||||||
// EXT_direct_state_access
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadfProc)(GrGLenum matrixMode, const GrGLfloat* m);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLMatrixLoadIdentityProc)(GrGLenum);
|
|
||||||
// ARB_program_interface_query
|
|
||||||
typedef GrGLint (GR_GL_FUNCTION_TYPE* GrGLGetProgramResourceLocationProc)(GrGLuint program, GrGLenum programInterface, const GrGLchar *name);
|
|
||||||
// NV_path_rendering
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCommandsProc)(GrGLuint path, GrGLsizei numCommands, const GrGLubyte *commands, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathCoordsProc)(GrGLuint path, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathSubCoordsProc)(GrGLuint path, GrGLsizei coordStart, GrGLsizei numCoords, GrGLenum coordType, const GrGLvoid *coords);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStringProc)(GrGLuint path, GrGLenum format, GrGLsizei length, const GrGLvoid *pathString);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphsProc)(GrGLuint firstPathName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle, GrGLsizei numGlyphs, GrGLenum type, const GrGLvoid *charcodes, GrGLenum handleMissingGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathGlyphRangeProc)(GrGLuint firstPathName, GrGLenum fontTarget, const GrGLvoid *fontName, GrGLbitfield fontStyle, GrGLuint firstGlyph, GrGLsizei numGlyphs, GrGLenum handleMissingGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLWeightPathsProc)(GrGLuint resultPath, GrGLsizei numPaths, const GrGLuint paths[], const GrGLfloat weights[]);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCopyPathProc)(GrGLuint resultPath, GrGLuint srcPath);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInterpolatePathsProc)(GrGLuint resultPath, GrGLuint pathA, GrGLuint pathB, GrGLfloat weight);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTransformPathProc)(GrGLuint resultPath, GrGLuint srcPath, GrGLenum transformType, const GrGLfloat *transformValues);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameteriProc)(GrGLuint path, GrGLenum pname, GrGLint value);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathParameterfProc)(GrGLuint path, GrGLenum pname, GrGLfloat value);
|
|
||||||
typedef GrGLuint (GR_GL_FUNCTION_TYPE* GrGLGenPathsProc)(GrGLsizei range);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeletePathsProc)(GrGLuint path, GrGLsizei range);
|
|
||||||
typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPathProc)(GrGLuint path);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathStencilFuncProc)(GrGLenum func, GrGLint ref, GrGLuint mask);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathProc)(GrGLuint path, GrGLenum fillMode, GrGLuint mask);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathProc)(GrGLuint path, GrGLint reference, GrGLuint mask);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilFillPathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum fillMode, GrGLuint mask, GrGLenum transformType, const GrGLfloat *transformValues);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilStrokePathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLint reference, GrGLuint mask, GrGLenum transformType, const GrGLfloat *transformValues);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPathTexGenProc)(GrGLenum texCoordSet, GrGLenum genMode, GrGLint components, const GrGLfloat *coeffs);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathProc)(GrGLuint path, GrGLenum coverMode);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathProc)(GrGLuint name, GrGLenum coverMode);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverFillPathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverStrokePathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat* transformValues);
|
|
||||||
// NV_path_rendering v1.2
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathProc)(GrGLuint path, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathProc)(GrGLuint path, GrGLint reference, GrGLuint mask, GrGLenum coverMode);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues);
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathInstancedProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint pathBase, GrGLint reference, GrGLuint mask, GrGLenum coverMode, GrGLenum transformType, const GrGLfloat *transformValues);
|
|
||||||
// NV_path_rendering v1.3
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramPathFragmentInputGenProc)(GrGLuint program, GrGLint location, GrGLenum genMode, GrGLint components,const GrGLfloat *coeffs);
|
|
||||||
typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLPathMemoryGlyphIndexArrayProc)(GrGLuint firstPathName, GrGLenum fontTarget, GrGLsizeiptr fontSize, const GrGLvoid *fontData, GrGLsizei faceIndex, GrGLuint firstGlyphIndex, GrGLsizei numGlyphs, GrGLuint pathParameterTemplate, GrGLfloat emScale);
|
|
||||||
// GL_NV_framebuffer_mixed_samples
|
|
||||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLCoverageModulationProc)(GrGLenum components);
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -240,8 +240,6 @@ public:
|
|||||||
GLPtr<GrGLMapBufferRangeProc> fMapBufferRange;
|
GLPtr<GrGLMapBufferRangeProc> fMapBufferRange;
|
||||||
GLPtr<GrGLMapBufferSubDataProc> fMapBufferSubData;
|
GLPtr<GrGLMapBufferSubDataProc> fMapBufferSubData;
|
||||||
GLPtr<GrGLMapTexSubImage2DProc> fMapTexSubImage2D;
|
GLPtr<GrGLMapTexSubImage2DProc> fMapTexSubImage2D;
|
||||||
GLPtr<GrGLMatrixLoadfProc> fMatrixLoadf;
|
|
||||||
GLPtr<GrGLMatrixLoadIdentityProc> fMatrixLoadIdentity;
|
|
||||||
GLPtr<GrGLPixelStoreiProc> fPixelStorei;
|
GLPtr<GrGLPixelStoreiProc> fPixelStorei;
|
||||||
GLPtr<GrGLPopGroupMarkerProc> fPopGroupMarker;
|
GLPtr<GrGLPopGroupMarkerProc> fPopGroupMarker;
|
||||||
GLPtr<GrGLPushGroupMarkerProc> fPushGroupMarker;
|
GLPtr<GrGLPushGroupMarkerProc> fPushGroupMarker;
|
||||||
@ -323,9 +321,9 @@ public:
|
|||||||
GLPtr<GrGLVertexAttribPointerProc> fVertexAttribPointer;
|
GLPtr<GrGLVertexAttribPointerProc> fVertexAttribPointer;
|
||||||
GLPtr<GrGLViewportProc> fViewport;
|
GLPtr<GrGLViewportProc> fViewport;
|
||||||
|
|
||||||
// Experimental: Functions for GL_NV_path_rendering. These will be
|
/* GL_NV_path_rendering */
|
||||||
// alphabetized with the above functions once this is fully supported
|
GLPtr<GrGLMatrixLoadfProc> fMatrixLoadf;
|
||||||
// (and functions we are unlikely to use will possibly be omitted).
|
GLPtr<GrGLMatrixLoadIdentityProc> fMatrixLoadIdentity;
|
||||||
GLPtr<GrGLGetProgramResourceLocationProc> fGetProgramResourceLocation;
|
GLPtr<GrGLGetProgramResourceLocationProc> fGetProgramResourceLocation;
|
||||||
GLPtr<GrGLPathCommandsProc> fPathCommands;
|
GLPtr<GrGLPathCommandsProc> fPathCommands;
|
||||||
GLPtr<GrGLPathCoordsProc> fPathCoords;
|
GLPtr<GrGLPathCoordsProc> fPathCoords;
|
||||||
@ -352,8 +350,148 @@ public:
|
|||||||
// NV_path_rendering v1.3
|
// NV_path_rendering v1.3
|
||||||
GLPtr<GrGLProgramPathFragmentInputGenProc> fProgramPathFragmentInputGen;
|
GLPtr<GrGLProgramPathFragmentInputGenProc> fProgramPathFragmentInputGen;
|
||||||
GLPtr<GrGLPathMemoryGlyphIndexArrayProc> fPathMemoryGlyphIndexArray;
|
GLPtr<GrGLPathMemoryGlyphIndexArrayProc> fPathMemoryGlyphIndexArray;
|
||||||
// NV_framebuffer_mixed_samples
|
|
||||||
|
/* NV_framebuffer_mixed_samples */
|
||||||
GLPtr<GrGLCoverageModulationProc> fCoverageModulation;
|
GLPtr<GrGLCoverageModulationProc> fCoverageModulation;
|
||||||
|
|
||||||
|
/* ARB_draw_instanced */
|
||||||
|
GLPtr<GrGLDrawArraysInstancedProc> fDrawArraysInstanced;
|
||||||
|
GLPtr<GrGLDrawElementsInstancedProc> fDrawElementsInstanced;
|
||||||
|
|
||||||
|
/* ARB_instanced_arrays */
|
||||||
|
GLPtr<GrGLVertexAttribDivisorProc> fVertexAttribDivisor;
|
||||||
|
// EXT_direct_state_access
|
||||||
|
GLPtr<GrGLVertexArrayVertexAttribDivisorProc> fVertexArrayVertexAttribDivisor;
|
||||||
|
|
||||||
|
/* NV_bindless_texture */
|
||||||
|
// We use the NVIDIA verson for now because it does not require dynamically uniform handles.
|
||||||
|
// We may switch the the ARB version and/or omit methods in the future.
|
||||||
|
GLPtr<GrGLGetTextureHandleProc> fGetTextureHandle;
|
||||||
|
GLPtr<GrGLGetTextureSamplerHandleProc> fGetTextureSamplerHandle;
|
||||||
|
GLPtr<GrGLMakeTextureHandleResidentProc> fMakeTextureHandleResident;
|
||||||
|
GLPtr<GrGLMakeTextureHandleNonResidentProc> fMakeTextureHandleNonResident;
|
||||||
|
GLPtr<GrGLGetImageHandleProc> fGetImageHandle;
|
||||||
|
GLPtr<GrGLMakeImageHandleResidentProc> fMakeImageHandleResident;
|
||||||
|
GLPtr<GrGLMakeImageHandleNonResidentProc> fMakeImageHandleNonResident;
|
||||||
|
GLPtr<GrGLIsTextureHandleResidentProc> fIsTextureHandleResident;
|
||||||
|
GLPtr<GrGLIsImageHandleResidentProc> fIsImageHandleResident;
|
||||||
|
GLPtr<GrGLUniformHandleui64Proc> fUniformHandleui64;
|
||||||
|
GLPtr<GrGLUniformHandleui64vProc> fUniformHandleui64v;
|
||||||
|
GLPtr<GrGLProgramUniformHandleui64Proc> fProgramUniformHandleui64;
|
||||||
|
GLPtr<GrGLProgramUniformHandleui64vProc> fProgramUniformHandleui64v;
|
||||||
|
|
||||||
|
/* EXT_direct_state_access */
|
||||||
|
// We use the EXT verson because it is more expansive and interacts with more extensions
|
||||||
|
// than the ARB or core (4.5) versions. We may switch and/or omit methods in the future.
|
||||||
|
GLPtr<GrGLTextureParameteriProc> fTextureParameteri;
|
||||||
|
GLPtr<GrGLTextureParameterivProc> fTextureParameteriv;
|
||||||
|
GLPtr<GrGLTextureParameterfProc> fTextureParameterf;
|
||||||
|
GLPtr<GrGLTextureParameterfvProc> fTextureParameterfv;
|
||||||
|
GLPtr<GrGLTextureImage1DProc> fTextureImage1D;
|
||||||
|
GLPtr<GrGLTextureImage2DProc> fTextureImage2D;
|
||||||
|
GLPtr<GrGLTextureSubImage1DProc> fTextureSubImage1D;
|
||||||
|
GLPtr<GrGLTextureSubImage2DProc> fTextureSubImage2D;
|
||||||
|
GLPtr<GrGLCopyTextureImage1DProc> fCopyTextureImage1D;
|
||||||
|
GLPtr<GrGLCopyTextureImage2DProc> fCopyTextureImage2D;
|
||||||
|
GLPtr<GrGLCopyTextureSubImage1DProc> fCopyTextureSubImage1D;
|
||||||
|
GLPtr<GrGLCopyTextureSubImage2DProc> fCopyTextureSubImage2D;
|
||||||
|
GLPtr<GrGLGetTextureImageProc> fGetTextureImage;
|
||||||
|
GLPtr<GrGLGetTextureParameterfvProc> fGetTextureParameterfv;
|
||||||
|
GLPtr<GrGLGetTextureParameterivProc> fGetTextureParameteriv;
|
||||||
|
GLPtr<GrGLGetTextureLevelParameterfvProc> fGetTextureLevelParameterfv;
|
||||||
|
GLPtr<GrGLGetTextureLevelParameterivProc> fGetTextureLevelParameteriv;
|
||||||
|
// OpenGL 1.2
|
||||||
|
GLPtr<GrGLTextureImage3DProc> fTextureImage3D;
|
||||||
|
GLPtr<GrGLTextureSubImage3DProc> fTextureSubImage3D;
|
||||||
|
GLPtr<GrGLCopyTextureSubImage3DProc> fCopyTextureSubImage3D;
|
||||||
|
GLPtr<GrGLCompressedTextureImage3DProc> fCompressedTextureImage3D;
|
||||||
|
GLPtr<GrGLCompressedTextureImage2DProc> fCompressedTextureImage2D;
|
||||||
|
GLPtr<GrGLCompressedTextureImage1DProc> fCompressedTextureImage1D;
|
||||||
|
GLPtr<GrGLCompressedTextureSubImage3DProc> fCompressedTextureSubImage3D;
|
||||||
|
GLPtr<GrGLCompressedTextureSubImage2DProc> fCompressedTextureSubImage2D;
|
||||||
|
GLPtr<GrGLCompressedTextureSubImage1DProc> fCompressedTextureSubImage1D;
|
||||||
|
GLPtr<GrGLGetCompressedTextureImageProc> fGetCompressedTextureImage;
|
||||||
|
// OpenGL 1.5
|
||||||
|
GLPtr<GrGLNamedBufferDataProc> fNamedBufferData;
|
||||||
|
GLPtr<GrGLNamedBufferSubDataProc> fNamedBufferSubData;
|
||||||
|
GLPtr<GrGLMapNamedBufferProc> fMapNamedBuffer;
|
||||||
|
GLPtr<GrGLUnmapNamedBufferProc> fUnmapNamedBuffer;
|
||||||
|
GLPtr<GrGLGetNamedBufferParameterivProc> fGetNamedBufferParameteriv;
|
||||||
|
GLPtr<GrGLGetNamedBufferPointervProc> fGetNamedBufferPointerv;
|
||||||
|
GLPtr<GrGLGetNamedBufferSubDataProc> fGetNamedBufferSubData;
|
||||||
|
// OpenGL 2.0
|
||||||
|
GLPtr<GrGLProgramUniform1fProc> fProgramUniform1f;
|
||||||
|
GLPtr<GrGLProgramUniform2fProc> fProgramUniform2f;
|
||||||
|
GLPtr<GrGLProgramUniform3fProc> fProgramUniform3f;
|
||||||
|
GLPtr<GrGLProgramUniform4fProc> fProgramUniform4f;
|
||||||
|
GLPtr<GrGLProgramUniform1iProc> fProgramUniform1i;
|
||||||
|
GLPtr<GrGLProgramUniform2iProc> fProgramUniform2i;
|
||||||
|
GLPtr<GrGLProgramUniform3iProc> fProgramUniform3i;
|
||||||
|
GLPtr<GrGLProgramUniform4iProc> fProgramUniform4i;
|
||||||
|
GLPtr<GrGLProgramUniform1fvProc> fProgramUniform1fv;
|
||||||
|
GLPtr<GrGLProgramUniform2fvProc> fProgramUniform2fv;
|
||||||
|
GLPtr<GrGLProgramUniform3fvProc> fProgramUniform3fv;
|
||||||
|
GLPtr<GrGLProgramUniform4fvProc> fProgramUniform4fv;
|
||||||
|
GLPtr<GrGLProgramUniform1ivProc> fProgramUniform1iv;
|
||||||
|
GLPtr<GrGLProgramUniform2ivProc> fProgramUniform2iv;
|
||||||
|
GLPtr<GrGLProgramUniform3ivProc> fProgramUniform3iv;
|
||||||
|
GLPtr<GrGLProgramUniform4ivProc> fProgramUniform4iv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix2fvProc> fProgramUniformMatrix2fv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix3fvProc> fProgramUniformMatrix3fv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix4fvProc> fProgramUniformMatrix4fv;
|
||||||
|
// OpenGL 2.1
|
||||||
|
GLPtr<GrGLProgramUniformMatrix2x3fvProc> fProgramUniformMatrix2x3fv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix3x2fvProc> fProgramUniformMatrix3x2fv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix2x4fvProc> fProgramUniformMatrix2x4fv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix4x2fvProc> fProgramUniformMatrix4x2fv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix3x4fvProc> fProgramUniformMatrix3x4fv;
|
||||||
|
GLPtr<GrGLProgramUniformMatrix4x3fvProc> fProgramUniformMatrix4x3fv;
|
||||||
|
// OpenGL 3.0
|
||||||
|
GLPtr<GrGLNamedRenderbufferStorageProc> fNamedRenderbufferStorage;
|
||||||
|
GLPtr<GrGLGetNamedRenderbufferParameterivProc> fGetNamedRenderbufferParameteriv;
|
||||||
|
GLPtr<GrGLNamedRenderbufferStorageMultisampleProc> fNamedRenderbufferStorageMultisample;
|
||||||
|
GLPtr<GrGLCheckNamedFramebufferStatusProc> fCheckNamedFramebufferStatus;
|
||||||
|
GLPtr<GrGLNamedFramebufferTexture1DProc> fNamedFramebufferTexture1D;
|
||||||
|
GLPtr<GrGLNamedFramebufferTexture2DProc> fNamedFramebufferTexture2D;
|
||||||
|
GLPtr<GrGLNamedFramebufferTexture3DProc> fNamedFramebufferTexture3D;
|
||||||
|
GLPtr<GrGLNamedFramebufferRenderbufferProc> fNamedFramebufferRenderbuffer;
|
||||||
|
GLPtr<GrGLGetNamedFramebufferAttachmentParameterivProc> fGetNamedFramebufferAttachmentParameteriv;
|
||||||
|
GLPtr<GrGLGenerateTextureMipmapProc> fGenerateTextureMipmap;
|
||||||
|
GLPtr<GrGLFramebufferDrawBufferProc> fFramebufferDrawBuffer;
|
||||||
|
GLPtr<GrGLFramebufferDrawBuffersProc> fFramebufferDrawBuffers;
|
||||||
|
GLPtr<GrGLFramebufferReadBufferProc> fFramebufferReadBuffer;
|
||||||
|
GLPtr<GrGLGetFramebufferParameterivProc> fGetFramebufferParameteriv;
|
||||||
|
GLPtr<GrGLNamedCopyBufferSubDataProc> fNamedCopyBufferSubData;
|
||||||
|
GLPtr<GrGLVertexArrayVertexOffsetProc> fVertexArrayVertexOffset;
|
||||||
|
GLPtr<GrGLVertexArrayColorOffsetProc> fVertexArrayColorOffset;
|
||||||
|
GLPtr<GrGLVertexArrayEdgeFlagOffsetProc> fVertexArrayEdgeFlagOffset;
|
||||||
|
GLPtr<GrGLVertexArrayIndexOffsetProc> fVertexArrayIndexOffset;
|
||||||
|
GLPtr<GrGLVertexArrayNormalOffsetProc> fVertexArrayNormalOffset;
|
||||||
|
GLPtr<GrGLVertexArrayTexCoordOffsetProc> fVertexArrayTexCoordOffset;
|
||||||
|
GLPtr<GrGLVertexArrayMultiTexCoordOffsetProc> fVertexArrayMultiTexCoordOffset;
|
||||||
|
GLPtr<GrGLVertexArrayFogCoordOffsetProc> fVertexArrayFogCoordOffset;
|
||||||
|
GLPtr<GrGLVertexArraySecondaryColorOffsetProc> fVertexArraySecondaryColorOffset;
|
||||||
|
GLPtr<GrGLVertexArrayVertexAttribOffsetProc> fVertexArrayVertexAttribOffset;
|
||||||
|
GLPtr<GrGLVertexArrayVertexAttribIOffsetProc> fVertexArrayVertexAttribIOffset;
|
||||||
|
GLPtr<GrGLEnableVertexArrayProc> fEnableVertexArray;
|
||||||
|
GLPtr<GrGLDisableVertexArrayProc> fDisableVertexArray;
|
||||||
|
GLPtr<GrGLEnableVertexArrayAttribProc> fEnableVertexArrayAttrib;
|
||||||
|
GLPtr<GrGLDisableVertexArrayAttribProc> fDisableVertexArrayAttrib;
|
||||||
|
GLPtr<GrGLGetVertexArrayIntegervProc> fGetVertexArrayIntegerv;
|
||||||
|
GLPtr<GrGLGetVertexArrayPointervProc> fGetVertexArrayPointerv;
|
||||||
|
GLPtr<GrGLGetVertexArrayIntegeri_vProc> fGetVertexArrayIntegeri_v;
|
||||||
|
GLPtr<GrGLGetVertexArrayPointeri_vProc> fGetVertexArrayPointeri_v;
|
||||||
|
GLPtr<GrGLMapNamedBufferRangeProc> fMapNamedBufferRange;
|
||||||
|
GLPtr<GrGLFlushMappedNamedBufferRangeProc> fFlushMappedNamedBufferRange;
|
||||||
|
|
||||||
|
/* KHR_debug */
|
||||||
|
GLPtr<GrGLDebugMessageControlProc> fDebugMessageControl;
|
||||||
|
GLPtr<GrGLDebugMessageInsertProc> fDebugMessageInsert;
|
||||||
|
GLPtr<GrGLDebugMessageCallbackProc> fDebugMessageCallback;
|
||||||
|
GLPtr<GrGLGetDebugMessageLogProc> fGetDebugMessageLog;
|
||||||
|
GLPtr<GrGLPushDebugGroupProc> fPushDebugGroup;
|
||||||
|
GLPtr<GrGLPopDebugGroupProc> fPopDebugGroup;
|
||||||
|
GLPtr<GrGLObjectLabelProc> fObjectLabel;
|
||||||
} fFunctions;
|
} fFunctions;
|
||||||
|
|
||||||
// Per-GL func callback
|
// Per-GL func callback
|
||||||
|
@ -153,10 +153,6 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) {
|
|||||||
GET_PROC(LineWidth);
|
GET_PROC(LineWidth);
|
||||||
GET_PROC(LinkProgram);
|
GET_PROC(LinkProgram);
|
||||||
GET_PROC(MapBuffer);
|
GET_PROC(MapBuffer);
|
||||||
if (extensions.has("GL_EXT_direct_state_access")) {
|
|
||||||
GET_PROC_SUFFIX(MatrixLoadf, EXT);
|
|
||||||
GET_PROC_SUFFIX(MatrixLoadIdentity, EXT);
|
|
||||||
}
|
|
||||||
GET_PROC(PixelStorei);
|
GET_PROC(PixelStorei);
|
||||||
if (extensions.has("GL_EXT_raster_multisample")) {
|
if (extensions.has("GL_EXT_raster_multisample")) {
|
||||||
GET_PROC_SUFFIX(RasterSamples, EXT);
|
GET_PROC_SUFFIX(RasterSamples, EXT);
|
||||||
@ -273,6 +269,8 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (extensions.has("GL_NV_path_rendering")) {
|
if (extensions.has("GL_NV_path_rendering")) {
|
||||||
|
GET_PROC_SUFFIX(MatrixLoadf, EXT);
|
||||||
|
GET_PROC_SUFFIX(MatrixLoadIdentity, EXT);
|
||||||
GET_PROC_SUFFIX(PathCommands, NV);
|
GET_PROC_SUFFIX(PathCommands, NV);
|
||||||
GET_PROC_SUFFIX(PathCoords, NV);
|
GET_PROC_SUFFIX(PathCoords, NV);
|
||||||
GET_PROC_SUFFIX(PathParameteri, NV);
|
GET_PROC_SUFFIX(PathParameteri, NV);
|
||||||
@ -323,6 +321,160 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) {
|
|||||||
GET_PROC(GetProgramResourceLocation);
|
GET_PROC(GetProgramResourceLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (glVer >= GR_GL_VER(3,1) || extensions.has("GL_ARB_draw_instanced")) {
|
||||||
|
GET_PROC(DrawArraysInstanced);
|
||||||
|
GET_PROC(DrawElementsInstanced);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (glVer >= GR_GL_VER(3,2) || extensions.has("GL_ARB_instanced_arrays")) {
|
||||||
|
GET_PROC(VertexAttribDivisor);
|
||||||
|
if (extensions.has("GL_EXT_direct_state_access")) {
|
||||||
|
GET_PROC_SUFFIX(VertexArrayVertexAttribDivisor, EXT);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (extensions.has("GL_NV_bindless_texture")) {
|
||||||
|
GET_PROC_SUFFIX(GetTextureHandle, NV);
|
||||||
|
GET_PROC_SUFFIX(GetTextureSamplerHandle, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeTextureHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeTextureHandleNonResident, NV);
|
||||||
|
GET_PROC_SUFFIX(GetImageHandle, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeImageHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeImageHandleNonResident, NV);
|
||||||
|
GET_PROC_SUFFIX(IsTextureHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(IsImageHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(UniformHandleui64, NV);
|
||||||
|
GET_PROC_SUFFIX(UniformHandleui64v, NV);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformHandleui64, NV);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformHandleui64v, NV);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (extensions.has("GL_EXT_direct_state_access")) {
|
||||||
|
GET_PROC_SUFFIX(TextureParameteri, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureParameteriv, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureParameterf, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureParameterfv, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureImage1D, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureImage2D, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureSubImage1D, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureSubImage2D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CopyTextureImage1D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CopyTextureImage2D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CopyTextureSubImage1D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CopyTextureSubImage2D, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetTextureImage, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetTextureParameterfv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetTextureParameteriv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetTextureLevelParameterfv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetTextureLevelParameteriv, EXT);
|
||||||
|
if (glVer >= GR_GL_VER(1,2)) {
|
||||||
|
GET_PROC_SUFFIX(TextureImage3D, EXT);
|
||||||
|
GET_PROC_SUFFIX(TextureSubImage3D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CopyTextureSubImage3D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CompressedTextureImage3D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CompressedTextureImage2D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CompressedTextureImage1D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CompressedTextureSubImage3D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CompressedTextureSubImage2D, EXT);
|
||||||
|
GET_PROC_SUFFIX(CompressedTextureSubImage1D, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetCompressedTextureImage, EXT);
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(1,5)) {
|
||||||
|
GET_PROC_SUFFIX(NamedBufferData, EXT);
|
||||||
|
GET_PROC_SUFFIX(NamedBufferSubData, EXT);
|
||||||
|
GET_PROC_SUFFIX(MapNamedBuffer, EXT);
|
||||||
|
GET_PROC_SUFFIX(UnmapNamedBuffer, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetNamedBufferParameteriv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetNamedBufferPointerv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetNamedBufferSubData, EXT);
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(2,0)) {
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform1f, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform2f, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform3f, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform4f, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform1i, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform2i, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform3i, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform4i, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform1fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform2fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform3fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform4fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform1iv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform2iv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform3iv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniform4iv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix2fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix3fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix4fv, EXT);
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(2,1)) {
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix2x3fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix3x2fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix2x4fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix4x2fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix3x4fv, EXT);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformMatrix4x3fv, EXT);
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(3,0)) {
|
||||||
|
GET_PROC_SUFFIX(NamedRenderbufferStorage, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetNamedRenderbufferParameteriv, EXT);
|
||||||
|
GET_PROC_SUFFIX(NamedRenderbufferStorageMultisample, EXT);
|
||||||
|
GET_PROC_SUFFIX(CheckNamedFramebufferStatus, EXT);
|
||||||
|
GET_PROC_SUFFIX(NamedFramebufferTexture1D, EXT);
|
||||||
|
GET_PROC_SUFFIX(NamedFramebufferTexture2D, EXT);
|
||||||
|
GET_PROC_SUFFIX(NamedFramebufferTexture3D, EXT);
|
||||||
|
GET_PROC_SUFFIX(NamedFramebufferRenderbuffer, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetNamedFramebufferAttachmentParameteriv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GenerateTextureMipmap, EXT);
|
||||||
|
GET_PROC_SUFFIX(FramebufferDrawBuffer, EXT);
|
||||||
|
GET_PROC_SUFFIX(FramebufferDrawBuffers, EXT);
|
||||||
|
GET_PROC_SUFFIX(FramebufferReadBuffer, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetFramebufferParameteriv, EXT);
|
||||||
|
GET_PROC_SUFFIX(NamedCopyBufferSubData, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayVertexOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayColorOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayEdgeFlagOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayIndexOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayNormalOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayTexCoordOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayMultiTexCoordOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayFogCoordOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArraySecondaryColorOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayVertexAttribOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(VertexArrayVertexAttribIOffset, EXT);
|
||||||
|
GET_PROC_SUFFIX(EnableVertexArray, EXT);
|
||||||
|
GET_PROC_SUFFIX(DisableVertexArray, EXT);
|
||||||
|
GET_PROC_SUFFIX(EnableVertexArrayAttrib, EXT);
|
||||||
|
GET_PROC_SUFFIX(DisableVertexArrayAttrib, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetVertexArrayIntegerv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetVertexArrayPointerv, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetVertexArrayIntegeri_v, EXT);
|
||||||
|
GET_PROC_SUFFIX(GetVertexArrayPointeri_v, EXT);
|
||||||
|
GET_PROC_SUFFIX(MapNamedBufferRange, EXT);
|
||||||
|
GET_PROC_SUFFIX(FlushMappedNamedBufferRange, EXT);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (glVer >= GR_GL_VER(4,3)) {
|
||||||
|
GET_PROC(DebugMessageControl);
|
||||||
|
GET_PROC(DebugMessageInsert);
|
||||||
|
GET_PROC(DebugMessageCallback);
|
||||||
|
GET_PROC(GetDebugMessageLog);
|
||||||
|
GET_PROC(PushDebugGroup);
|
||||||
|
GET_PROC(PopDebugGroup);
|
||||||
|
GET_PROC(ObjectLabel);
|
||||||
|
} else if (extensions.has("GL_KHR_debug")) {
|
||||||
|
GET_PROC_SUFFIX(DebugMessageControl, KHR);
|
||||||
|
GET_PROC_SUFFIX(DebugMessageInsert, KHR);
|
||||||
|
GET_PROC_SUFFIX(DebugMessageCallback, KHR);
|
||||||
|
GET_PROC_SUFFIX(GetDebugMessageLog, KHR);
|
||||||
|
GET_PROC_SUFFIX(PushDebugGroup, KHR);
|
||||||
|
GET_PROC_SUFFIX(PopDebugGroup, KHR);
|
||||||
|
GET_PROC_SUFFIX(ObjectLabel, KHR);
|
||||||
|
}
|
||||||
|
|
||||||
interface->fStandard = kGL_GrGLStandard;
|
interface->fStandard = kGL_GrGLStandard;
|
||||||
interface->fExtensions.swap(&extensions);
|
interface->fExtensions.swap(&extensions);
|
||||||
|
|
||||||
@ -566,6 +718,41 @@ const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) {
|
|||||||
GET_PROC_SUFFIX(CoverageModulation, NV);
|
GET_PROC_SUFFIX(CoverageModulation, NV);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_draw_instanced")) {
|
||||||
|
GET_PROC(DrawArraysInstanced);
|
||||||
|
GET_PROC(DrawElementsInstanced);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_instanced_arrays")) {
|
||||||
|
GET_PROC(VertexAttribDivisor);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (extensions.has("GL_NV_bindless_texture")) {
|
||||||
|
GET_PROC_SUFFIX(GetTextureHandle, NV);
|
||||||
|
GET_PROC_SUFFIX(GetTextureSamplerHandle, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeTextureHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeTextureHandleNonResident, NV);
|
||||||
|
GET_PROC_SUFFIX(GetImageHandle, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeImageHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(MakeImageHandleNonResident, NV);
|
||||||
|
GET_PROC_SUFFIX(IsTextureHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(IsImageHandleResident, NV);
|
||||||
|
GET_PROC_SUFFIX(UniformHandleui64, NV);
|
||||||
|
GET_PROC_SUFFIX(UniformHandleui64v, NV);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformHandleui64, NV);
|
||||||
|
GET_PROC_SUFFIX(ProgramUniformHandleui64v, NV);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (extensions.has("GL_KHR_debug")) {
|
||||||
|
GET_PROC_SUFFIX(DebugMessageControl, KHR);
|
||||||
|
GET_PROC_SUFFIX(DebugMessageInsert, KHR);
|
||||||
|
GET_PROC_SUFFIX(DebugMessageCallback, KHR);
|
||||||
|
GET_PROC_SUFFIX(GetDebugMessageLog, KHR);
|
||||||
|
GET_PROC_SUFFIX(PushDebugGroup, KHR);
|
||||||
|
GET_PROC_SUFFIX(PopDebugGroup, KHR);
|
||||||
|
GET_PROC_SUFFIX(ObjectLabel, KHR);
|
||||||
|
}
|
||||||
|
|
||||||
interface->fStandard = kGLES_GrGLStandard;
|
interface->fStandard = kGLES_GrGLStandard;
|
||||||
interface->fExtensions.swap(&extensions);
|
interface->fExtensions.swap(&extensions);
|
||||||
|
|
||||||
|
@ -39,6 +39,9 @@ GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions,
|
|||||||
fTwoFormatLimit = false;
|
fTwoFormatLimit = false;
|
||||||
fFragCoordsConventionSupport = false;
|
fFragCoordsConventionSupport = false;
|
||||||
fVertexArrayObjectSupport = false;
|
fVertexArrayObjectSupport = false;
|
||||||
|
fInstancedDrawingSupport = false;
|
||||||
|
fDirectStateAccessSupport = false;
|
||||||
|
fDebugSupport = false;
|
||||||
fES2CompatibilitySupport = false;
|
fES2CompatibilitySupport = false;
|
||||||
fMultisampleDisableSupport = false;
|
fMultisampleDisableSupport = false;
|
||||||
fUseNonVBOVertexAndIndexDynamicData = false;
|
fUseNonVBOVertexAndIndexDynamicData = false;
|
||||||
@ -89,6 +92,8 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glslCaps->fBindlessTextureSupport = ctxInfo.hasExtension("GL_NV_bindless_texture");
|
||||||
|
|
||||||
// Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero in a shader
|
// Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero in a shader
|
||||||
glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor();
|
glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor();
|
||||||
|
|
||||||
@ -230,6 +235,28 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
|
|||||||
ctxInfo.hasExtension("GL_OES_vertex_array_object");
|
ctxInfo.hasExtension("GL_OES_vertex_array_object");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((kGL_GrGLStandard == standard && version >= GR_GL_VER(3,2)) ||
|
||||||
|
(kGLES_GrGLStandard == standard && version >= GR_GL_VER(3,0))) {
|
||||||
|
fInstancedDrawingSupport = true;
|
||||||
|
} else {
|
||||||
|
fInstancedDrawingSupport = (ctxInfo.hasExtension("GL_ARB_draw_instanced") ||
|
||||||
|
ctxInfo.hasExtension("GL_EXT_draw_instanced")) &&
|
||||||
|
(ctxInfo.hasExtension("GL_ARB_instanced_arrays") ||
|
||||||
|
ctxInfo.hasExtension("GL_EXT_instanced_arrays"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kGL_GrGLStandard == standard) {
|
||||||
|
fDirectStateAccessSupport = ctxInfo.hasExtension("GL_EXT_direct_state_access");
|
||||||
|
} else {
|
||||||
|
fDirectStateAccessSupport = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kGL_GrGLStandard == standard && version >= GR_GL_VER(4,3)) {
|
||||||
|
fDebugSupport = true;
|
||||||
|
} else {
|
||||||
|
fDebugSupport = ctxInfo.hasExtension("GL_KHR_debug");
|
||||||
|
}
|
||||||
|
|
||||||
if (kGL_GrGLStandard == standard) {
|
if (kGL_GrGLStandard == standard) {
|
||||||
fES2CompatibilitySupport = ctxInfo.hasExtension("GL_ARB_ES2_compatibility");
|
fES2CompatibilitySupport = ctxInfo.hasExtension("GL_ARB_ES2_compatibility");
|
||||||
}
|
}
|
||||||
@ -254,9 +281,7 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
|
|||||||
// We only support v1.3+ of GL_NV_path_rendering which allows us to
|
// We only support v1.3+ of GL_NV_path_rendering which allows us to
|
||||||
// set individual fragment inputs with ProgramPathFragmentInputGen. The API
|
// set individual fragment inputs with ProgramPathFragmentInputGen. The API
|
||||||
// additions are detected by checking the existence of the function.
|
// additions are detected by checking the existence of the function.
|
||||||
glslCaps->fPathRenderingSupport =
|
glslCaps->fPathRenderingSupport = ((ctxInfo.version() >= GR_GL_VER(4, 3) ||
|
||||||
ctxInfo.hasExtension("GL_EXT_direct_state_access") &&
|
|
||||||
((ctxInfo.version() >= GR_GL_VER(4, 3) ||
|
|
||||||
ctxInfo.hasExtension("GL_ARB_program_interface_query")) &&
|
ctxInfo.hasExtension("GL_ARB_program_interface_query")) &&
|
||||||
gli->fFunctions.fProgramPathFragmentInputGen);
|
gli->fFunctions.fProgramPathFragmentInputGen);
|
||||||
}
|
}
|
||||||
@ -1023,6 +1048,9 @@ SkString GrGLCaps::dump() const {
|
|||||||
r.appendf("Fragment coord conventions support: %s\n",
|
r.appendf("Fragment coord conventions support: %s\n",
|
||||||
(fFragCoordsConventionSupport ? "YES": "NO"));
|
(fFragCoordsConventionSupport ? "YES": "NO"));
|
||||||
r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
|
r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
|
||||||
|
r.appendf("Instanced drawing support: %s\n", (fInstancedDrawingSupport ? "YES": "NO"));
|
||||||
|
r.appendf("Direct state access support: %s\n", (fDirectStateAccessSupport ? "YES": "NO"));
|
||||||
|
r.appendf("Debug support: %s\n", (fDebugSupport ? "YES": "NO"));
|
||||||
r.appendf("Multisample disable support: %s\n", (fMultisampleDisableSupport ? "YES" : "NO"));
|
r.appendf("Multisample disable support: %s\n", (fMultisampleDisableSupport ? "YES" : "NO"));
|
||||||
r.appendf("Use non-VBO for dynamic data: %s\n",
|
r.appendf("Use non-VBO for dynamic data: %s\n",
|
||||||
(fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
|
(fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
|
||||||
@ -1039,6 +1067,7 @@ GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options,
|
|||||||
fDropsTileOnZeroDivide = false;
|
fDropsTileOnZeroDivide = false;
|
||||||
fFBFetchSupport = false;
|
fFBFetchSupport = false;
|
||||||
fFBFetchNeedsCustomOutput = false;
|
fFBFetchNeedsCustomOutput = false;
|
||||||
|
fBindlessTextureSupport = false;
|
||||||
fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
|
fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
|
||||||
fFBFetchColorName = NULL;
|
fFBFetchColorName = NULL;
|
||||||
fFBFetchExtensionString = NULL;
|
fFBFetchExtensionString = NULL;
|
||||||
@ -1063,6 +1092,7 @@ SkString GrGLSLCaps::dump() const {
|
|||||||
|
|
||||||
r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO"));
|
r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO"));
|
||||||
r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
|
r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
|
||||||
|
r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES" : "NO"));
|
||||||
r.appendf("Advanced blend equation interaction: %s\n",
|
r.appendf("Advanced blend equation interaction: %s\n",
|
||||||
kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
|
kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
|
||||||
return r;
|
return r;
|
||||||
|
@ -224,6 +224,15 @@ public:
|
|||||||
/// Is there support for Vertex Array Objects?
|
/// Is there support for Vertex Array Objects?
|
||||||
bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; }
|
bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; }
|
||||||
|
|
||||||
|
/// Is there support for glDraw*Instanced and glVertexAttribDivisor?
|
||||||
|
bool instancedDrawingSupport() const { return fInstancedDrawingSupport; }
|
||||||
|
|
||||||
|
/// Is there support for GL_EXT_direct_state_access?
|
||||||
|
bool directStateAccessSupport() const { return fDirectStateAccessSupport; }
|
||||||
|
|
||||||
|
/// Is there support for GL_KHR_debug?
|
||||||
|
bool debugSupport() const { return fDebugSupport; }
|
||||||
|
|
||||||
/// Is there support for ES2 compatability?
|
/// Is there support for ES2 compatability?
|
||||||
bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; }
|
bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; }
|
||||||
|
|
||||||
@ -350,6 +359,9 @@ private:
|
|||||||
bool fTwoFormatLimit : 1;
|
bool fTwoFormatLimit : 1;
|
||||||
bool fFragCoordsConventionSupport : 1;
|
bool fFragCoordsConventionSupport : 1;
|
||||||
bool fVertexArrayObjectSupport : 1;
|
bool fVertexArrayObjectSupport : 1;
|
||||||
|
bool fInstancedDrawingSupport : 1;
|
||||||
|
bool fDirectStateAccessSupport : 1;
|
||||||
|
bool fDebugSupport : 1;
|
||||||
bool fES2CompatibilitySupport : 1;
|
bool fES2CompatibilitySupport : 1;
|
||||||
bool fMultisampleDisableSupport : 1;
|
bool fMultisampleDisableSupport : 1;
|
||||||
bool fUseNonVBOVertexAndIndexDynamicData : 1;
|
bool fUseNonVBOVertexAndIndexDynamicData : 1;
|
||||||
@ -405,6 +417,8 @@ public:
|
|||||||
|
|
||||||
bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; }
|
bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; }
|
||||||
|
|
||||||
|
bool bindlessTextureSupport() const { return fBindlessTextureSupport; }
|
||||||
|
|
||||||
const char* fbFetchColorName() const { return fFBFetchColorName; }
|
const char* fbFetchColorName() const { return fFBFetchColorName; }
|
||||||
|
|
||||||
const char* fbFetchExtensionString() const { return fFBFetchExtensionString; }
|
const char* fbFetchExtensionString() const { return fFBFetchExtensionString; }
|
||||||
@ -441,6 +455,7 @@ private:
|
|||||||
bool fDropsTileOnZeroDivide : 1;
|
bool fDropsTileOnZeroDivide : 1;
|
||||||
bool fFBFetchSupport : 1;
|
bool fFBFetchSupport : 1;
|
||||||
bool fFBFetchNeedsCustomOutput : 1;
|
bool fFBFetchNeedsCustomOutput : 1;
|
||||||
|
bool fBindlessTextureSupport : 1;
|
||||||
|
|
||||||
const char* fFBFetchColorName;
|
const char* fFBFetchColorName;
|
||||||
const char* fFBFetchExtensionString;
|
const char* fFBFetchExtensionString;
|
||||||
|
@ -382,9 +382,11 @@ const GrGLInterface* GrGLCreateNullInterface() {
|
|||||||
functions->fDisable = noOpGLDisable;
|
functions->fDisable = noOpGLDisable;
|
||||||
functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray;
|
functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray;
|
||||||
functions->fDrawArrays = noOpGLDrawArrays;
|
functions->fDrawArrays = noOpGLDrawArrays;
|
||||||
|
functions->fDrawArraysInstanced = noOpGLDrawArraysInstanced;
|
||||||
functions->fDrawBuffer = noOpGLDrawBuffer;
|
functions->fDrawBuffer = noOpGLDrawBuffer;
|
||||||
functions->fDrawBuffers = noOpGLDrawBuffers;
|
functions->fDrawBuffers = noOpGLDrawBuffers;
|
||||||
functions->fDrawElements = noOpGLDrawElements;
|
functions->fDrawElements = noOpGLDrawElements;
|
||||||
|
functions->fDrawElementsInstanced = noOpGLDrawElementsInstanced;
|
||||||
functions->fEnable = noOpGLEnable;
|
functions->fEnable = noOpGLEnable;
|
||||||
functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
|
functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
|
||||||
functions->fEndQuery = noOpGLEndQuery;
|
functions->fEndQuery = noOpGLEndQuery;
|
||||||
@ -464,6 +466,7 @@ const GrGLInterface* GrGLCreateNullInterface() {
|
|||||||
functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
|
functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
|
||||||
functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
|
functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
|
||||||
functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
|
functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
|
||||||
|
functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor;
|
||||||
functions->fViewport = nullGLViewport;
|
functions->fViewport = nullGLViewport;
|
||||||
functions->fBindFramebuffer = nullGLBindFramebuffer;
|
functions->fBindFramebuffer = nullGLBindFramebuffer;
|
||||||
functions->fBindRenderbuffer = nullGLBindRenderbuffer;
|
functions->fBindRenderbuffer = nullGLBindRenderbuffer;
|
||||||
|
@ -889,4 +889,43 @@
|
|||||||
#define GR_GL_MULTISAMPLE_RASTERIZATION_ALLOWED 0x932B
|
#define GR_GL_MULTISAMPLE_RASTERIZATION_ALLOWED 0x932B
|
||||||
#define GR_GL_EFFECTIVE_RASTER_SAMPLES 0x932C
|
#define GR_GL_EFFECTIVE_RASTER_SAMPLES 0x932C
|
||||||
|
|
||||||
|
/* GL_KHR_debug */
|
||||||
|
#define GR_GL_DEBUG_OUTPUT 0x92E0
|
||||||
|
#define GR_GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
|
||||||
|
#define GR_GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
|
||||||
|
#define GR_GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
|
||||||
|
#define GR_GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
|
||||||
|
#define GR_GL_DEBUG_LOGGED_MESSAGES 0x9145
|
||||||
|
#define GR_GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
|
||||||
|
#define GR_GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
|
||||||
|
#define GR_GL_DEBUG_GROUP_STACK_DEPTH 0x826D
|
||||||
|
#define GR_GL_MAX_LABEL_LENGTH 0x82E8
|
||||||
|
#define GR_GL_DEBUG_SOURCE_API 0x8246
|
||||||
|
#define GR_GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
|
||||||
|
#define GR_GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
|
||||||
|
#define GR_GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
|
||||||
|
#define GR_GL_DEBUG_SOURCE_APPLICATION 0x824A
|
||||||
|
#define GR_GL_DEBUG_SOURCE_OTHER 0x824B
|
||||||
|
#define GR_GL_DEBUG_TYPE_ERROR 0x824C
|
||||||
|
#define GR_GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
|
||||||
|
#define GR_GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
|
||||||
|
#define GR_GL_DEBUG_TYPE_PORTABILITY 0x824F
|
||||||
|
#define GR_GL_DEBUG_TYPE_PERFORMANCE 0x8250
|
||||||
|
#define GR_GL_DEBUG_TYPE_OTHER 0x8251
|
||||||
|
#define GR_GL_DEBUG_TYPE_MARKER 0x8268
|
||||||
|
#define GR_GL_DEBUG_TYPE_PUSH_GROUP 0x8269
|
||||||
|
#define GR_GL_DEBUG_TYPE_POP_GROUP 0x826A
|
||||||
|
#define GR_GL_DEBUG_SEVERITY_HIGH 0x9146
|
||||||
|
#define GR_GL_DEBUG_SEVERITY_MEDIUM 0x9147
|
||||||
|
#define GR_GL_DEBUG_SEVERITY_LOW 0x9148
|
||||||
|
#define GR_GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
|
||||||
|
#define GR_GL_STACK_UNDERFLOW 0x0504
|
||||||
|
#define GR_GL_STACK_OVERFLOW 0x0503
|
||||||
|
#define GR_GL_BUFFER 0x82E0
|
||||||
|
#define GR_GL_SHADER 0x82E1
|
||||||
|
#define GR_GL_PROGRAM 0x82E2
|
||||||
|
#define GR_GL_QUERY 0x82E3
|
||||||
|
#define GR_GL_PROGRAM_PIPELINE 0x82E4
|
||||||
|
#define GR_GL_SAMPLER 0x82E6
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -466,14 +466,6 @@ bool GrGLInterface::validate() const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((kGL_GrGLStandard == fStandard && fExtensions.has("GL_EXT_direct_state_access")) ||
|
|
||||||
(kGLES_GrGLStandard == fStandard && fExtensions.has("GL_NV_path_rendering"))) {
|
|
||||||
if (NULL == fFunctions.fMatrixLoadf ||
|
|
||||||
NULL == fFunctions.fMatrixLoadIdentity) {
|
|
||||||
RETURN_FALSE_INTERFACE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((kGL_GrGLStandard == fStandard &&
|
if ((kGL_GrGLStandard == fStandard &&
|
||||||
(glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_query"))) ||
|
(glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_query"))) ||
|
||||||
(kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
|
(kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
|
||||||
@ -492,7 +484,9 @@ bool GrGLInterface::validate() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (fExtensions.has("GL_NV_path_rendering")) {
|
if (fExtensions.has("GL_NV_path_rendering")) {
|
||||||
if (NULL == fFunctions.fPathCommands ||
|
if (NULL == fFunctions.fMatrixLoadf ||
|
||||||
|
NULL == fFunctions.fMatrixLoadIdentity ||
|
||||||
|
NULL == fFunctions.fPathCommands ||
|
||||||
NULL == fFunctions.fPathCoords ||
|
NULL == fFunctions.fPathCoords ||
|
||||||
NULL == fFunctions.fPathParameteri ||
|
NULL == fFunctions.fPathParameteri ||
|
||||||
NULL == fFunctions.fPathParameterf ||
|
NULL == fFunctions.fPathParameterf ||
|
||||||
@ -540,5 +534,180 @@ bool GrGLInterface::validate() const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1)) ||
|
||||||
|
(kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,0)) ||
|
||||||
|
fExtensions.has("GL_ARB_draw_instanced") ||
|
||||||
|
fExtensions.has("GL_EXT_draw_instanced")) {
|
||||||
|
if (NULL == fFunctions.fDrawArraysInstanced ||
|
||||||
|
NULL == fFunctions.fDrawElementsInstanced) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,2)) ||
|
||||||
|
(kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,0)) ||
|
||||||
|
fExtensions.has("GL_ARB_instanced_arrays") ||
|
||||||
|
fExtensions.has("GL_EXT_instanced_arrays")) {
|
||||||
|
if (NULL == fFunctions.fVertexAttribDivisor) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
if (kGL_GrGLStandard == fStandard && fExtensions.has("GL_EXT_direct_state_access")) {
|
||||||
|
if (NULL == fFunctions.fVertexArrayVertexAttribDivisor) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fExtensions.has("GL_NV_bindless_texture")) {
|
||||||
|
if (NULL == fFunctions.fGetTextureHandle ||
|
||||||
|
NULL == fFunctions.fGetTextureSamplerHandle ||
|
||||||
|
NULL == fFunctions.fMakeTextureHandleResident ||
|
||||||
|
NULL == fFunctions.fMakeTextureHandleNonResident ||
|
||||||
|
NULL == fFunctions.fGetImageHandle ||
|
||||||
|
NULL == fFunctions.fMakeImageHandleResident ||
|
||||||
|
NULL == fFunctions.fMakeImageHandleNonResident ||
|
||||||
|
NULL == fFunctions.fIsTextureHandleResident ||
|
||||||
|
NULL == fFunctions.fIsImageHandleResident ||
|
||||||
|
NULL == fFunctions.fUniformHandleui64 ||
|
||||||
|
NULL == fFunctions.fUniformHandleui64v ||
|
||||||
|
NULL == fFunctions.fProgramUniformHandleui64 ||
|
||||||
|
NULL == fFunctions.fProgramUniformHandleui64v) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kGL_GrGLStandard == fStandard && fExtensions.has("GL_EXT_direct_state_access")) {
|
||||||
|
if (NULL == fFunctions.fTextureParameteri ||
|
||||||
|
NULL == fFunctions.fTextureParameteriv ||
|
||||||
|
NULL == fFunctions.fTextureParameterf ||
|
||||||
|
NULL == fFunctions.fTextureParameterfv ||
|
||||||
|
NULL == fFunctions.fTextureImage1D ||
|
||||||
|
NULL == fFunctions.fTextureImage2D ||
|
||||||
|
NULL == fFunctions.fTextureSubImage1D ||
|
||||||
|
NULL == fFunctions.fTextureSubImage2D ||
|
||||||
|
NULL == fFunctions.fCopyTextureImage1D ||
|
||||||
|
NULL == fFunctions.fCopyTextureImage2D ||
|
||||||
|
NULL == fFunctions.fCopyTextureSubImage1D ||
|
||||||
|
NULL == fFunctions.fCopyTextureSubImage2D ||
|
||||||
|
NULL == fFunctions.fGetTextureImage ||
|
||||||
|
NULL == fFunctions.fGetTextureParameterfv ||
|
||||||
|
NULL == fFunctions.fGetTextureParameteriv ||
|
||||||
|
NULL == fFunctions.fGetTextureLevelParameterfv ||
|
||||||
|
NULL == fFunctions.fGetTextureLevelParameteriv) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(1,2)) {
|
||||||
|
if (NULL == fFunctions.fTextureImage3D ||
|
||||||
|
NULL == fFunctions.fTextureSubImage3D ||
|
||||||
|
NULL == fFunctions.fCopyTextureSubImage3D ||
|
||||||
|
NULL == fFunctions.fCompressedTextureImage3D ||
|
||||||
|
NULL == fFunctions.fCompressedTextureImage2D ||
|
||||||
|
NULL == fFunctions.fCompressedTextureImage1D ||
|
||||||
|
NULL == fFunctions.fCompressedTextureSubImage3D ||
|
||||||
|
NULL == fFunctions.fCompressedTextureSubImage2D ||
|
||||||
|
NULL == fFunctions.fCompressedTextureSubImage1D ||
|
||||||
|
NULL == fFunctions.fGetCompressedTextureImage) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(1,5)) {
|
||||||
|
if (NULL == fFunctions.fNamedBufferData ||
|
||||||
|
NULL == fFunctions.fNamedBufferSubData ||
|
||||||
|
NULL == fFunctions.fMapNamedBuffer ||
|
||||||
|
NULL == fFunctions.fUnmapNamedBuffer ||
|
||||||
|
NULL == fFunctions.fGetNamedBufferParameteriv ||
|
||||||
|
NULL == fFunctions.fGetNamedBufferPointerv ||
|
||||||
|
NULL == fFunctions.fGetNamedBufferSubData) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(2,0)) {
|
||||||
|
if (NULL == fFunctions.fProgramUniform1f ||
|
||||||
|
NULL == fFunctions.fProgramUniform2f ||
|
||||||
|
NULL == fFunctions.fProgramUniform3f ||
|
||||||
|
NULL == fFunctions.fProgramUniform4f ||
|
||||||
|
NULL == fFunctions.fProgramUniform1i ||
|
||||||
|
NULL == fFunctions.fProgramUniform2i ||
|
||||||
|
NULL == fFunctions.fProgramUniform3i ||
|
||||||
|
NULL == fFunctions.fProgramUniform4i ||
|
||||||
|
NULL == fFunctions.fProgramUniform1fv ||
|
||||||
|
NULL == fFunctions.fProgramUniform2fv ||
|
||||||
|
NULL == fFunctions.fProgramUniform3fv ||
|
||||||
|
NULL == fFunctions.fProgramUniform4fv ||
|
||||||
|
NULL == fFunctions.fProgramUniform1iv ||
|
||||||
|
NULL == fFunctions.fProgramUniform2iv ||
|
||||||
|
NULL == fFunctions.fProgramUniform3iv ||
|
||||||
|
NULL == fFunctions.fProgramUniform4iv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix2fv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix3fv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix4fv) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(2,1)) {
|
||||||
|
if (NULL == fFunctions.fProgramUniformMatrix2x3fv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix3x2fv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix2x4fv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix4x2fv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix3x4fv ||
|
||||||
|
NULL == fFunctions.fProgramUniformMatrix4x3fv) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (glVer >= GR_GL_VER(3,0)) {
|
||||||
|
if (NULL == fFunctions.fNamedRenderbufferStorage ||
|
||||||
|
NULL == fFunctions.fGetNamedRenderbufferParameteriv ||
|
||||||
|
NULL == fFunctions.fNamedRenderbufferStorageMultisample ||
|
||||||
|
NULL == fFunctions.fCheckNamedFramebufferStatus ||
|
||||||
|
NULL == fFunctions.fNamedFramebufferTexture1D ||
|
||||||
|
NULL == fFunctions.fNamedFramebufferTexture2D ||
|
||||||
|
NULL == fFunctions.fNamedFramebufferTexture3D ||
|
||||||
|
NULL == fFunctions.fNamedFramebufferRenderbuffer ||
|
||||||
|
NULL == fFunctions.fGetNamedFramebufferAttachmentParameteriv ||
|
||||||
|
NULL == fFunctions.fGenerateTextureMipmap ||
|
||||||
|
NULL == fFunctions.fFramebufferDrawBuffer ||
|
||||||
|
NULL == fFunctions.fFramebufferDrawBuffers ||
|
||||||
|
NULL == fFunctions.fFramebufferReadBuffer ||
|
||||||
|
NULL == fFunctions.fGetFramebufferParameteriv ||
|
||||||
|
NULL == fFunctions.fNamedCopyBufferSubData ||
|
||||||
|
NULL == fFunctions.fVertexArrayVertexOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayColorOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayEdgeFlagOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayIndexOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayNormalOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayTexCoordOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayMultiTexCoordOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayFogCoordOffset ||
|
||||||
|
NULL == fFunctions.fVertexArraySecondaryColorOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayVertexAttribOffset ||
|
||||||
|
NULL == fFunctions.fVertexArrayVertexAttribIOffset ||
|
||||||
|
NULL == fFunctions.fEnableVertexArray ||
|
||||||
|
NULL == fFunctions.fDisableVertexArray ||
|
||||||
|
NULL == fFunctions.fEnableVertexArrayAttrib ||
|
||||||
|
NULL == fFunctions.fDisableVertexArrayAttrib ||
|
||||||
|
NULL == fFunctions.fGetVertexArrayIntegerv ||
|
||||||
|
NULL == fFunctions.fGetVertexArrayPointerv ||
|
||||||
|
NULL == fFunctions.fGetVertexArrayIntegeri_v ||
|
||||||
|
NULL == fFunctions.fGetVertexArrayPointeri_v ||
|
||||||
|
NULL == fFunctions.fMapNamedBufferRange ||
|
||||||
|
NULL == fFunctions.fFlushMappedNamedBufferRange) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) ||
|
||||||
|
fExtensions.has("GL_KHR_debug")) {
|
||||||
|
if (NULL == fFunctions.fDebugMessageControl ||
|
||||||
|
NULL == fFunctions.fDebugMessageInsert ||
|
||||||
|
NULL == fFunctions.fDebugMessageCallback ||
|
||||||
|
NULL == fFunctions.fGetDebugMessageLog ||
|
||||||
|
NULL == fFunctions.fPushDebugGroup ||
|
||||||
|
NULL == fFunctions.fPopDebugGroup ||
|
||||||
|
NULL == fFunctions.fObjectLabel) {
|
||||||
|
RETURN_FALSE_INTERFACE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -140,6 +140,12 @@ GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawArrays(GrGLenum mode,
|
|||||||
GrGLsizei count) {
|
GrGLsizei count) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawArraysInstanced(GrGLenum mode,
|
||||||
|
GrGLint first,
|
||||||
|
GrGLsizei count,
|
||||||
|
GrGLsizei primcount) {
|
||||||
|
}
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffer(GrGLenum mode) {
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffer(GrGLenum mode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,6 +159,13 @@ GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawElements(GrGLenum mode,
|
|||||||
const GrGLvoid* indices) {
|
const GrGLvoid* indices) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawElementsInstanced(GrGLenum mode,
|
||||||
|
GrGLsizei count,
|
||||||
|
GrGLenum type,
|
||||||
|
const GrGLvoid* indices,
|
||||||
|
GrGLsizei primcount) {
|
||||||
|
}
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnable(GrGLenum cap) {
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnable(GrGLenum cap) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -389,6 +402,9 @@ GrGLvoid GR_GL_FUNCTION_TYPE noOpGLVertexAttribPointer(GrGLuint indx,
|
|||||||
const GrGLvoid* ptr) {
|
const GrGLvoid* ptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLVertexAttribDivisor(GrGLuint index, GrGLuint divisor) {
|
||||||
|
}
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLViewport(GrGLint x,
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLViewport(GrGLint x,
|
||||||
GrGLint y,
|
GrGLint y,
|
||||||
GrGLsizei width,
|
GrGLsizei width,
|
||||||
|
@ -86,6 +86,11 @@ GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDisableVertexAttribArray(GrGLuint index);
|
|||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawArrays(GrGLenum mode, GrGLint first, GrGLsizei count);
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawArrays(GrGLenum mode, GrGLint first, GrGLsizei count);
|
||||||
|
|
||||||
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawArraysInstanced(GrGLenum mode,
|
||||||
|
GrGLint first,
|
||||||
|
GrGLsizei count,
|
||||||
|
GrGLsizei primcount);
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffer(GrGLenum mode);
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffer(GrGLenum mode);
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffers(GrGLsizei n,
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffers(GrGLsizei n,
|
||||||
@ -96,6 +101,12 @@ GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawElements(GrGLenum mode,
|
|||||||
GrGLenum type,
|
GrGLenum type,
|
||||||
const GrGLvoid* indices);
|
const GrGLvoid* indices);
|
||||||
|
|
||||||
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawElementsInstanced(GrGLenum mode,
|
||||||
|
GrGLsizei count,
|
||||||
|
GrGLenum type,
|
||||||
|
const GrGLvoid* indices,
|
||||||
|
GrGLsizei primcount);
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnable(GrGLenum cap);
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnable(GrGLenum cap);
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnableVertexAttribArray(GrGLuint index);
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnableVertexAttribArray(GrGLuint index);
|
||||||
@ -283,6 +294,8 @@ GrGLvoid GR_GL_FUNCTION_TYPE noOpGLVertexAttribPointer(GrGLuint indx,
|
|||||||
GrGLsizei stride,
|
GrGLsizei stride,
|
||||||
const GrGLvoid* ptr);
|
const GrGLvoid* ptr);
|
||||||
|
|
||||||
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLVertexAttribDivisor(GrGLuint index, GrGLuint divisor);
|
||||||
|
|
||||||
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLViewport(GrGLint x,
|
GrGLvoid GR_GL_FUNCTION_TYPE noOpGLViewport(GrGLint x,
|
||||||
GrGLint y,
|
GrGLint y,
|
||||||
GrGLsizei width,
|
GrGLsizei width,
|
||||||
|
@ -385,9 +385,11 @@ static GrGLInterface* create_null_interface(State* state) {
|
|||||||
functions->fDisable = noOpGLDisable;
|
functions->fDisable = noOpGLDisable;
|
||||||
functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray;
|
functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray;
|
||||||
functions->fDrawArrays = noOpGLDrawArrays;
|
functions->fDrawArrays = noOpGLDrawArrays;
|
||||||
|
functions->fDrawArraysInstanced = noOpGLDrawArraysInstanced;
|
||||||
functions->fDrawBuffer = noOpGLDrawBuffer;
|
functions->fDrawBuffer = noOpGLDrawBuffer;
|
||||||
functions->fDrawBuffers = noOpGLDrawBuffers;
|
functions->fDrawBuffers = noOpGLDrawBuffers;
|
||||||
functions->fDrawElements = noOpGLDrawElements;
|
functions->fDrawElements = noOpGLDrawElements;
|
||||||
|
functions->fDrawElementsInstanced = noOpGLDrawElementsInstanced;
|
||||||
functions->fEnable = noOpGLEnable;
|
functions->fEnable = noOpGLEnable;
|
||||||
functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
|
functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
|
||||||
functions->fEndQuery = noOpGLEndQuery;
|
functions->fEndQuery = noOpGLEndQuery;
|
||||||
@ -467,6 +469,7 @@ static GrGLInterface* create_null_interface(State* state) {
|
|||||||
functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
|
functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
|
||||||
functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
|
functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
|
||||||
functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
|
functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
|
||||||
|
functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor;
|
||||||
functions->fViewport = nullGLViewport;
|
functions->fViewport = nullGLViewport;
|
||||||
functions->fBindFramebuffer = nullGLBindFramebuffer;
|
functions->fBindFramebuffer = nullGLBindFramebuffer;
|
||||||
functions->fBindRenderbuffer = nullGLBindRenderbuffer;
|
functions->fBindRenderbuffer = nullGLBindRenderbuffer;
|
||||||
|
@ -875,9 +875,11 @@ const GrGLInterface* GrGLCreateDebugInterface() {
|
|||||||
functions->fDisable = noOpGLDisable;
|
functions->fDisable = noOpGLDisable;
|
||||||
functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray;
|
functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray;
|
||||||
functions->fDrawArrays = noOpGLDrawArrays;
|
functions->fDrawArrays = noOpGLDrawArrays;
|
||||||
|
functions->fDrawArraysInstanced = noOpGLDrawArraysInstanced;
|
||||||
functions->fDrawBuffer = noOpGLDrawBuffer;
|
functions->fDrawBuffer = noOpGLDrawBuffer;
|
||||||
functions->fDrawBuffers = noOpGLDrawBuffers;
|
functions->fDrawBuffers = noOpGLDrawBuffers;
|
||||||
functions->fDrawElements = noOpGLDrawElements;
|
functions->fDrawElements = noOpGLDrawElements;
|
||||||
|
functions->fDrawElementsInstanced = noOpGLDrawElementsInstanced;
|
||||||
functions->fEnable = noOpGLEnable;
|
functions->fEnable = noOpGLEnable;
|
||||||
functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
|
functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
|
||||||
functions->fEndQuery = noOpGLEndQuery;
|
functions->fEndQuery = noOpGLEndQuery;
|
||||||
@ -954,6 +956,7 @@ const GrGLInterface* GrGLCreateDebugInterface() {
|
|||||||
functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
|
functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
|
||||||
functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
|
functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
|
||||||
functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
|
functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
|
||||||
|
functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor;
|
||||||
functions->fViewport = noOpGLViewport;
|
functions->fViewport = noOpGLViewport;
|
||||||
functions->fBindFramebuffer = debugGLBindFramebuffer;
|
functions->fBindFramebuffer = debugGLBindFramebuffer;
|
||||||
functions->fBindRenderbuffer = debugGLBindRenderbuffer;
|
functions->fBindRenderbuffer = debugGLBindRenderbuffer;
|
||||||
|
@ -18,6 +18,8 @@ static void test_print(skiatest::Reporter*, const GrCaps* caps) {
|
|||||||
// This used to assert.
|
// This used to assert.
|
||||||
SkString result = caps->dump();
|
SkString result = caps->dump();
|
||||||
SkASSERT(!result.isEmpty());
|
SkASSERT(!result.isEmpty());
|
||||||
|
SkString shaderResult = caps->shaderCaps()->dump();
|
||||||
|
SkASSERT(!shaderResult.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
DEF_GPUTEST(GrDrawTarget, reporter, factory) {
|
DEF_GPUTEST(GrDrawTarget, reporter, factory) {
|
||||||
|
Loading…
Reference in New Issue
Block a user