Lines Matching refs:m_gl
41 : m_gl (renderCtx.getFunctions()) in Shader()
45 m_shader = m_gl.createShader(getGLShaderType(shaderType)); in Shader()
46 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateShader()"); in Shader()
51 : m_gl (gl) in Shader()
55 m_shader = m_gl.createShader(getGLShaderType(shaderType)); in Shader()
56 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateShader()"); in Shader()
62 m_gl.deleteShader(m_shader); in ~Shader()
67 m_gl.shaderSource(m_shader, numSourceStrings, sourceStrings, lengths); in setSources()
68 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glShaderSource()"); in setSources()
86 m_gl.compileShader(m_shader); in compile()
90 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCompileShader()"); in compile()
96 m_gl.getShaderiv(m_shader, GL_COMPILE_STATUS, &compileStatus); in compile()
97 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderiv()"); in compile()
107 m_gl.getShaderiv(m_shader, GL_INFO_LOG_LENGTH, &infoLogLen); in compile()
108 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderiv()"); in compile()
119 m_gl.getShaderInfoLog(m_shader, (int)infoLog.size() - 1, &unusedLen, &infoLog[0]); in compile()
144 …m_gl.specializeShader(m_shader, entryPoint, numSpecializationConstants, constantIndex, constantVal… in specialize()
148 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glSpecializeShader()"); in specialize()
154 m_gl.getShaderiv(m_shader, GL_COMPILE_STATUS, &compileStatus); in specialize()
155 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderiv()"); in specialize()
165 m_gl.getShaderiv(m_shader, GL_INFO_LOG_LENGTH, &infoLogLen); in specialize()
166 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderiv()"); in specialize()
177 m_gl.getShaderInfoLog(m_shader, (int)infoLog.size() - 1, &unusedLen, &infoLog[0]); in specialize()
178 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderInfoLog()"); in specialize()
235 : m_gl (renderCtx.getFunctions()) in Program()
238 m_program = m_gl.createProgram(); in Program()
239 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateProgram()"); in Program()
243 : m_gl (gl) in Program()
246 m_program = m_gl.createProgram(); in Program()
247 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateProgram()"); in Program()
251 : m_gl (renderCtx.getFunctions()) in Program()
254 m_info.linkOk = getProgramLinkStatus(m_gl, program); in Program()
255 m_info.infoLog = getProgramInfoLog(m_gl, program); in Program()
260 m_gl.deleteProgram(m_program); in ~Program()
265 m_gl.attachShader(m_program, shader); in attachShader()
266 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glAttachShader()"); in attachShader()
271 m_gl.detachShader(m_program, shader); in detachShader()
272 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDetachShader()"); in detachShader()
277 m_gl.bindAttribLocation(m_program, location, name); in bindAttribLocation()
278 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBindAttribLocation()"); in bindAttribLocation()
283 m_gl.transformFeedbackVaryings(m_program, count, varyings, bufferMode); in transformFeedbackVaryings()
284 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glTransformFeedbackVaryings()"); in transformFeedbackVaryings()
295 m_gl.linkProgram(m_program); in link()
298 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glLinkProgram()"); in link()
300 m_info.linkOk = getProgramLinkStatus(m_gl, m_program); in link()
301 m_info.infoLog = getProgramInfoLog(m_gl, m_program); in link()
308 m_gl.getProgramiv(m_program, GL_PROGRAM_SEPARABLE, &separable); in isSeparable()
309 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetProgramiv()"); in isSeparable()
316 m_gl.programParameteri(m_program, GL_PROGRAM_SEPARABLE, separable); in setSeparable()
317 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glProgramParameteri()"); in setSeparable()
323 : m_gl (renderCtx.getFunctions()) in ProgramPipeline()
326 m_gl.genProgramPipelines(1, &m_pipeline); in ProgramPipeline()
327 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGenProgramPipelines()"); in ProgramPipeline()
331 : m_gl (gl) in ProgramPipeline()
334 m_gl.genProgramPipelines(1, &m_pipeline); in ProgramPipeline()
335 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGenProgramPipelines()"); in ProgramPipeline()
340 m_gl.deleteProgramPipelines(1, &m_pipeline); in ~ProgramPipeline()
345 m_gl.useProgramStages(m_pipeline, stages, program); in useProgramStages()
346 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgramStages()"); in useProgramStages()
351 m_gl.activeShaderProgram(m_pipeline, program); in activeShaderProgram()
352 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glActiveShaderProgram()"); in activeShaderProgram()
358 m_gl.validateProgramPipeline(m_pipeline); in isValid()
359 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glValidateProgramPipeline()"); in isValid()
361 m_gl.getProgramPipelineiv(m_pipeline, GL_VALIDATE_STATUS, &status); in isValid()