Lines Matching defs:format

788     const auto format = backendRT.getBackendFormat().asGLFormat();
789 if (!this->glCaps().isFormatRenderable(format, backendRT.sampleCnt())) {
793 int sampleCount = this->glCaps().getRenderTargetSampleCount(backendRT.sampleCnt(), format);
807 return GrGLRenderTarget::MakeWrapped(this, backendRT.dimensions(), format, sampleCount, rtIDs,
856 SkASSERT(!GrGLFormatIsCompressed(glTex->format()));
857 return this->uploadColorTypeTexData(glTex->format(),
877 SkASSERT(!GrGLFormatIsCompressed(glTex->format()));
906 GrGLFormat textureFormat = glTex->format();
907 // External format and type come from the upload data.
980 // External format and type come from the upload data.
1081 GrGLFormat format,
1086 SkASSERT(format != GrGLFormat::kUnknown);
1089 // We only need the internal format for compressed 2D textures.
1090 GrGLenum internalFormat = caps.getTexImageOrStorageInternalFormat(format);
1097 bool useTexStorage = caps.formatSupportsTexStorage(format);
1166 bool GrGLGpu::renderbufferStorageMSAA(const GrGLContext& ctx, int sampleCount, GrGLenum format,
1173 format, width, height));
1177 GR_GL_RENDERBUFFER, sampleCount, format, width, height));
1182 GR_GL_RENDERBUFFER, sampleCount, format, width, height));
1351 const GrBackendFormat& format,
1370 switch (format.textureType()) {
1384 texDesc.fFormat = format.asGLFormat();
1427 } else if (this->glCaps().canFormatBeFBOColorAttachment(format.asGLFormat()) &&
1456 const GrBackendFormat& format,
1465 SkImage::CompressionType compression = GrBackendFormatToCompressionType(format);
1472 desc.fFormat = format.asGLFormat();
1502 const GrBackendFormat& format,
1513 SkISize dimensions, const GrBackendFormat& format, GrMipmapped mipMapped,
1522 GrGLFormat glFormat = format.asGLFormat();
1527 SkImage::CompressionType compression = GrBackendFormatToCompressionType(format);
1559 GrBackendFormat format = backendTexture.getBackendFormat();
1560 GrGLFormat glFormat = format.asGLFormat();
1564 SkImage::CompressionType compression = GrBackendFormatToCompressionType(format);
1602 int GrGLGpu::getCompatibleStencilIndex(GrGLFormat format) {
1604 SkASSERT(this->glCaps().canFormatBeFBOColorAttachment(format));
1606 if (!this->glCaps().hasStencilFormatBeenDeterminedForFormat(format)) {
1607 // Default to unsupported, set this if we find a stencil format that works.
1610 GrGLuint colorID = this->createTexture({kSize, kSize}, format, GR_GL_TEXTURE_2D,
1673 fGLContext->caps()->setStencilFormatIndexForFormat(format, firstWorkingStencilFormatIndex);
1675 return this->glCaps().getStencilFormatIndexForFormat(format);
1688 GrGLFormat format,
1691 if (format == GrGLFormat::kUnknown) {
1710 GrGLFormat format,
1715 SkASSERT(format != GrGLFormat::kUnknown);
1716 SkASSERT(!GrGLFormatIsCompressed(format));
1740 GrGLenum internalFormat = this->glCaps().getTexImageOrStorageInternalFormat(format);
1744 if (this->glCaps().formatSupportsTexStorage(format)) {
1751 this->glCaps().getTexImageExternalFormatAndType(format, &externalFormat, &externalType);
1788 sk_sp<GrAttachment> GrGLGpu::makeMSAAAttachment(SkISize dimensions, const GrBackendFormat& format,
1792 return GrGLAttachment::MakeMSAA(this, dimensions, numSamples, format.asGLFormat());
2151 auto format = surface->backendFormat().asGLFormat();
2153 if (!renderTarget && !this->glCaps().isFormatRenderable(format, 1)) {
2316 if (this->glCaps().shouldQueryImplementationReadSupport(target->format())) {
2317 GrGLint format;
2319 GR_GL_GetIntegerv(this->glInterface(), GR_GL_IMPLEMENTATION_COLOR_READ_FORMAT, &format);
2321 this->glCaps().didQueryImplementationReadSupport(target->format(), format, type);
3348 if (!this->glCaps().isFormatRenderable(dstTex->format(), 1)) {
3477 GrGLFormat format = glTex->format();
3483 if (!this->glCaps().doManualMipmapping() || !this->glCaps().isFormatRenderable(format, 1)) {
3619 const GrBackendFormat& format,
3630 GrGLFormat glFormat = format.asGLFormat();
3649 switch (format.textureType()) {
3778 auto format = this->glCaps().getFormatFromColorType(colorType);
3779 sampleCnt = this->glCaps().getRenderTargetSampleCount(sampleCnt, format);
3784 // "multisampled_render_to_texture" style extension or have a BGRA format that
3789 } else if (format == GrGLFormat::kBGRA8 &&
3799 int sFormatIdx = this->getCompatibleStencilIndex(format);
3807 info.fFormat = GrGLFormatToEnum(format);
3847 colorID = this->createTexture(dimensions, format, GR_GL_TEXTURE_2D, GrRenderable::kYes,
3861 GrGLenum renderBufferFormat = this->glCaps().getRenderbufferInternalFormat(format);