Lines Matching refs:format
126 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format,
128 bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const override;
129 bool isFormatRenderable(GrGLFormat format, int sampleCount) const {
130 return sampleCount <= this->maxRenderTargetSampleCount(format);
134 const GrBackendFormat& format) const override {
135 return this->getRenderTargetSampleCount(requestedCount, format.asGLFormat());
139 int maxRenderTargetSampleCount(const GrBackendFormat& format) const override {
140 return this->maxRenderTargetSampleCount(format.asGLFormat());
154 * Gets the internal format to use with glTexImage...() and glTexStorage...(). May be sized or
157 GrGLenum getTexImageOrStorageInternalFormat(GrGLFormat format) const {
158 return this->getFormatInfo(format).fInternalFormatForTexImageOrStorage;
162 * Gets the external format and type to pass to glTexImage2D with nullptr to create an
163 * uninitialized texture. See getTexImageOrStorageInternalFormat() for the internal format.
169 * Given a src data color type and a color type interpretation for a texture of a given format
170 * this provides the external GL format and type to use with glTexSubImage2d. The color types
178 * Gets the external format, type, and bytes per pixel to use when uploading solid color data
181 void getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format,
202 * Would it be useful to check GL_IMPLEMENTATION_READ_FORMAT and _TYPE for this format to
205 bool shouldQueryImplementationReadSupport(GrGLFormat format) const;
208 * Let caps know the result of GL_IMPLEMENTATION_READ_FORMAT and _TYPE query for a format
211 void didQueryImplementationReadSupport(GrGLFormat format,
216 * Gets the internal format to use with glRenderbufferStorageMultisample...(). May be sized or
219 GrGLenum getRenderbufferInternalFormat(GrGLFormat format) const {
220 return this->getFormatInfo(format).fInternalFormatForRenderbuffer;
226 GrGLenum getFormatDefaultExternalType(GrGLFormat format) const {
227 return this->getFormatInfo(format).fDefaultExternalType;
231 * Has a stencil format index been found for the format (or we've found that no format works).
233 bool hasStencilFormatBeenDeterminedForFormat(GrGLFormat format) const {
234 return this->getFormatInfo(format).fStencilFormatIndex != FormatInfo::kUnknown_StencilIndex;
238 * Gets the stencil format index for the format. This assumes
240 * no stencil format is supported with the format. Otherwise, returned index refers to the array
243 int getStencilFormatIndexForFormat(GrGLFormat format) const {
244 SkASSERT(this->hasStencilFormatBeenDeterminedForFormat(format));
245 return this->getFormatInfo(format).fStencilFormatIndex;
249 * If index is >= 0 this records an index into stencilFormats() as the best stencil format for
250 * the format. If < 0 it records that the format has no supported stencil format index.
619 // ColorTypeInfo for a specific format
624 // Does Ganesh itself support rendering to this colorType & format pair. Renderability
625 // still additionally depends on if the format can be an FBO color attachment.
636 /** The external format and type are to be used when uploading/downloading data using
638 intended GrColorType. The fExternalTexImageFormat is the format to use for TexImage
641 of format and color types. */
716 /** kFBOColorAttachment means that even if the format cannot be a GrRenderTarget, we can
722 * Are pixel buffer objects supported in/out of this format? Ignored if PBOs are not
755 // This indicates that a stencil format has not yet been determined for the config.
757 // This indicates that there is no supported stencil format for the config.
772 FormatInfo& getFormatInfo(GrGLFormat format) { return fFormatTable[static_cast<int>(format)]; }
773 const FormatInfo& getFormatInfo(GrGLFormat format) const {
774 return fFormatTable[static_cast<int>(format)];