Lines Matching refs:gpu
8 #include "src/gpu/GrCpuBuffer.h"
9 #include "src/gpu/gl/GrGLBuffer.h"
10 #include "src/gpu/gl/GrGLGpu.h"
11 #include "src/gpu/gl/GrGLVertexArray.h"
79 void GrGLAttribArrayState::set(GrGLGpu* gpu,
88 SkASSERT(0 == divisor || gpu->caps()->drawInstancedSupport());
114 gpu->bindBuffer(GrGpuBufferType::kVertex, vertexBuffer);
117 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index,
124 SkASSERT(gpu->caps()->shaderCaps()->integerSupport());
126 GR_GL_CALL(gpu->glInterface(), VertexAttribIPointer(index,
137 if (gpu->caps()->drawInstancedSupport() && array->fDivisor != divisor) {
139 GR_GL_CALL(gpu->glInterface(), VertexAttribDivisor(index, divisor));
144 void GrGLAttribArrayState::enableVertexArrays(const GrGLGpu* gpu, int enabledCount,
151 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(i));
156 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i));
163 gpu->caps()->usePrimitiveRestart());
165 if (gpu->caps()->usePrimitiveRestart() &&
168 GR_GL_CALL(gpu->glInterface(), Enable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX));
170 GR_GL_CALL(gpu->glInterface(), Disable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX));
187 GrGLAttribArrayState* GrGLVertexArray::bind(GrGLGpu* gpu) {
191 gpu->bindVertexArray(fID);
195 GrGLAttribArrayState* GrGLVertexArray::bindWithIndexBuffer(GrGLGpu* gpu, const GrBuffer* ibuff) {
196 GrGLAttribArrayState* state = this->bind(gpu);
201 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, 0));
205 GR_GL_CALL(gpu->glInterface(),