1Name 2 3 QCOM_extended_get2 4 5Name Strings 6 7 GL_QCOM_extended_get2 8 9Contributors 10 11 Jukka Liimatta 12 James Ritts 13 14Contact 15 16 Jukka Liimatta (jukka.liimatta 'at' qualcomm.com) 17 18Notice 19 20 Copyright Qualcomm 2009. 21 22IP Status 23 24 Qualcomm Proprietary. 25 26Status 27 28 Complete. 29 30Version 31 32 Last Modified Date: October 30, 2009 33 Revision: #2 34 35Number 36 37 OpenGL ES Extension #63 38 39Dependencies 40 41 OpenGL ES 2.0 is required. 42 43 This extension is written against the OpenGL ES 2.0 specification. 44 45 Requires extension QCOM_extended_get to be implemented. 46 47Overview 48 49 This extension enables instrumenting the driver for debugging of OpenGL ES 50 applications. 51 52New Procedures and Functions 53 54 void ExtGetShadersQCOM(uint* shaders, int maxShaders, int* numShaders); 55 56 void ExtGetProgramsQCOM(uint* programs, int maxPrograms, 57 int* numPrograms); 58 59 boolean ExtIsProgramBinaryQCOM(uint program); 60 61 void ExtGetProgramBinarySourceQCOM(uint program, enum shadertype, 62 char* source, int* length) 63 64Additions to OpenGL ES 2.0 Specification 65 66 The command 67 68 void ExtGetShadersQCOM(uint* shaders, int maxShaders, int* numShaders); 69 70 returns list of shader objects in the current render context. 71 72 The command 73 74 void ExtGetProgramsQCOM(uint* programs, int maxPrograms, int* numPrograms); 75 76 returns list of program objects in the current render context. 77 78 The command 79 80 boolean ExtIsProgramBinaryQCOM(uint program); 81 82 returns boolean indicating if the program is created with ProgramBinaryOES. 83 84 The command 85 86 void ExtGetProgramBinarySourceQCOM(uint program, enum shadertype, char* source, int* length) 87 88 returns source string, if any exists, for program created with ProgramBinaryOES. 89 90Errors 91 92 INVALID_VALUE error will be generated if the <program> parameter to 93 ExtIsProgramBinaryQCOM does not reference to a valid program object. 94 95 INVALID_VALUE error will be generated if the <program> parameter to 96 ExtGetProgramBinarySourceQCOM does not reference to a valid program object. 97 98 INVALID_ENUM error will be generated if the <shadertype> parameter to 99 ExtGetProgramBinarySourceQCOM is not one of the allowable values. 100 101New State 102 103 None. 104 105Revision History 106 107 #01 05/14/2009 Jukka Liimatta First draft. 108 #02 10/30/2009 Jon Leech Make ExtIsProgramBinaryQCOM 109 return boolean (Khronos bug 110 5705). 111